Thursday 8 November 2012

New Relic Agent in JBoss AS7

New Relic is a company with a hot new cloud based performance and monitoring service.
Without having performed a deeper evaluation, I must still say that it looks quite impressive and has a clean and very nice UI.
As you sign up for their service you get to download a zip with the New Relic Agent. For a Java-environment, it contains e g some JARs, configuration files and a README.txt explaining how to run the bundled installer.
If you're running JBoss AS7 you are currently (this will certainly be amended) a bit on your own though. But don't despair (or wait in wain)! The solution is quite simple. Just follow steps below and and you're up and monitoring your apps in no time.

Note: This has successfully been tested using JBoss AS7.1.2.Final on OSX 10.8.2 with Java SE 1.6.0_37.

1. create the directory structure
where JBOSS_HOME is the root install directory of your JBoss AS7 distribution. 

2. add a file named module.xml with the following content to the directory main from 1.
<?xml version="1.0" encoding="UTF-8">
<module xmlns="urn:jboss:module:1.0" name="com.newrelic.agent">
    <resource-root path="newrelic.jar"/>
    <!-- Insert resources here -->

3. from the downloaded zip, copy the file newrelic.jar to the directory main from 1.
This is the New Relic Agent.

4. from the downloaded zip, copy the file newrelic.yml to the directory main from 1.
This is the base configuration for the New Relic Agent.

5. add the following lines th the JBoss AS startup script (e g) $JBOSS_HOME/bin/

JAVA_OPTS="$JAVA_OPTS -javaagent:<path>/newrelic.jar"
Make sure to change the <path> to where the newrelic.jar is located - it should be in the directory in 1.

6. start JBoss AS with (in the simplest form) e g

7. deploy you app (ear/war etc) to JBoss AS7

8. Look at how your app is discovered - it might take a few minutes - and then how it behaves. Configure, monitor, set alerts & notifications, etc.



  1. Need Home Security System India for Home and Office, Contact DFS Services. Buy High Quality Home Security Intruder Alarm System or Burglar Alarm System, Video Doorbell and Security Cameras (IP Camera). Dfs Services is the best company for Home Security Systems in India.

    visit us:-security systems

  2. One of the best Ayurvedic capsules for weight gain is Sehatprash capsules. Sehatprash is powerful adaptogen that helps the body cope with stress and promotes overall well-being. It is also known tastimulate appetite and improve digestion, which can aid in weightgain.

  3. There are various forms of Satta king game, and eachSatta king forms open different results at different times. Satta king form as also knows as the Satta king game. All the forms of Satta king game are being played all over the world. Satta result comes in the form of a two-digit number and opens it's on fixed timing. Satta result is the number that decides the Satta king winner. You can all the Satta king game result in every Satta king website. Their Satta result is well arranged on every page of the Satta king website as it is the source of visitors to any website