SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 02-06-2017, 10:07 AM
Evil_Attorney's Avatar
Evil_Attorney Evil_Attorney is offline
Sage Expert
 
Join Date: Sep 2004
Posts: 632
Quote:
Originally Posted by willieb View Post
Ok, I was able to increase my heap size and it seems to have stuck. I used the SageTV Registry Settings program that I downloaded from babgvant's web site. You can google it. I set mine at 1280. Right now I am showing max of 1297. I'll let you know if somehow it reverts.
Do you know what registry entry was changed?
Reply With Quote
  #22  
Old 02-06-2017, 11:27 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I created a clean Win 10 test system and performed various install tests and in every case I am able to just search the register for "JVMMaxHeapSizeMB" and change the value to 400 and SageTV does not overwrite this value.... it stays at 400 and the Heap is at 1038 in the System Information screen.

So obviously something else is blocking this so we need to collect some info from those having this issue.... like OS, x86 vs x64, upgrade over v7 or clean install, upgrade over a previously manually upgraded system etc.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #23  
Old 02-06-2017, 03:54 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
jusjoken,

Can you maybe build them a launcher.exe with some debug logging in it? That may help to see if it fails to access the key or find the value. Both cause the default of 768.
Reply With Quote
  #24  
Old 02-06-2017, 04:55 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by wnjj View Post
jusjoken,

Can you maybe build them a launcher.exe with some debug logging in it? That may help to see if it fails to access the key or find the value. Both cause the default of 768.
It's a great suggestion, just not sure high on my long list of things I am working on. If we don't figure this out before I get some time then perhaps I could dig into the code and add some debugging in the launcher to see what is happening in this area.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #25  
Old 02-06-2017, 05:23 PM
jgsouthard jgsouthard is offline
Sage Advanced User
 
Join Date: Jul 2004
Posts: 143
I just completed a v7 to v9 upgrade, and my Java Heap setting also got changed to 779 instead of the 1024 I had previously set in v7.

When I went into Regedit and searched for all instances of JVMMaxHeapSizeMB, I found several (at least three or four). All but ONE of them still had the desired hex 400 / decimal 1024 setting, but that last one that had a setting of 0. I changed it to 1024, restarted SageTV, and all was well.

I think the OP claimed that he only found one instance of JVMMaxHeapSizeMB in the registry. While I won't dispute that, I'll note that a common issue with searching the registry is accidentally starting somewhere within the registry rather than at the top (searches are top to bottom). Regedit opens to where ever you were the last time you were in the registry, so unless you take the deliberate step of moving the cursor to the top of the registry before starting the search, the search may be incomplete. My hunch is that there is still a 0 setting in there somewhere.
__________________

Windows 10 Home 64-bit, i5-2500K, 8GB RAM, 2TB and 4TB SATA HDD's
SageTV v9.1.2.662, SageTV7.xml STV, Java v1.8.0_121
Server operating headless with 3 HD300 extenders as clients
Two HDHomeRun Primes (6 tuners) with 20170512beta1 firmware
Comcast cable TV, two cablecards in HDHRP's
OpenDCT 0.5.28 network encoder
Reply With Quote
  #26  
Old 02-06-2017, 05:42 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by jgsouthard View Post
I just completed a v7 to v9 upgrade, and my Java Heap setting also got changed to 779 instead of the 1024 I had previously set in v7.

When I went into Regedit and searched for all instances of JVMMaxHeapSizeMB, I found several (at least three or four). All but ONE of them still had the desired hex 400 / decimal 1024 setting, but that last one that had a setting of 0. I changed it to 1024, restarted SageTV, and all was well.
If you don't mind i would like to see the results of the search to understand the different locations you found this key so i can see if the installer might need tweaking a bit if its creating something in the wrong location.

thanks for posting your positive experience.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #27  
Old 02-06-2017, 06:24 PM
jgsouthard jgsouthard is offline
Sage Advanced User
 
Join Date: Jul 2004
Posts: 143
Quote:
Originally Posted by jusjoken View Post
If you don't mind i would like to see the results of the search to understand the different locations you found this key so i can see if the installer might need tweaking a bit if its creating something in the wrong location.

thanks for posting your positive experience.

k
I found JVMMaxHeapSizeMB entries in the following registry keys:

HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV
HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV
HKEY_USERS\S-1-5-21-1920200382-3535082570-624732948-1000\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV
HKEY_USERS\S-1-5-21-1920200382-3535082570-624732948-1000_Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV

