Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by ShalinMangar: http://wiki.apache.org/solr/SolrJmx The comment on the change is: Added steps to run a quick demo with example jetty ------------------------------------------------------------------------------ }}} Creates a new M!BeanServer exposed for remote monitoring at the specific service url. If the JMX!ConnectorServer can't be started (probably because the serviceUrl is bad) then an exception is thrown. + = Quick Demo = + + Using the example jetty setup provided with Solr installation, we can quickly see what the JMX support looks like in jconsole. + * Get and apply the patch on a Solr nightly (or trunk) source. See the [#where Where to find it] section for details + * Run "ant example" to build the example war file + * Goto example folder in the Solr installation and run the following command + {{{ + java -Dcom.sun.management.jmxremote -jar start.jar + }}} + * Start jconsole (provided with the Sun JDK in the bin directory) + * Connect to the "start.jar" shown in the list of local processes + * Switch to the "MBeans" tab and you should be able to see "solr" listed there. + + attachment:jconsole.png + + [[Anchor(where)]] = Where to find it = Support for JMX is being built at [https://issues.apache.org/jira/browse/SOLR-256 SOLR-256 Stats via JMX]
