SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-07-2010, 05:59 PM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Memory leak????

I have a fresh install of beta 11 and I have had windows issue low memory warnings several times and want to close sage. When I start Sage the task manager shows sagetv.exe using just under 200,000K of memory. after 2.5 days of instance uptime it is using 513,000K of memory and growing. I am only using comskip playback plugin at the moment and the serenity theme. I was curious if anyone else has seen this.
__________________
Windows 10
Sagetv 9 64bit (9.2.5)
HVR-2255 x3 OTA
Reply With Quote
  #2  
Old 07-07-2010, 06:21 PM
Mark SS Mark SS is offline
Sage Expert
 
Join Date: Dec 2005
Location: London, UK
Posts: 608
Beta becomes unresponsive for me after a day or two, fine again if I close and restart. Have seen memory up around 4-500mb. Using photo slideshow screensaver seems to make it worse.
Reply With Quote
  #3  
Old 07-07-2010, 07:10 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Depending upon the size you have your Java heap set to be; I wouldn't be surprised at all with it using 400-500MB RAM. But if this continues to grow without bound over time then it's possible you have have found an issue.

First, disable any plugins you're using so those can be ruled out as the cause.

Second, ensure the memory keeps growing without bound. Check it every day (or more frequently), and if it keeps going up every day until the operating system itself runs out of memory...then you've likely found an issue. In that case, definitely file a bug report on it at http://sagetv.com/bugs.html

Currently we are not aware of any memory leaks that occur in V7.

Many people think they find a memory leak when memory usage keeps growing; but they don't realize that the JVM's heap will continue to grow until it hits its maximum size. You can see that statistic in the System Information screen (and you can use the Delete command on that screen to force a Java garbage collection....however on PCs the JVM will never return memory to the operating system once it is part of the Java heap...so don't expect a garbage collection to cause the memory usage in task manager to decrease).
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #4  
Old 07-07-2010, 11:22 PM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
My java heap is set pretty high at 1014, but at 3d 3hr 24min of instance uptime it has never gone above 399 total. Yet, Sage.exe is using 513,916K occording to the task manager. I have 3gb of Ram and my total system usage is 64%.

Since my Java Heap is set at 1014 does that mean I will see it hit 1,014,000K in the task manager before I can be certain there is some kind of leak.
__________________
Windows 10
Sagetv 9 64bit (9.2.5)
HVR-2255 x3 OTA
Reply With Quote
  #5  
Old 07-08-2010, 05:57 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by craigap View Post
My java heap is set pretty high at 1014, but at 3d 3hr 24min of instance uptime it has never gone above 399 total. Yet, Sage.exe is using 513,916K occording to the task manager. I have 3gb of Ram and my total system usage is 64%.

Since my Java Heap is set at 1014 does that mean I will see it hit 1,014,000K in the task manager before I can be certain there is some kind of leak.
It is normal that the process memory size would be higher than the java heap usage, since the java process is a virtual machine it wil extra overhead over and above what the running application is allocating.

Memory leaks in java are hard to find, since, as Jeff noted, the java process will continue to allocate memory as needed. If you give it a gig, then over time, it will grow to a gig and never release that back to the OS. One potential sign of a memory leak is if the java heap size continues to grow over time until such time that it cannot allocate any new objects. ie, a java OutOfMemory error can be an indication of a memory (but it's not a certainty that there is a memory leak).

Consider images, ie, pictures. When they are loaded, they consume a lot memory. So, the jvm will continue to allocate memory especially if you are loading lots of images. The process memory will shoot up, the heap will shoot up, but after a period of time, the heap should decrease (due to garbage collection), but the java process will stay the same. Because of how garbage collection works, your java heap may never return to it's initial state, since you'll no double always have objects on the heap that are too exepensive garbarge collect, and as such, they won't be collected until they absolutely have to be, or until the system is idle long enough for java to decide to do it.

I would keep track of your memory usuage, but try to measure both the size of the heap and the size of the process.
Reply With Quote
  #6  
Old 07-08-2010, 09:31 AM
MitchSchaft MitchSchaft is offline
Sage Expert
 
Join Date: Jan 2008
Posts: 717
There is nothing wrong with that memory usage. Mine is similar, too.
Reply With Quote
  #7  
Old 07-08-2010, 12:21 PM
paulbeers paulbeers is offline
SageTVaholic
 
Join Date: Jun 2005
Posts: 2,550
I agree with Mitch, I am usually running around 500MB of RAM usage by Sage. Sage doesn't use much in terms in CPU, but it is a bit of a RAM hog. Oh well, with Memory prices these days, 500MB of RAM isn't really that expensive (unless you are running a system with SD or DDR RAM!).
__________________
Sage Server: AMD Athlon II 630, Asrock 785G motherboard, 3GB of RAM, 500GB OS HD in RAID 1 and 2 - 750GB Recording Drives, HDHomerun, Avermedia HD Duet & 2-HDPVRs, and 9.0TB storage in RAID 5 via Dell Perc 5i for DVD storage
Source: Clear QAM and OTA for locals, 2-DishNetwork VIP211's
Clients: 2 Sage HD300's, 2 Sage HD200's, 2 Sage HD100's, 1 MediaMVP, and 1 Placeshifter
Reply With Quote
  #8  
Old 07-08-2010, 12:50 PM
Mark SS Mark SS is offline
Sage Expert
 
Join Date: Dec 2005
Location: London, UK
Posts: 608
And almost on queue, topped out around a gig last night when the photo slideshow was left on. Out of memory errors, reboot.
Reply With Quote
  #9  
Old 07-09-2010, 10:10 PM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Quote:
Originally Posted by paulbeers View Post
Oh well, with Memory prices these days, 500MB of RAM isn't really that expensive (unless you are running a system with SD or DDR RAM!).
But a 32bit OS that is maxed out at 3gb.

Oh well, as I like to say "There's nothing you can't fix if you throw a little money at it." 64bit OS and 2x2gb memory kit here I come. $200+
__________________
Windows 10
Sagetv 9 64bit (9.2.5)
HVR-2255 x3 OTA
Reply With Quote
  #10  
Old 07-10-2010, 12:49 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
There's no reason to take a sage server over 3GB at this point. Especially as long as it's all stuck in a single JVM. I wish, at the very least, they'd split the extender's into their own JVM, so you could run at a bit higher memory footprint.
__________________
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
  #11  
Old 07-10-2010, 11:21 AM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Well, after approx. 6 days it seems to have topped out in the lower end of 500,000K. My total percentage of used memory for the entire system was still high at 85%, so I did some thinking and recalled that my onboard graphics was still turned on in the bios with 512mb of shared memory allocated to it. I turned that off and now I have another 500mb of memory available. Hopefully this was the problem.
__________________
Windows 10
Sagetv 9 64bit (9.2.5)
HVR-2255 x3 OTA
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
Discussion of Possible Memory Leak toricred SageMC Custom Interface 25 02-12-2009 09:00 AM
Memory leak in Sage? abasu2003 SageTV Software 5 03-27-2005 06:41 PM
NAV causing memory leak Wheemer SageTV Software 1 03-10-2005 09:24 AM
Possible Memory Leak? Opopanax SageTV Software 6 02-04-2005 04:28 PM
Memory leak in Sage 2 Teg SageTV Software 31 12-14-2004 07:57 AM


All times are GMT -6. The time now is 02:01 AM.


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