Solr Performance monitor - JMX + Jconsole

    技术2022-05-20  43

    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 JConsole

     

    J2SE ships with JConsole, a GUI client for connecting to JMX servers. In order to start it, run the following command:

    >> [JDK_HOME]/bin/jconsole

    In order to connect to Solr, choose the Remote tab, and enter localhost for the Host or IP and 3000 for the Port. As we have started without requiring authentication, you do not need to enter a username and password.

     

     

    Login

     

     

    Memory Usage

     

    org.apache.solr.search.SolrIndexSearcher

     

     


    最新回复(0)