Solr 5 NewRelic Configuration
Solr 5 comes with a great new feature to install as a Linux service. If you previously ran Solr4 under Tomcat or other Java container, and you used NewRelic for application performance monitoring, you might be wondering the best way to include the NewRelic Java agent with your new Solr 5 service.
Assuming the default location of your Solr service installation is /var/solr, perform the following steps to start monitoring Solr in NewRelic.
Solr 5 NewRelic Instructions
- Login to NewRelic and click on your “Profile” -> “Account Settings”.
- Download the NewRelic zip archive from your NewRelic Account for the correct JVM version you are using. This is available for download with your license key already present in the newrelic.yml file.
- unzip the archive into /var/solr which will create a /newrelic directory.
- cd /var/solr/newrelic
- Edit the newrelic.yml file and set the “app_name” value, like “app_name: Solr 5”
- cd /var/solr
- Edit the solr.in.sh file and go to the section for SOLR_OPTS and add this line
- Restart the Solr service and you should see metrics in NewRelic after just a few minutes.
service solr restart
Prowave Consulting is a full-service consulting firm specializing in applications written in Java. We offer professional services for Java application containers (Tomcat, JBoss), Solr and Cassandra. We design and implement enterprise grade clusters for companies of all sizes.
If you would like assistance if setting up or configuring Solr, please Contact Prowave for a free consultation. For emergency support, please call 904-302-7734.