SageTV Community  

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

Notices

SageTV Placeshifter Discussion related to the SageTV Placeshifter application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV Placeshifter software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-27-2012, 05:58 PM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
Java heap memory errors

been getting 'em on my client. I thought I upped the heap size in server awhile back and sure enough, I just checked the server and in addition to the green java heap error message from yesterday morning, I checked and found this:

JVM Heap Size (used/total/max): 171MB / 271MB / 1038MB

so I did indeed increase the heap size on the server. However, even as I'm navigating the placeshifter on a windows client, the PS stops constantly and I have to restart it.

I have these plug-ins at the server:
  • Commercial detector
  • Google weather
  • Infopopup
  • Restart sage from setup
  • sage recording extender (SRE)

And of course all the dependencies that go with these plug-ins. I have the default skin or STV or whatever its called at each extender and the single client.

If I up the java heap memory limit on the client will these error messages go away?

EDIT: ADMIN, CAN YOU MOVE THIS POST TO THE APPROPRIATE THREAD? SORRY, THANKS.
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #2  
Old 12-27-2012, 06:39 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
JVM Heap Size (used/total/max): 171MB / 271MB / 1038MB

Based on that, it means you've only maxed out at ~25% of your heap. I don't know who's generating out of heap messages, but based on those numbers, they're doing it incorrectly. Those numbers mean that you're currently using 171MB of heap, at your max you've used only 271MB and you're configured to use up to 1038MB, as needed. With those numbers, you have no worries about running out of heap.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #3  
Old 12-27-2012, 08:01 PM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
definitely had the green "i" error on the server...

SageTV client: I dl'd the registry setting editor and have it set at 1024mb. However, when I start up SageTV client and look at the java heap info it says:

213/283/389

two questions:
  1. does the java heap limit update utility I found on this forum work with Win7 64?
  2. If I up this limit on the SageTV client, will it eliminate heap errors on the server too?
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #4  
Old 12-27-2012, 08:35 PM
wbarber69's Avatar
wbarber69 wbarber69 is offline
Sage Expert
 
Join Date: Oct 2004
Location: Hammond, La.
Posts: 512
Send a message via ICQ to wbarber69 Send a message via AIM to wbarber69 Send a message via MSN to wbarber69 Send a message via Yahoo to wbarber69
this is what you want

Reply With Quote
  #5  
Old 12-27-2012, 08:53 PM
jorton jorton is offline
Sage Icon
 
Join Date: Jul 2005
Location: Canada
Posts: 1,273
Search for "Frey" you may find another entry in the WOW6232 node (?) of the registry where you also need to set to 1024.

Last edited by jorton; 12-27-2012 at 10:07 PM.
Reply With Quote
  #6  
Old 12-27-2012, 09:36 PM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
After a search for "Frey" in regedit, this is the only place to change java heap limit (Freys 32bit.jpg) and it appears to be for a 32 bit system?

I did not see HKEY_LOCAL_MACHINE\SOFTWARE\Frey Technologies\SageTV

And I'm on a 64 bit OS (64bit OS.jpg)
Attached Images
File Type: jpg Freys 32bit.jpg (266.7 KB, 371 views)
File Type: jpg 64bit OS.jpg (412.7 KB, 373 views)
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #7  
Old 12-27-2012, 10:07 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Sage is a 32bit only application and will only run with 32bit Java. Doesn't matter if you're running 64bit Windows or not, Sage will/must run in a 32bit Java VM instance.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #8  
Old 12-27-2012, 10:19 PM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
Quote:
Originally Posted by Slugger View Post
Sage is a 32bit only application and will only run with 32bit Java. Doesn't matter if you're running 64bit Windows or not, Sage will/must run in a 32bit Java VM instance.
Thx for the reply Slugger...but even so, when I make this change in the registry (hexidecimal = 400), and then restart SageTV Client, I still see 389MB as the max in SageTV info screen.

