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 01-04-2014, 03:52 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Weirdness in JVM usage with Gemstone

Currently I have three extenders connected to my server and the SageUI on the server. My JVM usage (according to the monitor in Gemstone) is 680MB out of a total of 1038MB. That's pretty good.

But other times I have seen JVM usage with no extenders connected - just the UI on the server.

Any idea why that would be? In the past I would generally see a very strong correlation between the number of extenders connected and JVM usage and 4-5 connectors would crash the system. I have 8 extenders in my house (one more in the pool cabana from May-Sep) so this is an issue for me. If I don't have most of these extenders on UPSes then a power flash would cause a Sage crash as all of the extenders would restart and try to connect to the server (which has always had a UPS).
__________________
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 01-04-2014, 06:18 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
The UI on the server also takes memory from the same JVM so it will still indicate use if it is open. A separate client running on another PC will use it's own JVM and not the servers.

Sage/Java also does not automatically cleanup (garbage collect) memory unless it feels it needs to. So even if extenders are no longer connected the memory will still show in the JVM counts....until needed and then it will clean up and make space available.

As mentioned before, you can force the cleanup from the Main MEnu of Gemstone by pressing DELETE too.

k
Reply With Quote
  #3  
Old 01-05-2014, 09:57 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by jusjoken View Post
As mentioned before, you can force the cleanup from the Main MEnu of Gemstone by pressing DELETE too.
Is this an addition to Gemstone or is it available in the stock UI?

What is the Java command to do this? Maybe I should run a cron job in SJQ to force a cleanup a couple of times a day?
__________________
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
  #4  
Old 01-05-2014, 12:46 PM
phelme's Avatar
phelme phelme is offline
Sage Icon
 
Join Date: Dec 2006
Posts: 1,151
Quote:
Originally Posted by jusjoken View Post
As mentioned before, you can force the cleanup from the Main MEnu of Gemstone by pressing DELETE too.
But that's never enough is it? Once one starts to bump up against the limit, there's no choice but to restart the service because everything is a slog. At least that's my experience with the plug-in's I have added.

The one big downside of SageTV & Java IMO.
Reply With Quote
  #5  
Old 01-05-2014, 03:13 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
I am not an expert on these things but someone mentioned in a post that if Sage had ever been rewritten in 64 bit code then they could have used the 64 bit JVM and used a lot more than 1GB for the JVM, solving this problem if you had enough RAM in your PC.
__________________
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 01-05-2014, 04:09 PM
phelme's Avatar
phelme phelme is offline
Sage Icon
 
Join Date: Dec 2006
Posts: 1,151
Quote:
Originally Posted by wayner View Post
I am not an expert on these things but someone mentioned in a post that if Sage had ever been rewritten in 64 bit code then they could have used the 64 bit JVM and used a lot more than 1GB for the JVM, solving this problem if you had enough RAM in your PC.
I assume they've solved this by now in Google Fiber TV.
Reply With Quote
  #7  
Old 01-05-2014, 04:50 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Maybe, maybe not. It may depend on how many clients they expect you to have running with Google Fiber. Hopefully we get a better idea when Brent finally gets his Google Fiber install.

How many extenders do you have? I would think that this isn't as much of an issue for people with 1-2 extenders, as it is for someone like me with 8-9 and it is not unusual for 5-6 to be used in any 24 hour period.
__________________
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
  #8  
Old 01-06-2014, 09:12 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by wayner View Post
Is this an addition to Gemstone or is it available in the stock UI?

What is the Java command to do this? Maybe I should run a cron job in SJQ to force a cleanup a couple of times a day?
I added this in the gemstone code just for debugging purposes.


k
Reply With Quote
  #9  
Old 01-06-2014, 09:22 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Is it fairly simple Java code to do a cleanup? If so can you please post it. Thanks.
__________________
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
  #10  
Old 01-06-2014, 11:59 AM
phelme's Avatar
phelme phelme is offline
Sage Icon
 
Join Date: Dec 2006
Posts: 1,151
Quote:
Originally Posted by wayner View Post
How many extenders do you have? I would think that this isn't as much of an issue for people with 1-2 extenders, as it is for someone like me with 8-9 and it is not unusual for 5-6 to be used in any 24 hour period.
I only have a couple extenders, but if I use any UI that involves cached imagery (Gemstone, simple Phoenix on default or Phoenix 2) my heap minimum slowly grows within a few days to my limit of 1280 and I have to restart the service.

I have other plug-ins as well (SJQ/SJQ UI, enable favorites, CMT, commercial detector & UI, comskip etc.), but it is always the enabling of fanart caching plug-ins that cause the memory creep for me.
Reply With Quote
  #11  
Old 01-06-2014, 05:51 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by wayner View Post
Is it fairly simple Java code to do a cleanup? If so can you please post it. Thanks.
Sure....

Code:
java.lang.System.gc()
When you press Delete....I call that twice as I find it helps to clean it up quicker.

k
Reply With Quote
  #12  
Old 01-06-2014, 05:55 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by phelme View Post
I only have a couple extenders, but if I use any UI that involves cached imagery (Gemstone, simple Phoenix on default or Phoenix 2) my heap minimum slowly grows within a few days to my limit of 1280 and I have to restart the service.

I have other plug-ins as well (SJQ/SJQ UI, enable favorites, CMT, commercial detector & UI, comskip etc.), but it is always the enabling of fanart caching plug-ins that cause the memory creep for me.
My experience with the latest Gemstone (but it's not an impartial opinion) running 2 extenders full time has been that the memory stays generally below 500MB and each extender adds approx 200MB. I NEVER reboot my server to cleanup JVM.

Certainly older Diamond and Gemstone versions did "leak" JVM but I do find this one to be relatively good at keeping it cleaned up.

YMMV.

k
Reply With Quote
  #13  
Old 01-06-2014, 07:53 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
My issue is likely that I have so many and that each one doesn't cleanup when it goes into standby mode.
__________________
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
  #14  
Old 01-06-2014, 08:06 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by jusjoken View Post
Sure....

Code:
java.lang.System.gc()
When you press Delete....I call that twice as I find it helps to clean it up quicker.

k
Do you pause a few seconds between the cleanup calls?
__________________
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
  #15  
Old 01-07-2014, 12:18 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
No I do not.

k
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
Menu Weirdness samgreco Gemstone for v7 2 01-23-2013 10:54 PM
CC Weirdness camus SageTV Software 3 05-13-2007 12:10 AM
My Videos Weirdness?? dpackham SageTV Customizations 3 04-09-2007 03:10 PM
SageMC16x9 and MVP: Some weirdness Jesse SageTV Customizations 9 06-28-2006 08:43 PM
Graphic weirdness. flight2k SageTV Software 0 12-20-2004 08:33 PM


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


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