How to configure a jar file to be monirored by App Dynamics??
  • I have to monitor my application using App Dynamics Lite. My application is in the form of a JAR file.
    How can i configure it to be monitored ?
  • Hello,

    You can apply appdynamics agent to your jar file by doing java -javaagent:{Path_to_agent_install_dir}/javaagent.jar -jar {yourjarfile}

    You can configure pojo rules and monitor the business transaction . Here is the help link for pojo rule configuration http://litedocs.appdynamics.com/default.htm?configure_business_transactions_for_pojo_requests.htm

    Regards,
    Arpit Patel
  • Thank you so much arpit.

    I have already tried adding the mentioned string value to tomcat configuration but whenever i add this string to it my tomcat donot get starts and when i remove this configuration line it gets ok and tomcat behaves normal.

    I have tried to do this with making different changes to configuration, like removing the java from the start, adding complete path of my jar file, removing complete path and adding only name, putting my jar into same folder as of app dynamics server etc.

    All these cases got failed and I am still unable to load my jar.

    Regarding POJO settings, i have configured them but as my jar is not loaded so there is no result in monitoring engine.

    One thing more, my App Dynamics Lite server donot gets start with
    -java -javaagent:”agent_install_dir\javaagent.jar”
    but it starts with the configuration
    -javaagent:”agent_install_dir\javaagent.jar”
  • Hello ,

    Can you please copy paste the exact agent entry string here ?

    Regards,
    Arpit Patel
  • Dear Arpit,

    Below are the configuration strings I am adding into the configurations of my Tomacat application server

    AppDynamics server configuration string is
    -javaagent:C:\App Dynamics\AppServerAgentLite\javaagent.jar

    JAR Configuration string is
    java -javaagent:C:\App Dynamics\AppServerAgentLite\javaagent.jar -jar C:\primary\monitoringservices.jar

    App Dynamics configuration string is working fine. When I add this string to configuration, my App Dynamics lite server get start successfully.
  • yes your entry looks correct . Are you trying to monitor stand alone application or the webapplication.

    For Standalone application you will need java -javaagent:C:\App Dynamics\AppServerAgentLite\javaagent.jar -jar C:\primary\monitoringservices.jar this and you will need to define the pojo rules.

    For webapp your first entry is correct .

    Let me know if you are facing any issues in monitoring.
  • I am trying to monitor web app as well as a back end stand alone service.

    Thanks for your coordination...... at the time I am having only problem in configuring the jar, but i will handle it.

    Will contact you if I ever faced problem in monitoring.

    Thank you again for your cooperation
  • Please refer to following location to access the document on configuring business transactions for POJO requests:
    http://litedocs.appdynamics.com/display/ADLite/Configuring+Business+Transactions+For+POJO+Requests

    Thanks,
    Ruchita
  • Hi,
    I have the same problem, trying to monitor a stand alone application, but there is nothing on the screen. I've define the pojo rules according to the given link. my jar configuration is

    java -javaagent:"/home/orleant/soft/AppServerAgent/javaagent.jar" -jar scenarioTest.jar

    Thank !
  • can you try with java -javaagent:/home/orleant/soft/AppServerAgent/javaagent.jar -jar scenarioTest.jar ?

    Also please send me the zipped version of agent logs at apatel@appdynamics.com

  • I've try the given command, always nothing. I've send you the zipped log folder...

    Thank you !
  • Hello orleant,

    As per the logs I don't think pojo rules are applied . Can you please ensure that you have configured pojo rule as described http://litedocs.appdynamics.com/display/ADLite/Configuring+Business+Transactions+For+POJO+Requests link.

    It would be great if you can send me the screenshot of pojo rule that you have defined.

    Agent has started properly so it I can take a look at the pojo rule configuration in this case.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!