IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

CPU and memory live charts

Last modified: 11 February 2024

IntelliJ IDEA provides a way to monitor live performance statistics for a running process.

As opposed to viewing static figures, live data may help you to visualize resource consumption, identify resource-related bottlenecks, and understand how certain events affect the program performance.

For example, in the picture below, we can see how a memory leak looks like in the Heap Memory chart. Sometimes it is enough to figure out the cause, and when it is not enough, it can give a clue for the further investigation.

Memory leak on CPU and Memory Live Charts

The following metrics are available:

  • CPU – the CPU load for the given process. Each process has its own figure.

  • Heap memory – the current usage of heap memory and maximum heap size. The heap size increases when new objects of reference types are allocated, and decreases when they are garbage-collected. The maximum heap size is controlled by the -Xmx option.

  • Threads – the overall number of threads (yellow) and daemon threads (red). The number after the slash is the peak number of threads since the process has started.

  • Non-heap memory – this type of memory is used to store some JVM objects and structures that are needed for the JVM to work. The first value is the current memory value, and the second is the maximum value since the charts have started.