|
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
|
||||
|
||||
Problems increasing Java Heap size on server
Hi
I'm having trouble increasing the maximum size of the Java heap, at least I think I am. If I view system info in a client or on a STV, does it show the maximum Java heap on the server or the local client? If it's the server, as I believe, then for some reason I can't increase it. No matter what I set it to it stays at a maximum of 389MB. I'm running XP 64-bit with 6GB of RAM and have set the following registry key to try to increase the size of the Java Heap. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV "JVMMaxHeapSizeMB"=dword:00000800 I've tried setting the key manually and also using the SageTV Registry Tool app. Whether I set it to 300, 400 or 800 the maximum Java Heap reported by System info is 389 max. Currently showing 315MB/383MB/389MB. Any help would be much appreciated. Thanks and Kind Regards Steve |
#2
|
|||
|
|||
Did you change it in VirtualStore. The best way is to run regedit and do a find on JVMMaxHeapSizeMB till it says it cannot find it. The highest you can go is 400 which is 1024.
[HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 If using a PC client the Java Heap you see is the PC clients
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 09-04-2013 at 05:19 PM. |
#3
|
||||
|
||||
Hi
Thanks for the reply. I searched the entire registry. The only entry found is the one that I mentioned earlier: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV I have now changed this back to 400, with no effect. I do not have any entry, per your example, HKEY_CURRENT_USER\Software\Classes\, i.e. I do not have a VirtualStore entry. Any other suggestions? Thanks Steve |
#4
|
|||
|
|||
Quote:
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 09-04-2013 at 08:31 PM. |
#5
|
||||
|
||||
Hi
I am checking it on an extender, not a client PC. I cannot check it on the server itself as I get a Java 1.4 reinstall error when I try to launch it since I did a Java upgrade a couple of weeks ago. Thanks Steve |
#6
|
|||
|
|||
Quote:
http://forums.sagetv.com/forums/show...highlight=java
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#7
|
||||
|
||||
Hi
OK, the JVM error/reinstall prompt was not a problem with Java, rather it was the result of having a JVMMaxHeapSizeMB that exceeded 400h. Changing the only key in my registry (as below) to 400 allowed Sage to run on the server and does indeed report 1024MB of heap. [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 HOWEVER, the HD200's still report a maximum heap size of 389MB. It is intersting though that although the Sage interface failed to launch on the server with a value exceeding 400h, the Sage (service mode) had no problems in starting and I'm therefore wondering if I need a different registry entry to reserve the larger heap for the service mode? Just for kicks and in an effort not to waste forum users time, I tried adding the following two registry entries per the one you gave me and another found in forum posts: [HKEY_LOCAL_MACHINE\SOFTWARE\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 [HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 After restarting the server (service mode) and power cycling the HD200's, the HD200's still report a maximum heap size of 389MB. Any suggestions? Thanks Steve |
#8
|
|||
|
|||
Glad it wasn't a Java install problem. I do not know what else to tell you I do not have a HD200 but do have a HD300 and that reports the Java Heap correctly.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#9
|
||||
|
||||
Hi
OK, I've nearly got to the bottom of it but have not yet solved it. The problem is caused because I do not have the default LocalSystem user start the SageTv service. I read this thread which started me thinking: http://forums.sagetv.com/forums/show...7&postcount=87 I run my SageTv Service using a specific user account, sagetvsystem. I tried logging into the PC with the user account that I use to run Sage and apply the key below: [HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 That automatically created an entries under the following keys: [HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 [HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 [HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 [HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 [HKEY_USERS\S-1-5-21-2503605770-3114097605-959460852-2654\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 [HKEY_USERS\S-1-5-21-2503605770-3114097605-959460852-2654\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 [HKEY_USERS\S-1-5-21-2503605770-3114097605-959460852-2654_Classes\VirtualStore\MACHINE\SOFTWARE\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 [HKEY_USERS\S-1-5-21-2503605770-3114097605-959460852-2654_Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV] "JVMMaxHeapSizeMB"=dword:00000400 I then restarted the SageTv service, however this still does NOT solve the problem. I decided to try running the SageTV service as the default LocalSystem user and as soon as I do this the HD200 reported the increased maximum Java heap size! Whilst this solved the heap problem, I really need to run the service as someone other than the default system user, so I decided to play further. I did some digging and found out how to determine which key belongs to which user, basically look in the following section and then reference the home directory to identify the user: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist S-1-5-19 = LocalService S-1-5-20 = NetworkService S-1-5-21-2503605770-3114097605-959460852-1133 = <my usual user> S-1-5-21-2503605770-3114097605-959460852-2654 = sagetvservice I have tied importing the virtual keys into all of these users, but still no luck. Can anybody shed any light on how to change the heap size for a specific user that starts the SageTv Service? Thanks Steve |
#10
|
|||
|
|||
Quote:
|
#11
|
||||
|
||||
Hi
I'm running XP 64 bit, unless I'm mistaken, XP does not have UAC. At least I can't find it anywhere! Thanks Steve |
#12
|
|||
|
|||
Sorry just saw the "Virtual Store" in your post so assumed you were talking about Vista or above. No help here then.
|
#13
|
||||
|
||||
Quote:
Oy, no matter what, I can't get my W7-64b server to go above 365MB. I have 16GB in it, setting JVM... to 300 or 400 has no effect. Starting to run out of memory as i've expanded my usage of Sage, plus now Gemstone getting loaded. |
#14
|
||||
|
||||
strange, now one extender reports 779MB.
Last edited by IVB; 12-13-2013 at 11:39 PM. |
#15
|
||||
|
||||
I too am struggling with this exact same issue. I run SageTV as a service as a different user than SYSTEM because I need to access UNC shares.
I have attempted everything the OP has and still can not get SageTV to use more than the default values. Has anyone been able to solve this issue? |
#16
|
|||
|
|||
Quote:
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. Last edited by nyplayer; 02-04-2014 at 09:38 AM. |
#17
|
||||
|
||||
I have change the JVMMaxHeapSizeMB to 400 in every possible place I can find it in the registry and no matter what SageTV running as a service under a SPECIFIC user the memory stays unchanged at 389MB.
One thing I noticed though is that under the HKEY_CLASSES_ROOT path there is not SageTV key under the Frey Tech key. You can not create one either even as admin since this is just a merge of other keys. |
#18
|
||||
|
||||
Ok tried one more thing and it solved my issues. running regedit as Admin, I went to the HKEY_LOCAL_MACHINE\...\Frey Tech.. folder right clicked it and specifically gave the user running SageTV service read access to the key and child keys.
This solved my issue. |
#19
|
||||
|
||||
Quote:
Can you please eleborate more on how to give read access to the key and child keys?
__________________
Automatic Power Off | Squeezeslave | DVB-S Importer | DVB Decrypter & Card Client | Tuner Preroll Every man is a damn fool for at least five minutes every day; wisdom consists in not exceeding the limit. ~ Elbert Hubbard |
#20
|
||||
|
||||
You just right click the key on the left pane and select either properties or permissions I forget which options you get. Then it is just like setting permissions on files. Add a user and select the users permissions.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Java HEAP Size | NoodleNT | Gemstone for v7 | 4 | 11-14-2012 12:20 PM |
Increasing Java Heap on Windows 7 when using local admin | CarAuto | SageTV Software | 24 | 10-27-2011 07:13 AM |
Java Heap Size / WHS | woribhabor | SageTV Software | 3 | 03-18-2011 02:34 PM |
Sage v7, HD200 & Random Problems - Java Heap Size Increase Helped | Savage1701 | SageTV Software | 2 | 12-17-2010 07:59 AM |
Java Heap Size | craigap | SageTV Media Extender | 21 | 03-27-2010 10:53 AM |