SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-27-2009, 03:42 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Arrow STV Import: Java Heap Monitor

Running out of Java Heap space can cause many issues when running SageTV. You can go to the System information menu to see how big your Java heap is and how much memory is available, but how often do you really look there?

This STVi gives you the option to display a small bar style graph in the upper right portion of the Main Header that displays how much Java heap space is available. It also allows you to have System Messages generated if the amount of used Java heap memory exceeds user defined thresholds.

To install: Unzip to your SageTV install directory (usually C:/Program Files/SageTV/SageTV) and import the JHM stvi. There is no need to shutdown Sage.

Once installed you can configure the options by going to Setup->Detailed Setup->Customize menu. At the end of the list you will find the Java Heap Monitor.

Explanation of options:
  • Enable or Disable - Does what it says. Disable turns off all functionality.
  • Current Values - Displays the current heap status in the same format as is used in the System Information menu (Used/Total/Max).
  • Show Meter in Main Header - Controls if the graphical meter is displayed or not.
  • Meter Update Interval - Controls how often the meter in the Main Header is updated. The value is specified in milliseconds. You can set it as low as 500ms but I recommend you leave it at 1000ms or higher.
  • Use System Messages - Controls if system messages will be generated if the size of the Java heap exceeds the threshold levels.
  • Warning Threshold - If the size of the Java heap exceeds this level a warning level (yellow) system message will be generated. A message will be generated once every hour if the heap size does not go below the threshold.
  • Error Threshold - If the size of the Java heap exceeds this level an error level (red) system message will be generated. A message will be generated once every hour if the heap size does not go below the threshold.

Note that the meter related options can be set for each client/extender/placeshifter. The system message related options are server based.

Download here: http://forums.sagetv.com/forums/down...do=file&id=349
Attached Images
File Type: jpg JHM.jpg (89.2 KB, 798 views)
__________________

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.

Last edited by tmiranda; 11-28-2009 at 05:47 AM. Reason: Fixed spelling error.
Reply With Quote
  #2  
Old 11-27-2009, 10:37 PM
PGPfan's Avatar
PGPfan PGPfan is offline
Sage Fanatic
 
Join Date: Apr 2003
Location: Oldtown, Idaho USA
Posts: 862
Thanks a lot for this stvi - it's a welcome addition to my system. One request however - I've found that even when I correctly setup the UI overscan, the vertical bargraph that appears in the title bar is off the screen. Is there any way to make it stay in the same place as when system information is displayed? When the system information icon (the exclaimation point icon) is shown, the bargraph is to the immediate left of the icon. If you erase the system message, the bargraph shifts to the right - almost off the screen.

Does my description make sense? Any suggestions for a fix?

-PGPfan
__________________
Sage Server: Gigabyte 690AMD m-ATX, Athlon II X4 620 Propus, 3.0 GB ram, (1) VistaView dual analog PCI-e tuner, (2) Avermedia Purity 3D MCE 250's, (1) HD-Homerun, 1.5 TB of hard drives in a Windows Home Server drive pool, Western Digital 300GB 'scratch' disk outside the pool, Gigabit LAN
Sage Clients: MSI DIVA m-ATX, 5.1 channel 100w/channel amplifier card, 2 GB ram, , (1) Hauppauge MVP, (1) SageTV HD-100 Media Storage: unRAID 3.6TB server
Reply With Quote
  #3  
Old 11-27-2009, 10:54 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
My question is.. how much heap doe the heap monitor take up? ;-)
__________________
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
  #4  
Old 11-28-2009, 05:47 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
@PGPfan - I think you are saying the meter goes off the right side of the screen but I'm not seeing that on my system. I'll investigate this more. Can you post a screenshot?

@Fuzzy - Not much
__________________

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
  #5  
Old 11-28-2009, 11:08 AM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Any chance you'd consider porting this to MC?
Reply With Quote
  #6  
Old 12-15-2009, 05:33 PM
loonsailor loonsailor is offline
Sage Advanced User
 
Join Date: Jul 2009
Location: Berkeley, CA, USA
Posts: 176
I can't get this to work. I've unzipped the file, and I now have a file called
/opt/sagetv/server/STVs/SageTV3/JHM 1.stvi (I'm on linux). But, when I try to import it from Setup->Detailed Setup->Advanced->Manage STVi Plugins, it doesn't show up. Nothing shows on the Customize menu either. I've restarted sage, but there's still nothing thee to import.

This my first time trying to import an STVi. Am I doing something wrong?

Last edited by loonsailor; 12-15-2009 at 05:37 PM.
Reply With Quote
  #7  
Old 12-15-2009, 07:01 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
@loonsailer - when you are in manage plugins... select "Add new stvi plugin", then browse for the plugin and load it.
Reply With Quote
  #8  
Old 12-15-2009, 07:43 PM
loonsailor loonsailor is offline
Sage Advanced User
 
Join Date: Jul 2009
Location: Berkeley, CA, USA
Posts: 176
Thanks. I had done that but didn't see it, because it was browsing on the local computer on which the client was running, not on the server where I'd put the stvi file. I did the same thing on my HD-200, and it works great.
Reply With Quote
  #9  
Old 12-15-2009, 11:52 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
If you are using a client PC, the imports need to be installed on the client. In this case, I believe it would only be moniutoring the Java heap of the client itself, as it, unlike extenders and placeshifters, run it's own completely seperate process (with it's own heap).
__________________
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
  #10  
