Collection of CPU/memory/disk usage
The following explains how the Java agent collects CPU, memory, and disk usage. Java's JMX library is basically used. If necessary, you can see how to collect performance metrics through Linux's proc directory or oshi and sigar libraries.
-
linux_proc_stat_enabled Boolean
Default
false
For CPU, memory, and disk usages, set whether or not to collect from the Linux's proc directory.
-
oshi_enabled Boolean
Java Agent v2.1.0 or later
Default
false
When measuring the CPU, memory, and disk usages, set whether or not to use the OSHI libraries.
-
oshi_netstat_enabled Boolean
Java Agent v2.2.31 or later
Default
false
Set whether or not to collect netstat metrics. The Maximum Transmission Unit (MTU) metric is added.
-
sigar_enabled Boolean
Default
false
The OS data collection through the sigar library is enabled. The OS resource data includes CPU, memory, and disk that are collected every 5 minutes through the sigar library. If the
enabled
option isfalse
, this is disabled.Note-
In earlier than whatap.agent.2.1.0, the default value is
true
. In whatap.agent.2.1.0 or later, the default value isfalse
. -
In Java 1.6 or earlier, you can enable the sigar library and collect performance metrics by adding the
sigar_enabled=true
option.
-