The JVM Monitor allows you to monitor total memory usage, heap, non-heap, and pool memory usages, threads and classes of JVMs, to ensure the best performance.
You can monitor all of your Java applications in one web-console, set up warning and error thresholds for each parameter and get actionable alerts in case of problems.
Adding a JVM monitor
Before proceeding, please ensure that you have created the Linux server component and your Anturis private agent for Windows/Linux is running.
- On the Component page, click Add/Remove Monitors > Add Custom Monitor.
- Select the Local Resources monitors tab and Software sub tab view.
- Select JVM and click Next.
- Select the agents from the list.
- Set the Monitor Period and click Next.
- Set the JVM connection, enter the Port Number, and enter the URL under Host.
- Select Enable password authorization, if needed, otherwise use the instructions to configure monitoring without authorization. Enter user details under Password and Username.
- Click Query if you want to check the connection and look at the current JVM metrics.
- Select the expression which will be represented in the Monitor graph.
- Select metrics and enter for the Error level (Mb) to receive an error if your JVM usage exceeds this amount of usage and/or enter the threshold value under the Warning level.
- Enter a Monitor Name and set consecutive measurements.
- Click Next.
- On the Monitor test result step, click Next when the test is passed.
- Click Finish.
To enable monitoring without authorization, follow the instruction below.
Configure your Java service to start with the following VM parameters:
Note: You should use your port number instead of ‘SELECTED_PORT’ (see the example below).
java -Dcom.sun.management.jmxremote \
Customer support service by UserEcho