SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Gemstone for v7
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Gemstone for v7 This forum is for discussing the user-created Gemstone custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-07-2012, 05:15 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Memory / Java Heap

Given that there is a Diamond Legacy UI can I use Gemstone on some clients and Diamond Legacy on others?

Thanks for adding the Import/Export - that will be hugely beneficial for me as I have lots of clients.

With Diamond my system would start running out of JVM with about 4- cleints running. I believe you said that Gemstone was more efficient in terms of memory usage. What is the reduction in memory usage per client compared to Diamond?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 09-07-2012, 06:12 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by wayner View Post
What is the reduction in memory usage per client compared to Diamond?
That's likely going to be hard to quantify. It should be quite different depending on usage. About the only thing that could be done is make more use of shared resources between contexts, so the savings would only be based on sharing assets between extenders. I know on my clients (which don't have to share a common memory space on the server) use about the same memory footprint between diamond and gemstone.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #3  
Old 09-07-2012, 06:20 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Your mileage may vary

We have had 3 testers report that they could not use Gemstone as it fully consumed their heap... other have not reported issues.

The dev team have also had mixed results and we have been working on reducing the memory usage so we need testers to report their results and experience including what other plugins they are running.

I can report that I have 2 HD300 running all the time and the server heap is around 400MB typically. however, over 4-7 days the heap gets used up and I need to restart the service. This is not an issue for me as once the testing is over I can easily setup a scheduled task to restart the service even daily but other may not want to do that.

I can also say that we have done much to reduce the memory usage while increasing the functionality and performance... or at least that has been the goal. I can run Gemstone on my HD100 with pretty good performance as long as I don't get carried away with the more image intensive Flows. Diamond was not really able to do that.

We are still early in the testing cycle so as we get more feedback and find more issues we hope to improve the memory usage further including adding options to control the usage if needed.

PS: yes... the theory is that you could run Diamond Legacy on some clients and Gemstone on others. I am not sure anyone has tried it so please report your results if you do. Just remember.... Gemstone will REPLACE ALL your Diamond installs on ALL extenders on the same server and you would then need to disable Gemstone and INSTALL the Diamond Legacy plugin on the ones where you want to go back to Diamond.

k
Reply With Quote
  #4  
Old 09-07-2012, 06:24 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by Fuzzy View Post
That's likely going to be hard to quantify. It should be quite different depending on usage. About the only thing that could be done is make more use of shared resources between contexts, so the savings would only be based on sharing assets between extenders. I know on my clients (which don't have to share a common memory space on the server) use about the same memory footprint between diamond and gemstone.
Agreed. Gemstone does offer some shared solutions across extenders on the same server.

For example...

Non-Optional - All extenders share the same lists for the widget lists.

Non-Optional - All extenders share the same View Cache (if enabled) for Flows that have the same View setup (same View/Filters/etc).

Optional - Menu Manager can be set to use a single Menu File... if you do this then that menu definition is stored only once on the Server Heap.

We may find a few more that make sense to reduce the Memory usage on extenders.

k
Reply With Quote
  #5  
Old 09-07-2012, 06:24 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
OK, so given the sounds of that it may be wise to stick to my backup/test server for now.

I have 2 HD-300s and about 4-5 HD-200s currently deployed. It is rare that the are all on at once but it seems that even once an extender is turned off it retains some Memory.

Power blips also cause an issue as my server and some extenders are on UPS'. But those that are not boot up on when the power comes back and connect to the server and then I get an out of JVM error.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #6  
Old 09-08-2012, 06:16 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
MiniUI client ???

One user is seeing a lot of errors in the log regarding "MiniUI client" as below.

MiniUI client error9:java.io.IOException: An established connection was aborted by the software in your host machine

Anyone know what this is?

k
Reply With Quote
  #7  
Old 09-08-2012, 08:45 AM
Dargason Dargason is offline
Sage Expert
 
Join Date: Oct 2003
Posts: 516
I was digging through the log some more last night and I'm convinced it's part of Sage and not a plugin. There are references to MiniUI, MiniMVP, MiniServer, MiniClient, MiniUIServerConnection, etc. And there are references in error logs posted in the forums as far back as 2006:

http://forums.sagetv.com/forums/show...=MiniUI&page=2

Of course that's not to say that the errors aren't caused by a plugin... I'm still doing tests and I made that error go away.
Reply With Quote
  #8  
Old 09-08-2012, 12:26 PM
hoep hoep is offline
Sage Advanced User
 
Join Date: Sep 2004
Posts: 197
seems that 2 hd300 are consuming most of my heap (i have 1024 by default). switching on a third hd300 makes it unstable sometimes shuts the service down.
__________________
Server: AMD Phenomen IIX4 965 Black Edition, 4 GB, 2x Hauppauge HVR-3000, 2x PCTV DiB BDA - native, Terratec S7, Cine S2 (Dual DVBS2), WinTV-Nova usb via DVBLogic, xmltv, 20TB disk arrays

