What’s the recipe for a JMX proxy?

I don’t want to have to pick port numbers for the usual JMX remote management property. Is there a standard methodology for setting up some sort of proxy (e.g., via ssh) to avoid the need to to do this? Answer Some application servers already have a JMX proxy. In JBoss you can access it with … Read more

Why are all the tabs except MBeans disabled in JConsole? (when using “Remote Process” connection)

I’m trying to connect to JConsole on a server running: java version “1.6.0_0” OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu12) OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode) When I connect using the “Local Process” method, all the tabs are enabled — when I connect via the “Remote Process” method, it connects just fine, but the … Read more

JVM Max heap size

For an application I use JVM Max heap setting when starting it on both a test environment and a production system. When i connect via JMX to monitor the application I see that the max heap size of production app is not the same as test application. I use -Xmx2000m on both and on test … Read more

Multiple munin-nodes per machine

I’m collecting statistics remotely through JMX. The munin JMX plugin allows you to select an URL to connect to when aggregating statistics. This allows me to collect statistics from hosts which do not actually have munin-node installed. I find this a desirable property for some systems where I am hindered to install munin-node. How I … Read more

Cassandra JMX doc pointers

Any good starting URL/pointers for reading up on what could be monitored through JMX on cassandra 2.0? Think off pull data into an existing ELK stack from JMX on new Cassandra clusters, but never really dealt with JMX before. Answer My answer for similar question. https://dba.stackexchange.com/questions/107597/cassandra-cluster-monitoring/128385#128385 In your use case you could create script that … Read more

Jmxtrans Jersey query throws exception

I want to graph usage stats from my application in Graphite. I’m trying to get Jmxtrans up and running. The object I want to query is: org.glassfish.jersey:type=my-server,subType=Uris,resource=”/resource.js”,executionTimes=RequestTimes In my config I have: “obj”: “org.glassfish.jersey:type=my-server,subType=Uris,resource=\”/resource.js\”,executionTimes=RequestTimes” But this is causing the following error: [06 Feb 2016 22:12:29] [jmxtrans-query-2] 363453 ERROR (com.googlecode.jmxtrans.jmx.ProcessQueryThread:57) – Error executing query Query(objectName=org.glassfish.jersey:type=reflow-ad-server,subType=Uris,resource=*,executionTimes=RequestTimes, keys=[], … Read more

Why can’t I get JMX to run with Tomcat8 through CATALINA_OPTS?

According to https://tomcat.apache.org/tomcat-8.0-doc/monitoring.html#Introduction I should be able to active JMX by setting some env variables on CATALINA_OPTS. I’ve done this: export CATALINA_OPTS=”-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false” Some places seem to suggest I need catalina-jmx-remote.jar in $CATALINA_OPTS/lib which I have: $ ls -l /opt/tomcat/apache-tomcat-8.0.37/lib/catalina-jmx-remote.jar -rw-r–r– 1 root root 13608 Jan 18 23:05 /opt/tomcat/apache-tomcat-8.0.37/lib/catalina-jmx-remote.jar I’ve also made sure … Read more

Monitor JMX with Nagios for space on name

We are trying to monitor JMX with Nagios XI and using check_jmx Plugin. Its working fine for Heap memory, thread count etc..We re facing issue on while using the following: obj”: “java.lang:type=MemoryPool,name=Par Eden Space”, “attr”: [ “Usage”] ], “obj”: “java.lang:type=GarbageCollector,name=PS MarkSweep”, attributes: [CollectionCount, CollectionTime] We tried varios options but as there is space in name … Read more

Concerns and strategies for enabling/disabling jmx and xdebug parameters for jvms in pods

I’m working on the code for one service that is part of a larger project. Most of the apps are Java REST services, all running in containers in pods. To debug what’s happening in the JVM, it’s convenient to add either or both of the typical JMX and Xdebug parameters, to allow introspecting the JVM’s … Read more