SageTV Community  

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

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 01-19-2011, 10:44 PM
bastafidli bastafidli is offline
Sage Expert
 
Join Date: Dec 2007
Location: Charlottesville, VA
Posts: 728
Please see

http://forums.sagetv.com/forums/show...9&postcount=19
__________________

TV: Samsung UN46D8000
Server: Intel Core i3 540, 4G RAM, Matrox G450, 70GB EXT3 encrypted software RAID1 system drive, 1TB XFS tv recording drive, 2TB EXT3 encrypted data drive mirror across 2 machines, 2TB EXT3 encrypted media drive mirror across 2 machines, CentOS 6 64 bit, Experimenting with DNLA servers
1Gb wired network
Disconnected after G day[HD 100 Media Extender, Placeshifter 7.x, SageTV 7.x, HDHomeRun]
Reply With Quote
  #42  
Old 01-20-2011, 05:24 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by eric3a View Post
I'm getting Java Heap errors about every day also. No time to investigate/debug so I just made a quick dirty .bat file:
net stop "SageTV"
net start "SageTV"

and run it daily at 03:00 in the morning for the time being.

No need for a full reboot to clear the Java Heap. A simple restart of the SageTV service is enough.

Eric
But if this happens everyday it would tend to point to an ill-behaving plugin with a memory leak. You should remove them all and add them back in one at a time to find it.

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
  #43  
Old 01-20-2011, 07:30 PM
eric3a eric3a is offline
Sage Advanced User
 
Join Date: Jul 2009
Location: Houston by the Sea
Posts: 226
Quote:
But if this happens everyday it would tend to point to an ill-behaving plugin with a memory leak. You should remove them all and add them back in one at a time to find it.
Thanks.
Yes, you're probably right but I am running the same plugins I use to run under v6 with no problems so it could be something else also.
I don't have the time or will to investigate at the moment (traveling a lot) so a nightly reset is much easier. I added a log file to the resets and had a look today: The reset takes 7 seconds.
I don't record anything at 03:00am, so it won't be a problem. Plus even if I did, I'd only lose a few seconds of recording. I can live with that for the time being.

Inelegant but it works.

Also I heavily dislike the bare interface, and I find it awkward to navigate and understand compared to my SageMC tailor made one. So a few days of standard UI vs an out of sight reset... I prefer the latter!

I wasn't so much seeking a solution in this thread as adding to the "me too" chorus of people with Java Heap problems.

Eric
Reply With Quote
  #44  
Old 01-23-2011, 07:20 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
What is the maximum JVM heap size?

Before I changed the registry setting my JVM was at 282MB/389MB/389MB (used/total/max) listed in the SageTV system information screen. Before I made the registry setting, the value was set to zero. I changed the value to 200. I then restarted the SageTV service. I checked the JVM size several hours later, it was 259MB/519MB/519MB.

I have 3 gigs RAM in my XP 32-bit system. I plan to have much more memory in my Window 7 64-bit system re-build. What is the maximum size possible for the JVM parameter? I would rather have the parameter set much higher than it might need to be for extra capacity, unless there is a downside to setting the JVM heap size parameter too high.

Dave
Reply With Quote
  #45  
Old 01-23-2011, 08:23 AM
will will is offline
Sage Fanatic
 
Join Date: Jul 2009
Location: New York
Posts: 798
Quote:
Originally Posted by davephan View Post
I plan to have much more memory in my Window 7 64-bit system re-build. What is the maximum size possible for the JVM parameter?
Dave
I am not sure what the maximum value is but since SageTV is a 32-bit application it will never be able to use more than 2 gigs of ram. When you run it on Windows 7 64-bit, it will run in x86 mode. Software has to be specifically written for a 64-bit system to address more than 2 gigs of ram.
__________________
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
Reply With Quote
  #46  
Old 01-23-2011, 10:05 AM
Nelbert Nelbert is offline
Sage Advanced User
 
