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 collections (GCs), and JVM threads. This topic describes the JVM monitoring feature and shows you how to view the JVM metrics.

Feature description

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

  • Instantaneous and accumulated GC details
    • Number of full heap GCs (Full GCs)
    • Number of GCs in the young generation
    • Time consumed for Full GCs
    • Time consumed for GCs in the young generation
  • Heap memory details
    • Total usage of the heap memory
    • Bytes of the heap memory in the old generation
    • Bytes of the heap memory in the young generation (survivor space)
    • Bytes of the heap memory in the young generation (eden space)
  • Non-heap memory details
    • Submitted bytes of the non-heap memory
    • Initial bytes of the non-heap memory
    • Maximum bytes of the non-heap memory
  • Metaspace details

    Bytes of metaspace

  • Direct buffer details
    • Total bytes of the direct buffer
    • Used bytes of the direct buffer
  • JVM thread details
    • 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 the timed waiting state
    • Number of waiting threads

Go to the feature page

  1. Log on to the EDAS console.
  2. Go to the Application Overview page by using one of the following methods:
    • 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 microservice namespace. On the Container Service Kubernetes Clusters or Serverless Kubernetes Clusters page, click a cluster ID. In the Applications section of the Cluster Details page, click the name of the application that you want to manage.
    • 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 microservice namespace. Select Container Service or Serverless Kubernetes Cluster from the Cluster Type drop-down list and click the name of the application that you want to manage.
  3. In the left-side navigation pane of the application details page, choose Monitor > Instance Details.
  4. In the left-side pane of the Instance Details page, select the instance that you want to view and click the JVM monitoring tab on the right side of the page.

View JVM 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 view the time series curves of the instantaneous or accumulated statistics on GCs.
  • In the Instantaneous Duration / 1 Min section, click Instantaneous or Accumulated in the upper-right corner. You can view the time series curves of the instantaneous or accumulated time consumption for GCs.
  • In each section, you can click the name of a metric to show or hide this metric.
    Note Each chart must contain at least one visible metric. Therefore, if only one metric is displayed in a chart, you cannot hide this metric.