Monitoring with New Relic

Last update: Edit

When setting up a Mendix application on-premise, you can set up advanced monitoring with New Relic. This works with both Windows and Linux deployments.


  1. Set up a trial account with New Relic at
  2. Follow the New Relic for Java installation here:
  3. As noted in the guide in step 2: unzip the into a directory that the user of the Mendix process has access to (i.e. the user home directory)
  4. Check the newrelic.yml file in the unzipped newrelic directory, make sure you read through the settings and that you understand the security implications
  5. Follow the Linux / Windows specific steps below to complete the installation

Linux specific steps

  1. Add ‘-javaagent:/PATH/TO/NEWRELIC.JAR’ to your java options in the m2ee.yaml file. Make sure to replace the path to the actual path of the newrelic.jar.

The configuration section in m2ee.yaml should look something like this:

 javaopts: [
 "-Dfile.encoding=UTF-8", "-XX:MaxPermSize=64M", "-Xmx256M", "-Xms256M",

Windows specific steps

  1. Add ‘-javaagent:/PATH/TO/NEWRELIC.JAR’ to your java arguments in the Windows Service Console

Read More