|
SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.) |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
SageTV JVM RAM - Windows
This has been asked a million times, but I just can't find a clear thread that gives a straight answer... What's a good value to set java heap to?
I recently moved from sagetv Linux to Windows and it has been crashing on me non stop. I have plenty of RAM (16GB/win8.1) so I should have any contiguous memory amount available (all I have is a 4gb VM running on this host). OOM crashes also seem to take down the Hauppauge tuner service which then also needs to be restarted (is that normal?). Also, is there a place (and a reason) to set Xms? I believe I used to have that set very high as well. I think I had it set to 1536mb on my previous machine, is that a good #? https://screencloud.net/v/rNvh BTW part of the reason I wanted to move Linux->Windows was because I was considering attaching the server to the L/R TV to replace an extender (I have vague memories of video skipping being zippier that way). BOY was that a flawed notion. The HD300's are unmatched, unparalleled, (unbowed, unbent, unbroken).
__________________
{"HW": "NUC", "CPU": "i7-5557U", "RAM": "16GB", "Recordings": "2TB SATA", "Imports": "2x 4TB USB", "Clients": ["HD300", "HD200", "SageTVClient"]} Last edited by nycjoe; 06-19-2015 at 08:22 PM. |
#2
|
|||
|
|||
Quote:
Now there are ways to get a 32bit application to address up to 3gigs of RAM on certain 32bit Window Server versions (using physical address extensions for remapping memory). I wrote about this and SageTV/server stability almost six years ago. With that being said, in theory, all 32bit applications on 32bit OSs should be able to address 3gigs of RAM if they are compiled a certain way (though the max appears to be 2gig for SageTV) and all 32bit applications on a 64bit OSs (like you are running) should be able to address 4gigs of RAM (if they were compiled a certain way). However, I still don't think SageTV can use more than 2gigs of RAM (I haven't verified this though). I would recomend you play around with SageTV and try setting your heap size to 1000 (4096mb) and see if that makes a difference. For the record, I have my HEAP set to 400 (1024mb) and SageTV runs very stable for me - six years running with a huge wiz.bin file. I suggest you check out my post in the link above because it addresses the instability I had with my Hauppauge tuner and trying to use more than 2gigs of RAM for SageTV. I'm not sure how relavent my fix is for Windows 7/8/10 but it did take a very unstable SageTV system that crashed every few hours to being rock solid. Perhaps some of the things discussed in that forum can lead to some helpful Google searches. Good luck getting your system stable.
__________________
Will OS: Windows 7 Hardware: Intel Core i7-920 with 12GB RAM & an Adaptec 5805 with a Chenbro 36-port SAS Expander Case: Antec 1200 with 4 iStarUSA trayless hot-swap cages (20 drives max) Drives: 8 Toshiba/Hitachi 2TB drives in a RAID 6 & 7 Toshiba 3TB drives in a RAID 6 Capture Cards: HDHomeRun Connect Quatro 4, Hauppauge 60 HD-PVR Players: 5 HD300s, 2 HD200s Last edited by will; 06-20-2015 at 04:58 PM. |
#3
|
|||
|
|||
I've been under the impression that Sage won't use more than 1024MB.
|
#4
|
||||
|
||||
It's not that sage won't 'use' more than 1024, but set higher than that runs the risk of instability, because java's somewhat lazy garbage collection tends to lead towards out of memory errors if you go much higher than that. There's hopes that some architectural changes going forward will allow more memory use by splitting each extender instance to it's own JVM process. Apparently, that's how google is doing it for the Google Fiber, and it works very well. If you don't have extenders, and all your UI's are clients (which WOULD be in their own JVM's on the client machine), 1024MB is plenty for any sage server.
The 'simple fix' everyone seems to think shifting to 64-bit is turns out to not be so simple.
__________________
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 |
#5
|
||||
|
||||
Is anyone using sagetv with java 1.8?
Quote:
Quote:
Looking at my hotspot log shows this: jvm_args: -Djava.library.path=C:\Program Files (x86)\SageTV\SageTV\; -Xmx1536m vfprintf -Xms24m -server -verbose:gc -XX:+ForceTimeHighResolution Which is a low xms value, does anyone know how to change that? I can't even figure out how to show the current value in windows (what's the win equivalent of 'ps'???) This is what I had set previously: $ grep JAVAMEM startsagecore #JAVAMEM=-Xmx384m JAVAMEM="-Xmx1536m -Xms1024m" java -Djava.awt.headless=$HEADLESS -DUSERKEY=$userkey $JAVAMEM -XX:+UseAdaptiveSizePolicy -XX:MaxGCPauseMillis=25 -XX:GCTimeRatio=24 -XX:ThreadPriorityPolicy=1 $JAVAOPTS -cp Sage.jar:.:/:$(echo JARs/*.jar | sed 's/ **/:/g') SecuredLoader 0 0 x "sagetv Sage.properties" <&- & I can share a pastebin of my hotspot if anyone is interested... Not sure if there are license keys in there or what.
__________________
{"HW": "NUC", "CPU": "i7-5557U", "RAM": "16GB", "Recordings": "2TB SATA", "Imports": "2x 4TB USB", "Clients": ["HD300", "HD200", "SageTVClient"]} Last edited by nycjoe; 06-21-2015 at 07:36 AM. |
#6
|
||||
|
||||
Quote:
__________________
Server: i5-2405S (4 core @ 2.5 GHz), 8GB RAM, NORCO RPC-4220 4U case Tuners: 2 SiliconDust HDHomeRun , 2 Hauppauge HD-PVR Connected to 1 Pace700X and 1 TiVo Series 4 DVD Storage: 24 TB TV Storage: 11 TB (4x1.5TB for recording, 5TB for archive) Clients: 3 SageTV Extenders:5 |
#7
|
|||
|
|||
Quote:
Mine is ~40mb after almost six years of pretty heavy use. It seems like a large wiz.bin file maxes out between ~40mb to ~50mb based on a recent discussion. I think the reason why the wiz.bin stopped growing beyond 50mb is because STV started embedding meta data in v7. 40mb is nothing compared to a single recording but it seems like a pretty good size to me for a flat-file database.
__________________
Will OS: Windows 7 Hardware: Intel Core i7-920 with 12GB RAM & an Adaptec 5805 with a Chenbro 36-port SAS Expander Case: Antec 1200 with 4 iStarUSA trayless hot-swap cages (20 drives max) Drives: 8 Toshiba/Hitachi 2TB drives in a RAID 6 & 7 Toshiba 3TB drives in a RAID 6 Capture Cards: HDHomeRun Connect Quatro 4, Hauppauge 60 HD-PVR Players: 5 HD300s, 2 HD200s |
#8
|
||||
|
||||
Quote:
|
#9
|
|||
|
|||
Maximum heap size varies slightly from system to system. You can test for your maximum heap size by dropping to a command prompt and entering something like the following:
Code:
javaw -Xmx1448M
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#10
|
||||
|
||||
the Wiz.bin size has never been the issue for me, it's the plug-ins.
I gave up using Phoenix fanart/images because I have so many recordings that using artwork on my HD300 *always* causes the server heap to creep to max. This makes the interface sloth-slow within 2 days unless the server is restarted. no offense to sloths intended. |
#11
|
|||
|
|||
I thought the max you could use was 1024 (decimal) and I have been using that for years. I have 9 extenders connected to the system and I have to make sure that extenders are shut off when not in use or I will run out of JVM that will cause Sage to crash or slow to a crawl.
__________________
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 |
#12
|
|||
|
|||
Quote:
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#13
|
|||
|
|||
I know in the past when I tried to set it higher the service would just crash because I didn't have that much contiguous memory. But if I remember correctly that was with 32 bit XP.
__________________
"Keep your goals away from the trolls" |
#14
|
||||
|
||||
Quote:
__________________
{"HW": "NUC", "CPU": "i7-5557U", "RAM": "16GB", "Recordings": "2TB SATA", "Imports": "2x 4TB USB", "Clients": ["HD300", "HD200", "SageTVClient"]} |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV Lic (windows) | limiter | SageTV Marketplace | 0 | 05-01-2013 05:39 AM |
Sagetv and WIndows 7 | nadler | SageTV Software | 3 | 12-23-2009 09:45 AM |
SageTV License in Hauppauge HD-PVR & SageTV Media Center for Windows Bundle | LookitsErin | SageTV Software | 4 | 05-28-2009 02:16 PM |
Can SageTV Linux use same plugins as SageTV XP Windows? | TechBill | SageTV Linux | 3 | 10-02-2007 12:59 AM |
SageTV Releases SageTV Lite PVR Software for Windows Hardware OEMs | dkardatzke | Announcements | 0 | 07-06-2005 09:43 AM |