Subhajitdas298 opened a new pull request #417:
URL: https://github.com/apache/tika/pull/417


   For TIKA-3327,
   
   Added very simple MBean for exposing ServerStatus (over an abstraction to 
enable readonly).
   
   This is **activated when status is enabled** using command line.
   
   This can be used along side Prometheus JMX exporter (or other tool like 
Jconsole).
   
   Sample Prometheus JMX exporter usage:
   
   Standalone: _java 
-javaagent:./jmx_prometheus_javaagent-0.15.0.jar=8080:../config/jmx-config.yaml 
-jar .\tika-server-1.26-SNAPSHOT.jar -status_
   
   Parent-Child mode: _java -cp .\tika-server-1.26-SNAPSHOT.jar 
org.apache.tika.server.TikaServerCli -status -spawnChild 
-Jjavaagent:./jmx_prometheus_javaagent-0.15.0.jar=8080:../config/jmx-config.yaml_
   
   Note: MBean works irrespective of java execution mode (-jar or -cp ..Cli). 
And JMX exporter by default exposes a lot of JVM metrices.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to