Unfortunately, I didn't notice WHICH of these was the one that got reset to 0 when I ran the v9 Installer. I believe that it MAY have been the first HKEY_USERS entry, since I vaguely remember finding three entries correctly set to 1024, then one set at 0 (which I changed to 1024), then another one set to 1024.
__________________

Windows 10 Home 64-bit, i5-2500K, 8GB RAM, 2TB and 4TB SATA HDD's
SageTV v9.1.2.662, SageTV7.xml STV, Java v1.8.0_121
Server operating headless with 3 HD300 extenders as clients
Two HDHomeRun Primes (6 tuners) with 20170512beta1 firmware
Comcast cable TV, two cablecards in HDHRP's
OpenDCT 0.5.28 network encoder
Reply With Quote
  #28  
Old 02-06-2017, 06:35 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by jgsouthard View Post
I found JVMMaxHeapSizeMB entries in the following registry keys:

HKEY_CLASSES_ROOT\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV
HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV
HKEY_USERS\S-1-5-21-1920200382-3535082570-624732948-1000\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV
HKEY_USERS\S-1-5-21-1920200382-3535082570-624732948-1000_Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Frey Technologies\SageTV

Unfortunately, I didn't notice WHICH of these was the one that got reset to 0 when I ran the v9 Installer. I believe that it MAY have been the first HKEY_USERS entry, since I vaguely remember finding three entries correctly set to 1024, then one set at 0 (which I changed to 1024), then another one set to 1024.
By chance was your Win 10 an upgrade from Win 7 or another previous version ? Wondering if the win 10 upgrade process duplicates some entries.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #29  
Old 02-06-2017, 07:09 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by jusjoken View Post
It's a great suggestion, just not sure high on my long list of things I am working on. If we don't figure this out before I get some time then perhaps I could dig into the code and add some debugging in the launcher to see what is happening in this area.

k
Alternatively, i don't really see harm at this stage changing the default to 400h in the launcher, to simply avoid this issue going forward.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #30  
Old 02-06-2017, 08:04 PM
jgsouthard jgsouthard is offline
Sage Advanced User
 
Join Date: Jul 2004
Posts: 143
Quote:
Originally Posted by jusjoken View Post
By chance was your Win 10 an upgrade from Win 7 or another previous version ? Wondering if the win 10 upgrade process duplicates some entries.

k
Yes, it was an in-place upgrade from Win 7 to Win 10, during the free upgrade period. And yes, I suspected that duplicate entries might have resulted from that. I've seen that happen with multiple versions of the application itself as well, although in this case I did a clean install of SageTV v7 on Windows 7 a couple of years prior to the Windows 10 upgrade.
__________________

Windows 10 Home 64-bit, i5-2500K, 8GB RAM, 2TB and 4TB SATA HDD's
SageTV v9.1.2.662, SageTV7.xml STV, Java v1.8.0_121
Server operating headless with 3 HD300 extenders as clients
Two HDHomeRun Primes (6 tuners) with 20170512beta1 firmware
Comcast cable TV, two cablecards in HDHRP's
OpenDCT 0.5.28 network encoder
Reply With Quote
  #31  
Old 02-06-2017, 08:32 PM
SDeGonge's Avatar
SDeGonge SDeGonge is offline
Sage Aficionado
 
Join Date: Jun 2009
Location: NY
Posts: 253
I found a Frey Technologies key in 3 or 4 places but the only key that had a SageTV and JVMMaxHeapSizeMB entry was here...

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Frey Technologies\SageTV\JVMMaxHeapSizeMB

Do you think I need to manually add this information to the other locations to get Sage to accept the setting?
__________________
SageTV User Since 2009
Server Hardware: AMD FX6100, 6 Cores, 3.3GHz, 8GB RAM, TA970XE MB, 3TB HD, HVR-2250, HD-PVR, nVidia 9600GT 512MB
Server Software: SageTV 9, Windows 10 64bit, EventGhost
Client Hardware: HD200 x2, INT-422-3 & WR7 Remote
Service Provider: Cablevision (QAM to 2250, SamsungBox to HDPVR)
Reply With Quote
  #32  
Old 02-06-2017, 09:19 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by SDeGonge View Post
I found a Frey Technologies key in 3 or 4 places but the only key that had a SageTV and JVMMaxHeapSizeMB entry was here...

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Frey Technologies\SageTV\JVMMaxHeapSizeMB

Do you think I need to manually add this information to the other locations to get Sage to accept the setting?
it wont hurt to try.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #33  
Old 02-06-2017, 09:49 PM
jgsouthard jgsouthard is offline
Sage Advanced User
 