Join Date: Oct 2010
Posts: 163
Quote:
Originally Posted by davephan View Post
I have 3 gigs RAM in my XP 32-bit system. I plan to have much more memory in my Window 7 64-bit system re-build. What is the maximum size possible for the JVM parameter? I would rather have the parameter set much higher than it might need to be for extra capacity, unless there is a downside to setting the JVM heap size parameter too high.

Dave
On Windows XP 1.4G-1.6G

In theory the 32 Bit JVM can address upto 4Gb, on Windows 64 bit you might be able to get it as high as 2Gb, but there are no guarentees.

With a bigger heap, the JVM will garbage collect less often as it will wait until either a timer or % full threshold occurs. As there is more memory to garbage collect, it will take longer to garbage collect and could lead to noticable application pauses whilst the garbage collect occurs.

There is no magic value as it all depends what's happening in your jvm and the largest amount of free memory, windows address space, swap etc which will be dictated by your setup. The correct JVM size is a bit trial and error when problems occur rather than use a specific value. I've run systems where limiting the JVM to 1Gb has increases performance in comparison to running the same system with 2Gb and it's all been related to the speed of garbage collection.

Sun/Oracle FAQ
Reply With Quote
  #47  
Old 01-27-2011, 02:23 PM
sacrament055 sacrament055 is offline
Sage Aficionado
 
Join Date: Jul 2007
Posts: 474
I believe the number mentioned in a previous post is correct 1.5 GB is the max. I tried using 2 GB once and Sage wouldn't start with that setting. Once I moved it back down to 1.5 it started working again.
Reply With Quote
  #48  
Old 01-31-2011, 01:19 PM
Nelbert Nelbert is offline
Sage Advanced User
 
Join Date: Oct 2010
Posts: 163
From a dos prompt you should be able to do something like

"java -xms1.5G -version"

Once you reach the limit of the JVM or the system you'll get an error along the lines of

"Error occurred during initialization of VM
Could not reserve enough space for object heap"

ie not enough contiguous free memory for the requested size.

Using -Xms will try and allocate the memory immediately as that is the starting heap size. I can't remember whether win32 lets you allocate out of swap but obviously if you create a jvm that needs to use swap you'll hose the performance. ie 1.5G jvm on a 1G machine is a waste of time.

The Win64 machine I'm using atm it seems to die at -Xms5G with a 64bit jvm and it only has 2.3G of actual ram free. Don't use -Xmx for testing the max size you can use though. I've just allocated 60G to Xmx and it hasn't errorred. 58G of that will be in the Windows swap file. 61G was just too much and it threw an out of swap space error.
Reply With Quote
  #49  
Old 12-14-2011, 04:47 AM
mayamaniac's Avatar
mayamaniac mayamaniac is offline
Sage Icon
 
Join Date: May 2004
Posts: 2,177
I switched to Win7 64 bit recently and went to change the java heap size, but the location of it is different than in 32bit. It is located in:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\Sage TV\JVMMaxHeapSizeMB
__________________
Mayamaniac

- SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme.
- SageTV HD300 - HDMI 1080p Samsung 75" LED.
Reply With Quote
Reply

Tags
heap, java heap size, regedit


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
DVD burning mod (7/14/06 - v1.4.2) evilpenguin SageTV Customizations 524 01-01-2008 07:48 PM
Testing Sagetv with Java Access bridge nallan SageTV Software 0 04-01-2006 07:31 PM
Sage UI disappears during playback Keith SageTV Software 17 03-03-2006 03:31 AM
Java problem with AwtToolkit Ctrl-Z SageTV Beta Test Software 0 11-01-2005 09:32 AM
2.0.16 Hanging - Releasing Java image to maintain cache size stanger89 SageTV Beta Test Software 2 04-20-2004 01:05 PM


All times are GMT -6. The time now is 05:56 PM.


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