You can monitor the Solr instance for the purpose of memory and CPU usage. There are various ways of doing it; a simple administration of Solr provides you with some statistics for the usage. Using standard tools such as JConsole and JVisualVM, you can connect to the Solr process for monitoring of memory usage, threads, CPU usage, and so on, as shown in the following screenshot:
With JConsole
, you can also look at different JMX-based MBeans supported by Solr. On a sample Jetty setup, you can simply connect Solr using the following procedure:
Open the
JDK
folder which is being used by Solr.Go to the
bin
directory and runJConsole
.In
JConsole
, connect to Solr process; in the case of default Jetty implementation, connect tostart.jar
.Once connected, switch to the MBean tab.
You will find the MBean browser as shown in the following screenshot:
For a clustered search instance, you can connect remotely through JConsole. However, while starting JVM, you need to pass the...