|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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.
|
#3
|
||||
|
||||
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 Founder of SageTV |
#4
|
|||
|
|||
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 |
#5
|
||||
|
||||
Quote:
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.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#6
|
|||
|
|||
There is nothing wrong with that memory usage. Mine is similar, too.
|
#7
|
|||
|
|||
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 |
#8
|
|||
|
|||
And almost on queue, topped out around a gig last night when the photo slideshow was left on. Out of memory errors, reboot.
|
#9
|
|||
|
|||
Quote:
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 |
#10
|
||||
|
||||
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 |
#11
|
|||
|
|||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |