I want to instrument the solr plugin. To use the plugin the information for the plugin advised to add the dynaTrace agent to your JVM_OPTS when starting SOLR (use name=SOLR).
Has anyone instrumented this to get it to work and or saome who knows about the plugin to advise which file this needs to be added to and what the line should read as?
Answer by Anders L. ·
I am running a PoC with a Hybris customer that is running Solr in the same JVM as the rest of Hybris.
I have installed the fastpack (sensor pack, bts and some dashboards).
The BT's measurement filter seems wrong in the version I am looking at, it looks for /solr/ but there is no such thing in this system. I see /solrfacetsearch/[customerspecific data]/select webrequests.
The sensor pack definitively instruments alot of executed methods so that seems still accurate.
To be honest, I dont know what to expect. Is the dashboards and all Solr stuff only about monitoring some filtered webrequests?
Answer by Andreas G. ·
Here is a snippet of an internal document that explains how to get SOLR instrumented with a dynaTrace Agent. I have admit that I have not worked with SOLR before so I hope this information makes sense to you. The basic necessary step is to get the -javaagent command line option on the JVM that runs SOLR. Here is the description of our internal document - let me know if this helps
To Run SOLR manually
In the apache-solr-3.3.0\apache-solr-3.3.0\example folder is start.jar that starts a SOLR instance.
Create a start.cmd in the same folder and include only following line:
java -agentpath:"C:\Program Files\dynaTrace\dynaTrace 4.1.0\agent\lib64"\dtagent.dll=name=SOLR,server=localhost -jar start.jar
The solr Admin page is, by default, http://localhost:8983/solr/admin/
Port 8983 needs to be available.
The README.txt in the example directory shows how to add documents to the index. There are a few modifications to do it in windows.
From the apache-solr-3.3.0\apache-solr-3.3.0\example\exampledocs directory run the following command:
java -jar post.jar *.xml
If the agent is mapped properly dynaTrace will provide good OOTB instrumetation, which of course can be enhanced
SQL Server Monitor Plugin 8 Answers
TOPAS / AIX 2 Answers