Old 01-04-2010, 11:36 AM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Great plug-in, but How can I see my Java status without installing this plugin?

When I go to my SageTV system information screen, I don't see anything about Java Heap size.
Reply With Quote
  #11  
Old 01-04-2010, 02:27 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
It's in the System Information, you just have to scroll down a little. Use the down key on the remote or the down arrow on a keyboard.
__________________

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
  #12  
Old 01-04-2010, 04:59 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Cool thanks. I had taken out System Information with Niels menus so I forgot about it.
Reply With Quote
  #13  
Old 05-28-2010, 05:21 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
New version available for Sage7. This version fixes a bug that caused the STVi to be incompatible with the CPU Monitor STVi.
__________________

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
  #14  
Old 12-21-2010, 04:24 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Version 1.20 available:
  • Use new STV hook provided to avoid collisions with other STVi's that need to put icons in the header.
  • Changed default setting so the meter is enabled by default.
__________________

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 08-01-2012, 11:47 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Tom,

If I install this on the server not running the GUI (STANDALONE) will I be able to still see the messages in any Client ... when Java Heap is low on the Server?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #16  
Old 08-01-2012, 01:42 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
How would you install it on the server if it's not running any UI? (I'm assuming you mean the server is running in service mode.) You need to install it on at least one UI (that runs on the server JVM) and the UI must be active for it to generate a system message. Once the system message is generated you can see the message on any UI.
__________________

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 08-01-2012, 02:07 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by tmiranda View Post
How would you install it on the server if it's not running any UI? (I'm assuming you mean the server is running in service mode.) You need to install it on at least one UI (that runs on the server JVM) and the UI must be active for it to generate a system message. Once the system message is generated you can see the message on any UI.
Thanks I noticed that I have to have the UI running on the server in order for the Plugin to be enabled. I thought it ran under just the service. That means that I would have to run the UI minimized and the service... My Java Heap is set to 1024 does not mean I need 2048 free? 1024 for service and 1024 for UI?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #18  
Old 08-01-2012, 03:33 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
I'm pretty sure the UI on the server will share the same JVM as the service. I don't run it that way so I'm not certain.

I always have an extender running and that takes care of things.
__________________

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
  #19  
Old 08-01-2012, 05:09 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by tmiranda View Post
I'm pretty sure the UI on the server will share the same JVM as the service. I don't run it that way so I'm not certain.

I always have an extender running and that takes care of things.
They are separate instances of the JVM. That way you can run service mode to record and GUI to connect to multiple servers. At least that is how system info reports the usage anyway. That's how I have mine setup in living room. I currently have 112MB/218MB/1038MB in SystemInfo. Task Manager shows 229,712K for SageTV.exe and 189,496K for SageTV service which doesn't add up to the 218MB that system info shows but that would be correct for just SageTV.exe.

If you use placeshifter and connect up to the server and install the plugin it will report the heap of service mode. Same idea if using an extender. Then you have a GUI being used in service mode and another reason I switched from using extenders. In theory by NOT using extenders or placeshifters the GUI does not share memory with service mode so recordings would be unaffected if the GUI crashed. But the GUI code that runs on the server for placeshifter or an extender would be more likely to crash the server code that is recording. Since running a client GUI on the same OS as the server code could still crash the OS you could still cause recording problems but it isn't as likely. Of course SageTV doesn't crash on me anyway so it is a minor point. I switched because at first I wanted to limit myself to just one (out of three) extenders used to have spares for when they die. I completely retired my extenders because I liked the faster menus and the ability to get BluRay menus with TMT. I have switched back to an extender in the Living room temporarily when TCM became TCMHD and I found that I cannot playback the HD-PVR or Colossus recordings without stuttering. The extender has no problem nor does the Zotac i3 booksize client. Just my Q6600 Asus P5Q-EM server. I hope to upgrade to an Ivy Bridge i5 within a few months and retire the extender again.
Reply With Quote
  #20  
Old 08-01-2012, 06:11 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Thanks Bob,

I did some testing and the Service and the UI do use seperate JVM.. I guess the plugin does not run in service mode. So I would need double the JVM. I will bypass using this plugin for now thx.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
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
STV Import: CPU, Memory and Motherboard Monitor Module (20 Sep 2007 v1.5) nielm SageTV Customizations 63 05-04-2012 09:09 AM
STV Import: Java Heap Monitor tmiranda Customization Announcements 2 12-21-2010 04:23 PM
Java Heap help gibsonpa SageTV Software 3 08-06-2008 03:11 PM
STV Import: Weather Monitor deria SageTV Customizations 35 08-23-2006 08:15 PM
STV Import: System Monitor deria SageTV Customizations 109 06-16-2006 05:11 PM


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


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