I didn't see a service to stop...do I need to reboot? (can't reboot yet as a family member is watching and will turn into a run-away tornado if I reboot now)
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #9  
Old 12-27-2012, 10:22 PM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
Quote:
Originally Posted by wbarber69 View Post
this is what you want

thx wbarber.

Every time I see a post of yours with Hammond LA, I think of "Bruce Mitchell" on that History Channel show, Swamp People.

My kids and I love that show; haven't missed an episode yet!
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #10  
Old 12-28-2012, 11:38 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Keep in mind the max heap that can be set for java is contiguous memory. If that is not all available (doesn't matter if you have 8 or 16GB of RAM. It has to be 1024 of contiguous space available.) Then it will not work correctly. It will take the setting without an error. It just won't work right. You may want to back it off to 896 or something else and then see if it works like you expect it to.

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
  #11  
Old 12-28-2012, 12:38 PM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
Quote:
Originally Posted by gplasky View Post
Keep in mind the max heap that can be set for java is contiguous memory. If that is not all available (doesn't matter if you have 8 or 16GB of RAM. It has to be 1024 of contiguous space available.) Then it will not work correctly. It will take the setting without an error. It just won't work right. You may want to back it off to 896 or something else and then see if it works like you expect it to.
Gerry
Ok, I'll try a lower limit on the client. But a win7 64bit machine with 4GB should have plenty of contiguous memory space available, shouldn't it? SageTV Client is the only thing running on it.

Also, I saw 608/824/1038 on the sever last night after a placeshifter crash. I'm not running that many plug ins. If I'm having a problem with only these plug ins, I could never run phoenix, diamond, or gemstone.

wonder if going from 2GB on the server to 4GB might make a difference (32 bit OS)?
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #12  
Old 12-28-2012, 12:58 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Originally Posted by gilded07 View Post
Ok, I'll try a lower limit on the client. But a win7 64bit machine with 4GB should have plenty of contiguous memory space available, shouldn't it? SageTV Client is the only thing running on it.

Theoretically-yes. BUT. Look at the processes running on your Windows box and look at that memory in use. There's no way to guarantee those processes load up one after the other. I've seen less that 1 GB of contiguous memory available on a box with 4GB. It all depends on how those load.

Also, I saw 608/824/1038 on the sever last night after a placeshifter crash. I'm not running that many plug ins. If I'm having a problem with only these plug ins, I could never run phoenix, diamond, or gemstone.

So Placeshifter crashed. Which uses the heap on the server. Your max was 864 used on a server with only 2 GB of RAM. With Sage service running and other processes running, how much free memory is even left on your server? Could be why Placeshifter crashed.

wonder if going from 2GB on the server to 4GB might make a difference (32 bit OS)?
You can't use the full 4GB but you'll have more than 2GB available. (3.75 GB I believe.) Certainly shouldn't hurt.

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
  #13  
Old 01-01-2013, 10:09 PM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
I'm still confused. When I look at system info and look at the java heap data, is it for the client or the server?

Using the java heap utility, I changed it from it was - 1024MB - to 768MB and when I look in system info, the java heap info still says xxx/xxx/389. I rebooted and still nothing.

Even more, when I look at the registry under Frey Tech, and wow74 or whatever it is, I see the appropriate setting of 1024MB or after I changed it, 768MB.

What must I do to get the SageTV client to actually use 1024 or 768 for the java heap?

btw, the server is maxing out at 1024mb which may or may not be related (still haven't added an add'l 2GB of RAM to the server yet - its on my to-do list)
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #14  
Old 01-02-2013, 08:31 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Placeshifters and extenders use the server's heap, SageClients use their own heap. If you're getting heap errors on a SageCleint you nede to up the heap on the local client PC.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #15  
Old 01-02-2013, 10:02 AM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
Quote:
Originally Posted by tmiranda View Post
Placeshifters and extenders use the server's heap, SageClients use their own heap. If you're getting heap errors on a SageCleint you nede to up the heap on the local client PC.
...been tryin' to.

The registry shows that the java heap limit is indeed changed (300 hexidecimal = 768mb and 400 hexidecimal = 1024mb). However, when I look in SageTV client system info, it still shows xxx/xxx/389 instead of xxx/xxx/768 or xxx/xxx/1024. The SageTV client is a win7 64 bit system with 4GB of RAM.

How do I get the change to 'stick'?
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #16  
Old 01-02-2013, 12:29 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by gilded07 View Post
...been tryin' to.

The registry shows that the java heap limit is indeed changed (300 hexidecimal = 768mb and 400 hexidecimal = 1024mb). However, when I look in SageTV client system info, it still shows xxx/xxx/389 instead of xxx/xxx/768 or xxx/xxx/1024. The SageTV client is a win7 64 bit system with 4GB of RAM.

How do I get the change to 'stick'?
Not my area of expertise buy if I recall you may need to run the SageClient as admin to have it see the registry setting. Something to do with UAC?
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #17  
Old 01-02-2013, 12:33 PM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
Quote:
Originally Posted by tmiranda View Post
Not my area of expertise buy if I recall you may need to run the SageClient as admin to have it see the registry setting. Something to do with UAC?

hmmm, interesting. Because my kids occasionally access the SageTV client computer, I intentionally have the SageTV client set up in a windows acct WITHOUT admin rights.

I'll have to try giving it admin rights to see if that helps.

thx.
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #18  
Old 01-03-2013, 06:43 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by gilded07 View Post
hmmm, interesting. Because my kids occasionally access the SageTV client computer, I intentionally have the SageTV client set up in a windows acct WITHOUT admin rights.

I'll have to try giving it admin rights to see if that helps.

thx.
You could try changing the SageTV shortcut to run with administrator's account without changing the actual logon of the desktop. Not sure it will work but if it does that will allow a restricted account for the desktop logon and administrative rights for SageTV exe.
Reply With Quote
  #19  
Old 01-03-2013, 09:44 AM
gilded07's Avatar
gilded07 gilded07 is offline
Sage Aficionado
 
Join Date: Sep 2007
Posts: 436
I already had an admin acct called "admin".
  1. So I changed the SageTV acct from normal user to admin (now have 2 admin accts)
  2. Used regedit to check and make sure 300 hexidecimal = 768mb and it did
  3. Close out of regedit
  4. Shut down SageTV client software
  5. Rebooted machine
  6. SageTV client autostarted when I logged in the SageTV acct which is now an admin acct
  7. Went to system information and checked on java heap and found xxx/xxx/389

I can't seem to figure out how to get the java heap limit raised. I'm sure I'm doing something wrong; just can't figure what.

Any other ideas?
__________________
Headless Server: Q8400 2.66ghz / MSI P45 Neo2-FR / 4GB
Storage: 120 SSD for SageTV / 3TB for TV recordings / Unraid NAS 5TB for vids, pics, music w Plex Docker
Tuners: HDHR3 x 2
Extenders: Nvidia Shield x2 / 3 placeshifters
Server Software: Win 10 64, SageTV 9.1.5.683, Java 8_241, Real VNC
Other: MiniClient, Commercial Detector UI, Sage Recording Extender
Reply With Quote
  #20  
Old 01-03-2013, 11:34 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Quote:
Went to system information and checked on java heap and found xxx/xxx/389
Isn't the last set of numbers the amount currently in use? isn't it the second set of numbers xxx/768/xxx that would show you the max?


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
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
Memory / Java Heap wayner Gemstone for v7 24 09-10-2012 01:20 PM
Out of Memory Errors ldl72 SageTV Software 9 04-16-2011 11:18 AM
HD-PVR and java heap dead_ferrets Hardware Support 11 12-10-2009 09:54 AM
Java Heap help gibsonpa SageTV Software 3 08-06-2008 03:11 PM
Java out of memory errors while viewing pictures? Shield SageTV Software 8 11-04-2007 12:51 AM


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


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