Clients: 3 x MediaMVP, 2 x HD-300, 4 x SageTV Client

Reply With Quote
  #9  
Old 09-08-2012, 01:16 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Thanks for the feedback. We have 2 testers assisting with narrowing this issue and there is an issue on the issues list for this so feel free to check that out as we work through this and see what the problem is.

k
Reply With Quote
  #10  
Old 09-08-2012, 02:45 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by jusjoken View Post
One user is seeing a lot of errors in the log regarding "MiniUI client" as below.

MiniUI client error9:java.io.IOException: An established connection was aborted by the software in your host machine

Anyone know what this is?

k
From the logs I have received I believe this is related specifically to the Placeshifter and Extender connections. We have the error cleaned up now.

I also believe I know what is happening with the Placeshifter consuming more memory on the server with each restart.

It seems with each connection of the placeshifter Sage treats it as a NEW client with perhaps a different UIContext. Gemstone stores some items in memory by UIContext to keep settings for different clients/extenders separate... but it does not remove references to these settings as I am not sure I could know that that client/extender/placeshifter is no longer connected.... so we consume more memory each time.

I don't think the extenders do this as the UIContext is related to the mac address of the extender so it will be the same each time so this is not the same issue... I think.

More testing required.

I also plan to work on a manual CLEAR function so the testers having these issues can see if this helps.

k
Reply With Quote
  #11  
Old 09-08-2012, 04:55 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by jusjoken View Post
It seems with each connection of the placeshifter Sage treats it as a NEW client with perhaps a different UIContext. Gemstone stores some items in memory by UIContext to keep settings for different clients/extenders separate... but it does not remove references to these settings as I am not sure I could know that that client/extender/placeshifter is no longer connected.... so we consume more memory each time.
You could create a General plugin as part of Gemstone and then listen for the ClientConnected and ClientDisconnected events.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #12  
Old 09-08-2012, 06:47 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
There is a client disconnect event you could use to clear the objects associated with that UIContext so they wont remain after a client is turned off...

Thanks,
Jeff
Reply With Quote
  #13  
Old 09-08-2012, 09:23 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I have discovered a few areas where I can improve memory handling for multiple extenders so I will work on that for the next test release.

k
Reply With Quote
  #14  
Old 09-09-2012, 08:29 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
I am having memory problems with the latest release I will turn debugging on. The only plugin I have is CMT andd Comskip ... I had no problems with the prior release with memory.

I had several crashes on my client and no video when memory usage gets real high.


PS I have no extenders just clients.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #15  
Old 09-09-2012, 08:51 AM
jorton jorton is offline
Sage Icon
 
Join Date: Jul 2005
Location: Canada
Posts: 1,273
This is just weird, I'm mostly clients (x3) and I have no problems...

Hopefully we can get this sorted out.
Reply With Quote
  #16  
Old 09-09-2012, 09:57 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
We will need to see the gemstone.log and the sage log. You can post it on the issues site... Create a new issue for client memory.

k
Reply With Quote
  #17  
Old 09-09-2012, 11:21 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jusjoken View Post
We will need to see the gemstone.log and the sage log. You can post it on the issues site... Create a new issue for client memory.

k
Jorton what Java Version are you using?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #18  
Old 09-09-2012, 12:03 PM
jorton jorton is offline
Sage Icon
 
Join Date: Jul 2005
Location: Canada
Posts: 1,273
6 r33 on my server.

7 r5 on my clients.

I had issues with 7 r5 on my server giving my the system memory messages and had to revert. All good since total java uninstall and 6.33 install. Just haven't had time to push the clients back but haven't had any problems with them so may leave them on 7 r5.

J
Reply With Quote
  #19  
Old 09-09-2012, 12:17 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Exactly what I am running I was running at Java 1280 cut it back to 1024. All logging on. Will open incident and post logs if I crash.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #20  
Old 09-09-2012, 12:27 PM
jorton jorton is offline
Sage Icon
 
Join Date: Jul 2005
Location: Canada
Posts: 1,273
I have never used the java heap set to more that 1024MB (400 hex?).

That may have been your issue.

Good luck.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Heap just keeps filling up wbarber69 SageTV Media Extender 9 08-13-2011 07:20 AM
Debugging the Java Heap tmiranda SageTV Studio 4 10-19-2010 05:55 PM
Java Heap Size craigap SageTV Media Extender 21 03-27-2010 10:53 AM
HD-PVR and java heap dead_ferrets Hardware Support 11 12-10-2009 09:54 AM
Java Heap help gibsonpa SageTV Software 3 08-06-2008 03:11 PM


All times are GMT -6. The time now is 01:49 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.