SageTV Community  

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

Notices

SageTV Media Extender Discussion related to any SageTV Media Extender used directly by SageTV. Questions, issues, problems, suggestions, etc. relating to a SageTV supported media extender should be posted here. Use the SageTV HD Theater - Media Player forum for issues related to using an HD Theater while not connected to a SageTV server.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2009, 07:44 PM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Java Heap Size

If my Java heap size reads 189/266/266 and my HD100 has been acting really sluggish should I consider increasing it?

Are there negative implications of having a java heap size too big?

If I should increase it can someone include a detailed explanation of how to do it?

Thanks


Start, run, regedit <ok> starts the registry editor
HKEY_LOCAL_MACHINE\SOFTWARE\Frey Technologies\Sage TV\JVMMaxHeapSizeMB
DWORD value: 200 (Hex) or 512 (Dec)
__________________
Windows 10
Sagetv 9 64bit (9.2.5)
HVR-2255 x3 OTA

Last edited by craigap; 02-22-2009 at 12:06 PM.
Reply With Quote
  #2  
Old 02-21-2009, 09:33 PM
paulbeers paulbeers is offline
SageTVaholic
 
Join Date: Jun 2005
Posts: 2,550
YES!! You are clearly maxing out your Heap. And no there aren't any negative implications other than it will use more RAM on your server. As long as you have the RAM to use, why not use it?
__________________
Sage Server: AMD Athlon II 630, Asrock 785G motherboard, 3GB of RAM, 500GB OS HD in RAID 1 and 2 - 750GB Recording Drives, HDHomerun, Avermedia HD Duet & 2-HDPVRs, and 9.0TB storage in RAID 5 via Dell Perc 5i for DVD storage
Source: Clear QAM and OTA for locals, 2-DishNetwork VIP211's
Clients: 2 Sage HD300's, 2 Sage HD200's, 2 Sage HD100's, 1 MediaMVP, and 1 Placeshifter
Reply With Quote
  #3  
Old 02-21-2009, 09:53 PM
HelenWeathers's Avatar
HelenWeathers HelenWeathers is offline
Sage Icon
 
Join Date: Aug 2008
Location: Miami, Florida
Posts: 1,321
I've not done this yet myself but here's a link to a thread where setting Java heap is covered:

http://forums.freytechnologies.com/f...ad.php?t=23681

Hope this helps.

EDIT: Start, run, regedit <ok> starts the registry editor
__________________
Server: SageTV 9, Win10/32, Intel DP55KG Mb, Intel QC i5 2.66GHz , 4GB 1333MHz DDR3 SDRAM, 2 Hauppauge 2255s for 4 OTA ATSC tuners, HDHRPrime w Comcast, 3 STP-HD300s 20101007-0 firmware, nVidia Shield. Java v7u55. Plugins:SD EPG, OpenDCT

Last edited by HelenWeathers; 02-21-2009 at 10:16 PM.
Reply With Quote
  #4  
Old 02-22-2009, 04:01 PM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Thanks guys. I think that helped out. My extender doesn't seem to be so slow. I'm now reading 243/285/533.
__________________
Windows 10
Sagetv 9 64bit (9.2.5)
HVR-2255 x3 OTA
Reply With Quote
  #5  
Old 02-23-2009, 09:47 PM
hemicuda's Avatar
hemicuda hemicuda is offline
Sage Icon
 
Join Date: May 2006
Location: north of Chattanooga, Tennessee
Posts: 1,118
I bumped mine up from 512 to 1GB over the weekend. Sitting at 205/291/533 right now so I guess the change will occur next reboot or service restart. I've seen the service hit 500+MB in Task Manager though.
__________________
Server: MS Win7 SP1; FX8350 (H2O cooled); 8GB RAM; Hauppauge HVR-7164 (OTA); HVR-885 (OTA); SageTV 9.1.5.x; 12+TB Sage Storage

Clients: HD300 x2; HD200 x2; Placeshifter

Service: EPB Fiber (1Gb); OTA (we "cut the cord"); Netflix, Hulu, etc.
Reply With Quote
  #6  
Old 02-23-2009, 11:02 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
That's somethng that is confusing me. When I watch the heap size in Sage everything looks fine. When I watch the size in process explorer it just keeps increasing until it crashes. Why is the difference growing?
Reply With Quote
  #7  
Old 02-24-2009, 06:09 AM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
So far I've only seen as high as 289/453/533. I've never looked in the task manager though. I'll have to do that.
__________________
Windows 10
Sagetv 9 64bit (9.2.5)
HVR-2255 x3 OTA
Reply With Quote
  #8  
Old 02-24-2009, 07:13 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
The task manager memeory should be around the size of the total Heap used( usually a bit higher.. ). The used should be the memory Sage is currently using and will vary depending on garbage collection, but the total allocated heap will not decrease.

