Java Management Extensions (JMX)
is a Java standard API for monitoring and managing applications and network services.
Step 1 : Starting Solr with JMX
In solrconfig.xml, the stanza <jmx/> needs to be uncommented to enable JMX support. In order to actually start up with JMX, you need to provide some extra parameters to support remote connections, including the port to be connect to:
>>java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar start.jar
if you are using windows service, please add
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=3000
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
into java tab.
Setp 2: Launch VisualVM
Open VisualVM and Setup JMX Connection
View the profiler