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 05-19-2011, 06:58 PM
hackzaw hackzaw is offline
Sage User
 
Join Date: Oct 2010
Location: Waterdown, Ontario
Posts: 58
JVM Heap Size - Different on PC Server vs HD300 Extender

I was getting an error saying "Out of Memory" back on 05/13. I'm running the latest versions with Diamond. Also, my server is Windows 7 64 bit if it matters with 8 Gig ram

So I saw a thread detailing how to increase Java Heap Size (including the 64 bit version), and changed it on the PC. Went to the Wow6432node in regedit, and changed the value of JVMMaxHeapSizeMB to 300.

On the HD300 extender if I go into Info at the home screen, I would see the 700 (oddly, I just went to check it, and it's now showing 292MB/400MB/400MB for Used/Total/Max - I swear it said 700 as max early).

And what I thought was odd, was on the desktop, it was always showing 400 as the max, when it should have showed 700 like the extender did. After changing it in regedit, I rebooted everything (PC, HD300)

Checking the value now in regedit it showed 300 as the current setting, but only 400MB as the max (now in both the PC and the extender).

Thoughts?
Reply With Quote
  #2  
Old 05-20-2011, 05:35 AM
jorton jorton is offline
Sage Icon
 
Join Date: Jul 2005
Location: Canada
Posts: 1,273
I may be missing something in your post but if you are getting out of memory errors (I assume these were in Sagetv not just general windows errors) that you should be setting the java heap to "1024" not "300", I thought that the default Sagetv heap size was 392(???) or something, so trying to set to "300" would not allocate more memory to Sagetv, it would be trying (if even possible) to set the java heap to less than default. We recommend setting the java heap to "1024" on the server and clients with Diamond. You have 8GB ram, you should have no problem with 1024 as the heap size.

Good luck,

J
Reply With Quote
  #3  
Old 05-20-2011, 06:04 AM
hackzaw hackzaw is offline
Sage User
 
Join Date: Oct 2010
Location: Waterdown, Ontario
Posts: 58
Thanks for the response. When I reference the "300", I was indicating that was the setting I entered was "300" hex which corresponds to a 768 setting according to the thread listed here.

http://forums.sagetv.com/forums/show...ease+java+heap

100h=256
200h=512
300h=768
400h=1024

Last night I changed it to "400" = 1024MB, but couldn't reboot everything as recordings were in progress.

If I go to "Info" on either an extender or at the PC server, hould the JVM Heap size always match?

For several weeks, I noticed they were different, even after upping to "300"=768. Then last night with when checking it at both locations, they were both showing 400MB max which I presume to be equivalent to a setting of 200 in the registry? But when checking the registry value, it was 300h=768.

Strange. I'll reboot tonight and see what the changes are.

What drew my attention to this was that I installed the plugin for monitoring the Java Heap, and noticed after raising the value that the bar indicator showed really high usage still.
Reply With Quote
  #4  
Old 05-20-2011, 06:35 AM
jorton jorton is offline
Sage Icon
 
Join Date: Jul 2005
Location: Canada
Posts: 1,273
Quote:
Originally Posted by hackzaw View Post
Thanks for the response. When I reference the "300", I was indicating that was the setting I entered was "300" hex which corresponds to a 768 setting according to the thread listed here.

http://forums.sagetv.com/forums/show...ease+java+heap

100h=256
200h=512
300h=768
400h=1024

Last night I changed it to "400" = 1024MB, but couldn't reboot everything as recordings were in progress.

If I go to "Info" on either an extender or at the PC server, hould the JVM Heap size always match?

For several weeks, I noticed they were different, even after upping to "300"=768. Then last night with when checking it at both locations, they were both showing 400MB max which I presume to be equivalent to a setting of 200 in the registry? But when checking the registry value, it was 300h=768.

Strange. I'll reboot tonight and see what the changes are.

What drew my attention to this was that I installed the plugin for monitoring the Java Heap, and noticed after raising the value that the bar indicator showed really high usage still.
I don't think your reg setting is taking at all. Did you catch Razrsharpe's post about UAC in that thread? You may need to set the amount in the appropriate virtual store section of the registry if you haven't disabled it.

Cheers,

J
Reply With Quote
  #5  
Old 05-20-2011, 06:40 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
If you haven't rebooted after changing the setting it is not going to take effect.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #6  
Old 05-20-2011, 06:49 AM
jorton jorton is offline
Sage Icon
 
Join Date: Jul 2005
Location: Canada
Posts: 1,273
I think he rebooted after setting to 768mb (original post) and it didn't take effect, so kind of looks like he doesn't have the right registry location.

J
Reply With Quote
  #7  
Old 05-20-2011, 07:16 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Pretty sure sagetv service needs to be off as well. You said it was recording so guessing you still had the service running as well.
Reply With Quote
  #8  
Old 05-20-2011, 07:55 AM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Yep, registry changes won't take effect unless the application whose registry settings you are modifying has been restarted. I usually don't edit registry settings unless the app is closed.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #9  
Old 05-20-2011, 09:39 AM
hackzaw hackzaw is offline
Sage User
 
Join Date: Oct 2010
Location: Waterdown, Ontario
Posts: 58
I've changed the Java heap twice now.

The first time, I shut off the service, changed the registry to 300h=768, and even rebooted the computer and extender. When everything came back up, the PC Server showed JVM Heap Max = 400MB, but the extender showed JVM Heap Max = 700MB.

I just changed it again last night while the service was running to 400h=1024, but I know the changes wouldn't be reflected until I stop everything and restart (I'll just do a total reboot of the machine).

The weirdest part about all this was there up until last night, there was this discrepancy between PC and extender JVM heap sizes, with the setting at 300h=768 in the registry. But when I checked it last night, they were both showing 400MB max, and rechecking the registry setting, it still had 300h as the setting.

I'll report back tonight after I reboot everything. I'll make sure the registry setting is 400h=1024MB.
Reply With Quote
  #10  
Old 05-20-2011, 08:44 PM
hackzaw hackzaw is offline
Sage User
 
Join Date: Oct 2010
Location: Waterdown, Ontario
Posts: 58
Alright - Problem seems solved!!

It had to do with changing the virtual registry as I guess I have UAC "on". Following Razrsharpe's suggested key change in the linked thread updated the heap accordingly (even without a Win7 reboot, but I did do a Sage7 reboot)

Thanks for the tips.

Side question - increasing this Java Heap should do what exactly? Should I see a performance increase? Less spinning circles? Faster display of fanart? No more Out of Memory errors?
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 rickgillyon SageTV Beta Test Software 48 12-14-2011 04:47 AM
Do the same rules apply with Heap Size in Placeshifter as they do on the Server sdsean SageTV Placeshifter 0 11-03-2010 08:48 AM
JVM Heap Size IV13 SageTV Software 2 10-09-2009 08:11 PM
JVM Heap Size reported different on Server than Extender rmac321 SageMC Custom Interface 5 02-15-2009 02:42 PM
Jvm Heap Size broderp SageTV Software 6 08-30-2004 02:31 PM


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


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