JVM

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.
  1. On the Component page, click Add/Remove Monitors > Add Custom Monitor.
  2. Select the Local Resources monitors tab and Software sub tab view.
  3. Select JVM and click Next.
  4. Select the agents from the list.
  5. Set the Monitor Period and click Next.
  6. Set the JVM connection, enter the Port Number, and enter the URL under Host.
  7. Select Enable password authorization, if needed, otherwise use the instructions to configure monitoring without authorization. Enter user details under Password and Username.
  8. Click Query if you want to check the connection and look at the current JVM metrics.
  9. Select the expression which will be represented in the Monitor graph.
  10. 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.
  11. Enter a Monitor Name and set consecutive measurements.
  12. Click Next.
  13. On the Monitor test result step, click Next when the test is passed.
  14. Click Finish.

To enable monitoring without authorization, follow the instruction below.
Configure your Java service to start with the following VM parameters:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=SELECTED_PORT
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

Note: You should use your port number instead of ‘SELECTED_PORT’ (see the example below).

Example:

java -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9010 \
-Dcom.sun.management.jmxremote.local.only=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-jar tomcat.jar


Is this article helpful for you?