Difference between revisions of "How To Use Monitoring Agents"

From Opentaps Wiki
Jump to navigationJump to search
(Example: RPM Relic)
(Example: RPM Relic)
Line 20: Line 20:
 
=== Example: RPM Relic ===
 
=== Example: RPM Relic ===
  
http://rpm.newrelic.com
+
[https://rpm.newrelic.com/affiliates/OPENT21271/signup New Relic RPM] is a web-based service which helps you monitor, diagnose, and fix application performance problems in real time.  Statistics about your application are uploaded to the New Relic server, which gives you information about response times, database queries, and Web transactions. The basic monitoring service is free, and additional services can help you troubleshoot and optimize your application.
  
 
First download the zip file containing the jar and download the YML file (available on the same page). Unzip the zip file and put the YML file in the same directory.
 
First download the zip file containing the jar and download the YML file (available on the same page). Unzip the zip file and put the YML file in the same directory.
Line 27: Line 27:
  
 
Then start Opentaps with the ''startofbiz.sh'' and you should start receiving data on their dashboard.
 
Then start Opentaps with the ''startofbiz.sh'' and you should start receiving data on their dashboard.
 +
 +
'''You can get a free month of New Relic RPM Gold with promotion code OPENTAPS30'''.

Revision as of 22:15, 29 July 2010

Most monitoring agents will need to be declared as arguments to the JVM. In order to do that, dimply edit the startofbiz.sh (or .bat on windows) script and replace the following:

  VMARGS="$MEMIF $MISC $DEBUG $RMIIF $ADMIN"

By:

  MONITORING="the agent parameters"
  VMARGS="$MEMIF $MISC $DEBUG $RMIIF $ADMIN $MONITORING"


Example: JConsole

http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html

  MONITORING="-Dcom.sun.management.jmxremote"

Then start Opentaps with the startofbiz.sh script and use JDK_HOME/bin/jconsole to connect to the opentaps JVM and start monitoring.

Example: RPM Relic

New Relic RPM is a web-based service which helps you monitor, diagnose, and fix application performance problems in real time. Statistics about your application are uploaded to the New Relic server, which gives you information about response times, database queries, and Web transactions. The basic monitoring service is free, and additional services can help you troubleshoot and optimize your application.

First download the zip file containing the jar and download the YML file (available on the same page). Unzip the zip file and put the YML file in the same directory.

  MONITORING="-javaagent:/full/path/to/newrelic.jar"

Then start Opentaps with the startofbiz.sh and you should start receiving data on their dashboard.

You can get a free month of New Relic RPM Gold with promotion code OPENTAPS30.