SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-26-2017, 03:15 PM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
Linux 9.1.7 - VERY high java

Sage Linux v9.1.7.581
Linux Mint 18 guest in Oracle vbox (8 GB RAM) within Windows 7x64 host, 32GB RAM
Java 1.8.0_151 memory set at 2048


Is anyone else seeing very high JVM heap size in linux, the v9 9.1.7.581 version?

I actually got two warnings last night - Java heap has exceeded warning level (heap size set at 2048). I have never had a warning in Linux before.

So I set up a bare installation of versions 9.1.7.581 and of 9.0.14 with no plugins and only 1 tuner.

In version 9.0.14 a typical memstat, shortly after starting, in Sagetv_0 .txt file is:
Used=103MB Total=152MB Max=1908MB
in 9.1.7
Used=592MB Total=1010MB Max=2147MB

Last night with my regular full setup going the stats were:
Used=1693MB Total=2136MB Max=2147MB

I'm attaching the two Sagetv_0.txt files from my testing with the basic setups and if anyone can see why I am having this problem, I would really appreciate it...sorry 1 file is zipped because it was too large.

Thanks so much,
Julie
Attached Files
File Type: zip sagetv_0_high_9.1.7.zip (145.9 KB, 185 views)
File Type: txt sagetv_0_9.0.14.567.txt (681.5 KB, 185 views)

Last edited by jt4242; 10-26-2017 at 03:56 PM.
Reply With Quote
  #2  
Old 10-26-2017, 07:44 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I looked at the MemStats in your .zip log file, and not showed it over 600mb out of the 2g that you set.

Quote:
Originally Posted by jt4242 View Post
Sage Linux v9.1.7.581
Linux Mint 18 guest in Oracle vbox (8 GB RAM) within Windows 7x64 host, 32GB RAM
Java 1.8.0_151 memory set at 2048


Is anyone else seeing very high JVM heap size in linux, the v9 9.1.7.581 version?

I actually got two warnings last night - Java heap has exceeded warning level (heap size set at 2048). I have never had a warning in Linux before.

So I set up a bare installation of versions 9.1.7.581 and of 9.0.14 with no plugins and only 1 tuner.

In version 9.0.14 a typical memstat, shortly after starting, in Sagetv_0 .txt file is:
Used=103MB Total=152MB Max=1908MB
in 9.1.7
Used=592MB Total=1010MB Max=2147MB

Last night with my regular full setup going the stats were:
Used=1693MB Total=2136MB Max=2147MB

I'm attaching the two Sagetv_0.txt files from my testing with the basic setups and if anyone can see why I am having this problem, I would really appreciate it...sorry 1 file is zipped because it was too large.

Thanks so much,
Julie
Reply With Quote
  #3  
Old 10-26-2017, 08:05 PM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
I know but SageTV was only on for 10 minutes, I had only 1 tuner installed and there were no plugins installed so, from what I had been used to, even 600MB seems high.

I don't have the .txt file from last night when I got the warnings. I guess my biggest concern was getting the warnings - it just has never happened to me with Linux.

I posted the two .txt files to also ask why memory seems to be handled so differently in each version. With 0.14, even now (I'm back on that version), the highest my usage has gotten after many hours is 330/353/1909 but with 9.17, those numbers were higher than 1693/2136/2147MB.

And, maybe this is a dumb question, but why, when the same amount of memory is allocated in both versions, the MAX in 0.14, shows as 1909 but as 2147 in v9.17?

I'll go back to 9.1.7 tonight and try to get a .txt file when it exceeds the limits.
Reply With Quote
  #4  
Old 10-27-2017, 07:42 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I did see some exceptions related to sdepg in the log that you posted. Not sure how that might impact stuff. It was looking like it was trying to download some images from schedules direct. Not sure of all the changes in this release. I'm running this release, and to be honest, I see my memory to be high, but it never affects my usage. Depending on what it's doing, java will keep allocating memory, and so, a 2g java will eventually fill up, and then it will keep recovering memory as needed. It's only an issue if you start getting java Out of Memory errors, which generally indicates a memory leak in the code.
Reply With Quote
  #5  
Old 10-27-2017, 10:09 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by stuckless View Post
I did see some exceptions related to sdepg in the log that you posted. Not sure how that might impact stuff. It was looking like it was trying to download some images from schedules direct. Not sure of all the changes in this release. I'm running this release, and to be honest, I see my memory to be high, but it never affects my usage. Depending on what it's doing, java will keep allocating memory, and so, a 2g java will eventually fill up, and then it will keep recovering memory as needed. It's only an issue if you start getting java Out of Memory errors, which generally indicates a memory leak in the code.
If you don't see any warnings in the UI about EPG, it's a sign things are ok. Most of the SDEPG exceptions you'll see are related to getting headshots for celebrities and have no impact worth mentioning to either the heap size or the quality of the EPG data itself.

High heap usage is mostly because of how G1GC works. We could just stop using it completely, but like you stated, unless you actually see OOM errors, there isn't a problem.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #6  
Old 10-27-2017, 01:57 PM
jt4242 jt4242 is offline
Sage Advanced User
 
Join Date: Dec 2009
Location: Montreal, Canada
Posts: 186
Thank you both. I'm glad to know that the high memory is not just me - though I do seem to be alone in getting out of memory errors. And reading about G1GC has been interesting.

So far no more errors but I'll keep watching and post if any occur - thank you again.
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
Debug SageTV Server on Linux (focus on native libraries not java) mwnswiss SageTV Github Development 0 09-19-2015 03:45 AM
slow UI and high java mem usage... jbuszkie SageTV v7 Customizations 21 10-17-2013 09:51 AM
SageTV 6 Client problems after Java 7 install, Java 6 uninstall alisonnic SageTV Software 5 01-24-2013 02:51 PM
Tables, Java - Java Not being Called for each TableComponent Cell stuckless SageTV Studio 3 04-02-2008 03:03 PM
Beta V1.2.2 Java java.lang Null Pointer Exception hamptonhills SageTV Beta Test Software 1 03-27-2003 12:11 PM


All times are GMT -6. The time now is 12:30 PM.


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