SageTV Community  

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

Notices

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.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-04-2013, 04:17 PM
srcurtis's Avatar
srcurtis srcurtis is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Milton Keynes, UK
Posts: 116
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
Reply With Quote
  #2  
Old 09-04-2013, 05:17 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
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.
Reply With Quote
  #3  
Old 09-04-2013, 07:24 PM
srcurtis's Avatar
srcurtis srcurtis is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Milton Keynes, UK
Posts: 116
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
Reply With Quote
  #4  
Old 09-04-2013, 08:29 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by srcurtis View Post
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
Are you setting this on the Server or the client. If you are setting it on the server you have to check it on the server... make sure you restart it. Then use the Gui and check it. If you are trying to set the java heap on a client then you have to do it on the client PC. You cannot check the Java heap of the server from a remote PC client you can if you are using an extender.
__________________
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.
Reply With Quote
  #5  
Old 09-04-2013, 08:34 PM
srcurtis's Avatar
srcurtis srcurtis is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Milton Keynes, UK
Posts: 116
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
Reply With Quote
  #6  
Old 09-04-2013, 09:12 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by srcurtis View Post
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
Well if you are getting the error then you must have updated Java and hosed up the Install. Did you by any chance install Java 7 if you did you have to install the 32 bit Microsoft Visual C. You have a more serious problem then upgrading the heap size. There are threads on how to update to Java 7. See thread below.

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.
Reply With Quote
  #7  
Old 09-05-2013, 07:33 AM
srcurtis's Avatar
srcurtis srcurtis is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Milton Keynes, UK
Posts: 116
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
Reply With Quote
  #8  
Old 09-05-2013, 10:33 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
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.
Reply With Quote
  #9  
Old 09-05-2013, 01:15 PM
srcurtis's Avatar
srcurtis srcurtis is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Milton Keynes, UK
Posts: 116
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
Reply With Quote
  #10  
Old 09-05-2013, 01:19 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by srcurtis View Post
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
If you turn off UAC then you don't need to worry about a userid. I'm at work and I cannot get to the registry entry currently but it is different as no "virtual store" or userid is in the registry key used.
Reply With Quote
  #11  
Old 09-05-2013, 01:30 PM
srcurtis's Avatar
srcurtis srcurtis is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Milton Keynes, UK
Posts: 116
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
Reply With Quote
  #12  
Old 09-06-2013, 06:25 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by srcurtis View Post
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
Sorry just saw the "Virtual Store" in your post so assumed you were talking about Vista or above. No help here then.
Reply With Quote
  #13  
Old 12-13-2013, 11:20 PM
IVB's Avatar
IVB IVB is offline
Sage Icon
 
Join Date: Sep 2003
Location: Oak-town, CA
Posts: 1,083
Quote:
Originally Posted by nyplayer View Post
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

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.
__________________
------------------------------------
My Home Automation YouTube channel
Reply With Quote
  #14  
Old 12-13-2013, 11:30 PM
IVB's Avatar
IVB IVB is offline
Sage Icon
 
Join Date: Sep 2003
Location: Oak-town, CA
Posts: 1,083
strange, now one extender reports 779MB.
__________________
------------------------------------
My Home Automation YouTube channel

Last edited by IVB; 12-13-2013 at 11:39 PM.
Reply With Quote
  #15  
Old 02-04-2014, 08:55 AM
m1abrams's Avatar
m1abrams m1abrams is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 445
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?
Reply With Quote
  #16  
Old 02-04-2014, 09:31 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by m1abrams View Post
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?
Run regedit as Administrator very important ... do a find/search for JVMMaxHeapSizeMB in the registry change all Instances to 400. Hex make sure you do a find next till you hit the bottom of the registry.
__________________
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.
Reply With Quote
  #17  
Old 02-07-2014, 05:40 PM
m1abrams's Avatar
m1abrams m1abrams is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 445
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.
Reply With Quote
  #18  
Old 02-07-2014, 05:46 PM
m1abrams's Avatar
m1abrams m1abrams is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 445
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.
Reply With Quote
  #19  
Old 02-08-2014, 05:34 AM
routerunner's Avatar
routerunner routerunner is offline
Sage Icon
 
Join Date: May 2008
Location: Wiltshire, UK
Posts: 1,384
Quote:
Originally Posted by m1abrams View Post
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.

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
Reply With Quote
  #20  
Old 02-08-2014, 09:20 AM
m1abrams's Avatar
m1abrams m1abrams is offline
Sage Aficionado
 
Join Date: Sep 2004
Posts: 445
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.
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
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


All times are GMT -6. The time now is 06:48 AM.


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