SageTV Community  

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

Notices

SageTV v9 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 9 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 9 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2018, 12:29 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
RESTful access to the JVM info?

Is there a way to access the JVM heap info over HTTP? I checked the sagex api and didn't see a method to access JVM or heap information.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #2  
Old 01-05-2018, 12:45 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
timranda should know - he wrote the JVM heap monitor plugin for the UI. But I think he is in the middle of moving right now.

And stuckless would know as well. You might be able to tell how the WebUI gets this info from the jar file that it uses. Presumably it uses an API method that you could access from sagex. Although I guess it is also possible that it uses a Java system command.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #3  
Old 01-05-2018, 12:55 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by broconne View Post
Is there a way to access the JVM heap info over HTTP? I checked the sagex api and didn't see a method to access JVM or heap information.
Well, in theory, you can access any java api via sagex remote apis. This is mainly true, because the STV allows you to embed java calls directly, albeit in a convoluted way.

Code:
http://192.168.1.10:8080/sagex/api?c=EvaluateExpression&1=java_lang_Runtime_freeMemory(java_lang_Runtime_getRuntime())&encoder=json]
Would return the jvm free Memory.

EvaluateExpression is documented here

http://192.168.1.10:8080/sagex/api?q=Evaluate
Reply With Quote
  #4  
Old 01-05-2018, 01:11 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by stuckless View Post
Well, in theory, you can access any java api via sagex remote apis. This is mainly true, because the STV allows you to embed java calls directly, albeit in a convoluted way.

Code:
http://192.168.1.10:8080/sagex/api?c=EvaluateExpression&1=java_lang_Runtime_freeMemory(java_lang_Runtime_getRuntime())&encoder=json]
Would return the jvm free Memory.

EvaluateExpression is documented here

http://192.168.1.10:8080/sagex/api?q=Evaluate
Perfect! Thanks!
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
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
cbs all access electrofex SageTV Software 3 10-21-2017 07:19 PM
Request for easier access to detailed info Gustovier Phoenix 4 10-29-2011 11:48 PM
scriptable internet access while maintaining LAN access korben_dallas The SageTV Community 5 12-21-2009 06:11 AM
Video Info in SageMC 16x9, where did the info go...? mrrrl SageMC Custom Interface 1 12-22-2006 10:51 AM
Sage TV and Access DTV chadman SageTV Software 0 12-05-2003 02:29 PM


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


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