I have found that the Albumn cache has been the biggest issue with the heap size. Mine would constantly hit over 1GB (my max heap setting.. ) and crash. I have turned off the albumn cache and have not had a memory issue since... I would rather have the system up, than have my thumb nail images be instant...

Thanks,
Jeff
Reply With Quote
  #9  
Old 02-26-2009, 05:55 AM
craigap craigap is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Monroe, WI
Posts: 348
Quote:
Originally Posted by jphipps View Post
I have found that the Albumn cache has been the biggest issue with the heap size.
Oh. So that's what must be going on with me. I just recently setup dvd profiler and started ripping my DVD library to HDD and I hava a lot of cover art stuff now. I just maxed out my heap again last night too. Maybe I'll have to change something up then. What was exactly that you did to turn it off? Do you not get any cover art when you browse media files or do they just not remain in a cache?
__________________
Windows 10
Sagetv 9 64bit (9.2.5)
HVR-2255 x3 OTA

Last edited by craigap; 02-26-2009 at 05:58 AM.
Reply With Quote
  #10  
Old 02-26-2009, 07:41 PM
jphipps jphipps is offline
Sage Expert
 
Join Date: Aug 2006
Location: Maryland
Posts: 512
Go to Setup\SageMC\Enhancements\Cache Albumn Art and set it to Disabled. I found you need to turn it off on all extenders, because it is a per client setting... Does not matter on Sage Clients because they use thier own local heap. Then cycle Sage to clean up the memory.

The only down side is there is a slight delay when you scroll through the library on some images, but better slow images than crashed server...

I have found if you change the setting under Setup\Detailed Setup\Customize\Inactivity Timeout and OSD autohide\User Input Timeout before loading thumbnails down to 1 is speads up the thumbnail loading..

Hope that helps,
Jeff
Reply With Quote
  #11  
Old 02-27-2009, 12:22 PM
mangriotis mangriotis is offline
Sage Aficionado
 
Join Date: Mar 2003
Location: Elgin, IL
Posts: 345
Would the heap size maxing out causing an issue like this (as reported in the log), which causes my HD200 to shut down?


Code:
Fri 2/27 9:10:22.891 EXCEPTION in getValueAsObject:sage.a.e: Error in method reflection of java_io_RandomAccessFile_setLength of java.lang.reflect.InvocationTargetException for:java_io_RandomAccessFile_setLength(fileout,0)
Fri 2/27 9:10:32.469 Screen Saver Timeout expired....tv=false playin=false fs=true sleepy=false currSS=true
Fri 2/27 9:10:49.193 Exception in the MiniUIClientReceiver of: java.net.SocketException: No buffer space available (maximum connections reached?): recv failed
Fri 2/27 9:10:49.211 Killing UIMgr UIManager:localhost@@001d6a4bfd63-1d2f39e
Fri 2/27 9:10:49.212 Killed UI Timers
Fri 2/27 9:10:49.238 stopPush0()
Fri 2/27 9:10:49.248 Closing down MiniPlayer
Fri 2/27 9:10:49.248 closeDriver0()
Fri 2/27 9:10:49.249 Seeker.finishWatch(UIManager:localhost@@001d6a4bfd63-1d2f39e)
Fri 2/27 9:10:49.250 Killed VideoFrame
Fri 2/27 9:10:49.250 Killed EventRouter
Fri 2/27 9:10:49.250 VF processing job null nPlayin=false
Fri 2/27 9:10:49.250 VideoFrame thread is now exiting
I have 1GB of memory in my WHS and fear I just may be reaching the hardware limit of making this setup work.
__________________
m2
Reply With Quote
  #12  
Old 02-27-2009, 12:32 PM
HelenWeathers's Avatar
HelenWeathers HelenWeathers is offline
Sage Icon
 
Join Date: Aug 2008
Location: Miami, Florida
Posts: 1,321
Quote:
Originally Posted by mangriotis View Post
I have 1GB of memory in my WHS and fear I just may be reaching the hardware limit of making this setup work.
From line 3 it looks that way: Exception in the MiniUIClientReceiver of: java.net.SocketException: No buffer space available... etc

Memory is not too expensive and easy to add. 2GB would be the minimum I would think - more is better.
__________________
Server: SageTV 9, Win10/32, Intel DP55KG Mb, Intel QC i5 2.66GHz , 4GB 1333MHz DDR3 SDRAM, 2 Hauppauge 2255s for 4 OTA ATSC tuners, HDHRPrime w Comcast, 3 STP-HD300s 20101007-0 firmware, nVidia Shield. Java v7u55. Plugins:SD EPG, OpenDCT
Reply With Quote
  #13  
Old 02-27-2009, 12:34 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
I like 2G or 3G for WHS, I avoid 4G on a 32-bit OS.

YMMV...
Reply With Quote
  #14  
