How To Use Monitoring Agents

From Opentaps Wiki
Revision as of 00:27, 4 June 2010 by Jwickers (talk | contribs) (New page: 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: V...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

http://rpm.newrelic.com

First download the zip file containing both the jar and yml files, and unzip it in a directory.

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

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