The Java Virtual Machine (JVM) monitoring feature is used to monitor important JVM metrics, such as heap memory, non-heap memory, direct buffer, memory-mapped buffer, garbage collection (GC) details, and the number of JVM threads. This topic describes the JVM monitoring feature and shows you how to view the JVM monitoring metrics.

Features

The JVM monitoring feature can be used to monitor the following metrics:

  • Instantaneous and accumulated GC details
    • Full GC count
    • Young GC count
    • Time consumption of full GC
    • Time consumption of young GC
  • Heap memory details
    • Total usage of heap memory
    • Bytes of old heap memory
    • Bytes of young heap memory (Survivor)
    • Bytes of young heap memory (Eden)
  • Non-heap memory
    • Submitted bytes of the non-heap memory
    • Initial bytes of the non-heap memory
    • Maximum bytes of the non-heap memory
  • Metaspace

    Bytes of metaspace

  • Direct buffer
    • Total bytes of direct buffer
    • Used bytes of direct buffer
  • Number of JVM threads
    • Total number of threads
    • Number of deadlocked threads
    • Number of new threads
    • Number of blocked threads
    • Number of runnable threads
    • Number of terminated threads
    • Number of threads in timed waiting
    • Number of waiting threads

Procedure

  1. Log on to the EDAS console.
  2. Perform one of the following operations as needed to go to the application details page:
    • In the left-side navigation pane, choose Resource Management > Container Service Kubernetes Clusters or Resource Management > Serverless Kubernetes Clusters. In the top navigation bar, select a region. In the upper part of the page, select a namespace. On the Container Service Kubernetes Cluster or Serverless Kubernetes Clusters page, click a cluster ID. In the Applications section of the Cluster Details page, click the name of the application for which you want to view the details.
    • In the left-side navigation pane, click Applications. In the top navigation bar, select a region. In the upper part of the page, select a namespace. Select Container Service or Serverless Kubernetes Cluster from the Cluster Type drop-down list and click the application name.
  3. In the left-side navigation pane of the application details page, choose Monitor > Instance Details.
  4. On the Instance Details page, select the node that you want to view, and click the JVM monitoring tab on the right side.

View JVM monitoring metrics

On the JVM monitoring tab, view the time series curves in the Instantaneous Count, Instantaneous Duration, Heap Memory Details, Non-Heap Memory, Metaspace Details, Direct Buffer, and JVM Threads sections.

  • In the Instantaneous Count / 1 Min section, click Instantaneous or Accumulated in the upper-right corner. You can switch to view the time series curves of the instantaneous or accumulated GC count.
  • In the Instantaneous Duration / 1 Min section, click Instantaneous or Accumulated in the upper-right corner. You can switch to view the time series curves of the instantaneous or accumulated GC duration.
  • In each section, you can click the name of a metric to toggle the visibility of this metric.
    Note Each chart must contain at least one visible metric. Therefore, if only one metric is displayed in a chart, you cannot disable the visibility of this metric.