Join Date: Jul 2004
Posts: 143
Quote:
Originally Posted by SDeGonge View Post
I found a Frey Technologies key in 3 or 4 places but the only key that had a SageTV and JVMMaxHeapSizeMB entry was here...

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Frey Technologies\SageTV\JVMMaxHeapSizeMB

Do you think I need to manually add this information to the other locations to get Sage to accept the setting?
As jusjoken indicated, I think it's worth a try. But for extra caution, Export each key before you add anything. Then if it doesn't work, you can double-click each *.reg file to re-import the original key and put it back the way it was.

The thing that's odd is that having those keys missing would seem to indicate that a maximum Java Heap Size was never set on your installation (so the defaults are getting used), vs. having it previously set to 1024. But I don't know how SageTV works in that regard, so I could be wrong. I think once upon a time I may have used some SageTV utility or plug-in to set the Java Heap Size (vs. manually editing the registry), and it may have added some keys that aren't part of the normal installation.
__________________

Windows 10 Home 64-bit, i5-2500K, 8GB RAM, 2TB and 4TB SATA HDD's
SageTV v9.1.2.662, SageTV7.xml STV, Java v1.8.0_121
Server operating headless with 3 HD300 extenders as clients
Two HDHomeRun Primes (6 tuners) with 20170512beta1 firmware
Comcast cable TV, two cablecards in HDHRP's
OpenDCT 0.5.28 network encoder
Reply With Quote
  #34  
Old 02-07-2017, 11:03 AM
Evil_Attorney's Avatar
Evil_Attorney Evil_Attorney is offline
Sage Expert
 
Join Date: Sep 2004
Posts: 632
I just re-searched my registry and confirmed only one JVMMaxHeapSizeMB entry at: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Frey Technologies\SageTV\

Again, if I delete this entry, Sage adds it back with a 0 value, so it seems to be looking at this value at startup, but just doesn't implement the 400 value for me. Perhaps a plugin could be messing with this? I am using the latest beta for Phoenix and the web interface. Other stats are that upgraded from v7, am running Win 10 64, and have 32-bit Java 1.8.0_111. Noticed there was a Java update available to version 1.8.0_121, but updating didn't help either.

Last edited by Evil_Attorney; 02-07-2017 at 11:17 AM.
Reply With Quote
  #35  
Old 02-07-2017, 11:31 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The heap is set up long before any plugins are close to looked at, so I can't imagine that has anything to do with it.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #36  
Old 02-07-2017, 10:53 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by willieb View Post
Hmmmmm. I'm at 779 too and I know I went up to 1024 years ago. That might explain the increased frequency of the spinning circle I have seen with version 9. Will have to see if I can increase on Saturday. I will let you know if it "takes" for me. If you figure it out please post the solution. Thanks.
I wonder if this will explain my live video just stopping for no reason
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #37  
Old 02-08-2017, 07:13 AM
UgaData's Avatar
UgaData UgaData is offline
Sage Aficionado
 
Join Date: Sep 2005
Posts: 447
Babgvant (Andy vt,s Tool & Blog) has a Sage registry application. One of the things it will set is the Java heap.

http://babgvant.com/files/10/default.aspx

It is meant for SageTV v7 but i have recently used against v9 and all seems OK (it did change the Java heap size)
__________________
"Unencumbered by the thought process"

The only constant in the Universe is change.
Reply With Quote
  #38  
Old 02-09-2017, 07:47 AM
sacrament055 sacrament055 is offline
Sage Aficionado
 
Join Date: Jul 2007
Posts: 474
I was seeing a similar issue yesterday after having upgraded my client to the latest version and it turned out the Sage Client app didn't have proper permission to the REG keys so it was ignoring my change to max out the memory at 400h and my disabling of the sagetv demux.

I tried opening it as administrator and noticed it worked correctly then I changed reg permissions to give "everyone" full control and it works fine now without needing to open as administrator.
Reply With Quote
  #39  
Old 02-09-2017, 08:01 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I think this is something the installer WAS setting when creating those keys initially, but on upgrades, it might not be touching the permissions.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #40  
Old 02-09-2017, 08:44 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by sacrament055 View Post
I was seeing a similar issue yesterday after having upgraded my client to the latest version and it turned out the Sage Client app didn't have proper permission to the REG keys so it was ignoring my change to max out the memory at 400h and my disabling of the sagetv demux.

I tried opening it as administrator and noticed it worked correctly then I changed reg permissions to give "everyone" full control and it works fine now without needing to open as administrator.
What were you upgrading from/to?

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
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
Java Heap Max Message Question kcjack SageTV Software 4 06-13-2011 08:03 AM
Debugging the Java Heap tmiranda SageTV Studio 4 10-19-2010 05:55 PM
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


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


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