The documentation in this section describes a product that is in closed beta, so it is subject to change before the final release. For more information, see Beta Features.
This is the installation guide for Mansystems APM 2.
Note the following:
- Before using APM 2, create a database backup and have a backup deployment ready
- APM 1 and 2 can be installed side-by-side (to uninstall the APM 1 module, see Uninstall Steps
To install APM 2, follow these steps:
- Arrange a license for the app to use APM.
- In a browser, log in to the APM Manager at https://apmmanager100.mendixcloud.com using your Mendix account.
- Select your app in the dashboard.
- In the environments dashboard, select the New Environment tile. If you are a SCRUM Master of the Mendix app project, you can add test, acceptance, and production environments. If you are not, you can only add Mendix Studio Pro environments. For more detailed information, see the Environments overview documentation.
- Choose an environment name.
- Click Save and generate API key, then use this key as the value for the APMAgent.APMAPIKey constant in step 10.
- In Studio Pro with your app, import the Mendix Application Performance Monitor module from the Mendix App Store.
- Add the USE_ME/AfterStartup microflow to your app’s After startup microflow.
- Copy the widget from USE_ME/CopyPasteAPMBrowserWidget to the layout(s) of your app. Please note that it will only be loaded once, regardless of how many times the user opens a page containing the widget.
- Set the value of the USE_ME/APMAgent.APMAPIKey constant with the key you generated at step 6.
To upgrade an APM 2 agent follow these steps
- In Mendix Studio Pro with your app import to replace the Mendix Application Performance Monitor module from the Mendix App Store.
- Remove the old APM 2 agent jar from your userlib folder
- Before testing in Mendix Studio Pro, use the Clean deployment directory option.
Please read the following steps and apply if needed.
- In Cloud v3, allow the request handler
- The agent initiates all communication to the APM 2 manager in HTTPS over port 80. So for some on premise installation a firewall might need to be opened.