Old 02-27-2009, 12:37 PM
mangriotis mangriotis is offline
Sage Aficionado
 
Join Date: Mar 2003
Location: Elgin, IL
Posts: 345
Yeah, my dilemma is spending additional money to keep old hardware alive (184-pin DDR) and likely running into additional problems down the line, or changing out for more current hardware and absorbing the immediate pain of re-creating my server (and moving ~1TB of recorded material to the new setup). Ugh!
__________________
m2

Last edited by mangriotis; 02-27-2009 at 12:40 PM.
Reply With Quote
  #15  
Old 02-27-2009, 12:47 PM
S_M_E S_M_E is offline
Sage Fanatic
 
Join Date: Dec 2007
Posts: 908
I'd vote for the server upgrade. It might be a PITA to do it now but it'll be worse the longer you wait and add more data...
Reply With Quote
  #16  
Old 03-03-2009, 05:23 PM
rerooks rerooks is offline
Sage Advanced User
 
Join Date: Jan 2007
Location: Buffalo, NY
Posts: 157
How do you get Java to report these numbers? What do each of the numbers mean? I looked, but I couldn't find any instructions.

Quote:
Originally Posted by craigap View Post
Thanks guys. I think that helped out. My extender doesn't seem to be so slow. I'm now reading 243/285/533.
Reply With Quote
  #17  
Old 03-03-2009, 07:50 PM
paulbeers paulbeers is offline
SageTVaholic
 
Join Date: Jun 2005
Posts: 2,550
You can find these numbers under System Info in the Help menu. I believe the numbers are Current Usage / Max Usage for this Instance / Total Available

I could be wrong though, this was discussed previously so I might be slightly off.
__________________
Sage Server: AMD Athlon II 630, Asrock 785G motherboard, 3GB of RAM, 500GB OS HD in RAID 1 and 2 - 750GB Recording Drives, HDHomerun, Avermedia HD Duet & 2-HDPVRs, and 9.0TB storage in RAID 5 via Dell Perc 5i for DVD storage
Source: Clear QAM and OTA for locals, 2-DishNetwork VIP211's
Clients: 2 Sage HD300's, 2 Sage HD200's, 2 Sage HD100's, 1 MediaMVP, and 1 Placeshifter
Reply With Quote
  #18  
Old 03-07-2009, 09:11 AM
hemicuda's Avatar
hemicuda hemicuda is offline
Sage Icon
 
Join Date: May 2006
Location: north of Chattanooga, Tennessee
Posts: 1,118
Exclamation

Update on my last Heap size increase... after the server rebooted due to an extended power outage the Service refused to start. I had to drop back to 512.
__________________
Server: MS Win7 SP1; FX8350 (H2O cooled); 8GB RAM; Hauppauge HVR-7164 (OTA); HVR-885 (OTA); SageTV 9.1.5.x; 12+TB Sage Storage

Clients: HD300 x2; HD200 x2; Placeshifter

Service: EPB Fiber (1Gb); OTA (we "cut the cord"); Netflix, Hulu, etc.
Reply With Quote
  #19  
Old 03-07-2009, 01:11 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
It looks like I found my problem. I had a hard drive that was failing. Once I removed it the memory acts more reasonably. Unfortunately it took a near complete failure before I realized the drive was bad.
Reply With Quote
  #20  
Old 03-16-2010, 05:10 AM
ONLYinHD ONLYinHD is offline
Sage User
 
Join Date: Mar 2008
Posts: 39
Sorry to resurrect this but...

I recently found this thread and wanted to thank the posters for the great info.

I didn't know what I was missing. Now that I changed the setting in the registry for the heap size my MPV's menus are super fast and no more waiting indicators ever.

Many many thanks.
__________________
Server [headless]: Q6600 2.4GHz, 2GB RAM DDR2 800, ATI HD-3450 512 MB DDR2, MSI mobo (6 Sata, 1 eSata, 2 Firewire/1394, 6 USB 2.0)
Storage: 1 IDE 320MB HDD for O/S and recorded TV, 1 Sata 3Gbps 750 HDD for videos, 1 Sata 3Gbps 1TB for videos, 1 USB 500 GB external for photos, music and videos
O/S: XP Home SP2
Capture: 2 Hauppauge PVR-500 (each using dual analog cable tuners)
Clients: 3 MVP (usually only 2 in use at one time)
Reply With Quote
Reply

Tags
java heap size, memory


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
Java Heap help gibsonpa SageTV Software 3 08-06-2008 03:11 PM
Jave Heap Size in 6.4.5 and stutter technazz SageTV Beta Test Software 3 07-23-2008 03:16 PM
Heap Size and Stuttering vividweb SageTV Software 5 06-02-2008 04:33 PM
Jvm Heap Size broderp SageTV Software 6 08-30-2004 02:31 PM


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


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