Skip to content

Latest commit

 

History

History
102 lines (63 loc) · 5.05 KB

manage-app-performance-with-new-relic.md

File metadata and controls

102 lines (63 loc) · 5.05 KB
title url weight tags
Manage App Performance with New Relic
/howto8/monitoring-troubleshooting/manage-app-performance-with-new-relic/
2
monitoring
troubleshooting
performance
new relic

1 Introduction

To ensure your applications run smoothly, they need to be actively monitored so that the information is available in order to do the following:

  • Avoid performance problems
  • Diagnose performance problems when they occur

New Relic is a flexible application performance management tool that provides information to help you achieve the above goals.

This how-to teaches you how to do the following:

  • Set up application performance management for your Mendix application on New Relic

2 Prerequisite

Before starting with this how-to, make sure you have completed the following prerequisite:

3 Setting Up

In this section, we will walk through all the steps to configure New Relic so that it can be used for the application performance diagnostics of your Mendix application.

3.1 Setting up New Relic (On-Premises Only)

The following steps are only relevant for on-premises deployments (skip to 2.2.1 Cloud Foundry if you are deploying your Mendix application to Cloud Foundry).

  1. Sign in to New Relic and create a new application:

    {{< figure src="/attachments/howto8/monitoring-troubleshooting/manage-app-performance/manage-app-performance-with-new-relic/19398929.png" class="no-border" >}}

  2. Select Java:

    {{< figure src="/attachments/howto8/monitoring-troubleshooting/manage-app-performance/manage-app-performance-with-new-relic/19398930.png" class="no-border" >}}

  3. Download the Java agent archive and save your license key:

    {{< figure src="/attachments/howto8/monitoring-troubleshooting/manage-app-performance/manage-app-performance-with-new-relic/19398932.png" class="no-border" >}}

  4. Add your license key to the newrelic.yml file from the downloaded archive as described here: https://docs.newrelic.com/docs/agents/java-agent/installation/java-agent-manual-installation#h2-download-files.

3.2 Setting Up Your Mendix Deployment

3.2.1 Cloud Foundry{#CloudFoundry}

Follow these buildpack instructions to set up New Relic for Cloud Foundry deployments: https://github.com/mendix/cf-mendix-buildpack#new-relic.

3.2.2 On Premise Linux and Windows Service Console

To the javaopts list in your m2ee.yaml file, add "-javaagent:javaagent.jar". For example:

 javaopts: [
   "-Dfile.encoding=UTF-8", "-Xmx512M", "-Xms512M",
   "-Djava.io.tmpdir=/srv/mendix/data/tmp",
   "-javaagent:/opt/newrelic/javaagent.jar"
 ]

3.2.3 Mendix Studio Pro (Development Mode Only)

  1. Open your Mendix application, and click Settings in the Project Explorer.

  2. Open a configuration:

    {{< figure src="/attachments/howto8/monitoring-troubleshooting/manage-app-performance/manage-app-performance-with-new-relic/19398903.png" class="no-border" >}}

  3. In the Extra JVM parameters field on the Server tab, add: -javaagent:<path-to-javaagent>javaagent.jar:

    {{< figure src="/attachments/howto8/monitoring-troubleshooting/manage-app-performance/manage-app-performance-with-new-relic/19398904.png" class="no-border" >}}

4 Transactions

After completing the steps described above, all the requests handled by your Mendix application should become visible together with various graphs and statistics:

{{< figure src="/attachments/howto8/monitoring-troubleshooting/manage-app-performance/manage-app-performance-with-new-relic/19398943.png" class="no-border" >}}

5 Databases

Your database calls and queries will now be visible on the database page: {{< figure src="/attachments/howto8/monitoring-troubleshooting/manage-app-performance/manage-app-performance-with-new-relic/19398944.png" class="no-border" >}}

6 Further Documentation

For more information on New Relic, see the New Relic documentation here: https://docs.newrelic.com/.

7 Read More