Difference between revisions of "How To Use Monitoring Agents"

From Opentaps Wiki
Jump to navigationJump to search
(Example: RPM Relic)
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
   VMARGS="$MEMIF $MISC $DEBUG $RMIIF $ADMIN $MONITORING"
 
   VMARGS="$MEMIF $MISC $DEBUG $RMIIF $ADMIN $MONITORING"
  
 +
=== New Relic RPM ===
 +
 +
[[Image:Newrelic.png|thumb|400px]]
 +
 +
[https://rpm.newrelic.com/signup/?product%5Blevel%5D=Lite&product%5Bcommitment%5D=Monthly&subscription%5Bnumber_of_hosts%5D=1&partnership_id=85&promo_code=OT30PRO 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.
  
=== Example: JConsole ===
+
Then edit your <tt>startofbiz.sh</tt> or <tt>startofbiz.bat</tt> and add
  
http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html
+
  MONITORING="-javaagent:/full/path/to/newrelic.jar"
  
  MONITORING="-Dcom.sun.management.jmxremote"
+
'''NOTE''': this needs to be the full path, like <tt>/home/me/opentaps/newrelic/newrelic.jar</tt>, not just the relative path from your opentaps directory.
  
Then start Opentaps with the ''startofbiz.sh'' script and use ''JDK_HOME/bin/jconsole'' to connect to the opentaps JVM and start monitoring.
+
Next change <tt>VMARGS</tt> to
  
=== New Relic RPM ===
+
  VMARGS="$MEMIF $MISC $DEBUG $RMIIF $ADMIN $MONITORING"
  
[[Image:Newrelic.png|thumb|400px]]
+
Finally start Opentaps with the ''startofbiz.sh'' and you should start receiving data on their dashboard.
  
[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.
+
'''You can get a free month of New Relic RPM Gold with promotion code OPENT210ZHL'''.
  
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.
+
=== JConsole ===
  
  MONITORING="-javaagent:/full/path/to/newrelic.jar"
+
See http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html
  
Then start Opentaps with the ''startofbiz.sh'' and you should start receiving data on their dashboard.
+
  MONITORING="-Dcom.sun.management.jmxremote"
  
'''You can get a free month of New Relic RPM Gold with promotion code OPENTAPS30'''.
+
Then start Opentaps with the ''startofbiz.sh'' script and use ''JDK_HOME/bin/jconsole'' to connect to the opentaps JVM and start monitoring.

Latest revision as of 18:55, 28 March 2012

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"

New Relic RPM

Newrelic.png

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.

Then edit your startofbiz.sh or startofbiz.bat and add

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

NOTE: this needs to be the full path, like /home/me/opentaps/newrelic/newrelic.jar, not just the relative path from your opentaps directory.

Next change VMARGS to

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

Finally 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 OPENT210ZHL.

JConsole

See 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.