JVM monitoring

Updated at: 2024-09-03 00:15

The Java Virtual Machine (JVM) monitoring feature allows you to monitor key JVM metrics, including the metrics related to the 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.

Background information

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 heap memory

    • Amount of heap memory in the old generation in bytes

    • Amount of heap memory in the young generation (survivor space) in bytes

    • Amount of heap memory in the young generation (eden space) in bytes

  • Metaspace details

    Size of metaspace in bytes

  • Non-heap memory details

    • Maximum amount of non-heap memory in bytes

    • Amount of used non-heap memory in bytes

  • Direct buffer details

    • Total direct buffer in bytes

    • Used direct buffer in bytes

  • 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

Procedure

  1. Log on to the SAE console.

  2. In the left-side navigation pane, click Applications. In the top navigation bar, select a region. Then, click the name of an application.

  3. In the left-side navigation pane, choose Application Monitoring > Application Details. On the Application Details page, click the JVM monitoring tab to view the details of data collection.

Metric categories

On the JVM monitoring tab, you can view the time series curves for the instantaneous GC count, instantaneous GC time consumption, heap memory details, metadata details, non-heap memory details, direct buffer details, and JVM thread count.

  • You can click Instantaneous or Accumulated in the upper-right corner of the Instantaneous Count and Instantaneous Duration charts to switch between different curves. You can view the time series curves for the quantities of instantaneous GCs and accumulated GCs, and time consumed for instantaneous GCs and accumulated GCs.

  • You can click the name of a metric such as FullGC Count on a chart to show or hide the metric.

    Note

    Each chart must contain at least one visible metric. If only one metric is displayed in a chart, you cannot hide the metric.

  • Click the chart icon on each chart to view the statistics of the metric in a specific time period or compare the statistics of the metric in the same time period on different days.

  • You can click the View API icon in the upper-right corner of the Heap Memory Details / 1 Min, Metadata Details / 1 Min, Non-Heap Memory / 1 Min, Direct Buffer / 1 Min, and JVM Threads / 1 Min charts to view the detailed information about the APIs that are related to the metrics.

  • On this page (1, T)
  • Background information
  • Procedure
  • Metric categories
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare