Agent Resource 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
falseFor 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 laterDefault
falseWhen measuring the CPU, memory, and disk usages, set whether or not to use the OSHI libraries.
NoteIt is recommended to use it in the environment with Java 8 or later.
-
oshi_netstat_enabled Boolean
Java Agent v2.2.31 or laterDefault
falseSet whether or not to collect netstat metrics. The Maximum Transmission Unit (MTU) metric is added.
-
sigar_enabled Boolean
Default
falseThe 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
enabledoption 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 8 or earlier or Java 1.6 or earlier, you can enable the sigar library and collect performance metrics by adding the
sigar_enabled=trueoption. -
Depending on the application environment, you may see CPU metrics displayed as -1. You can check the recommendations provided by WhaTap and then resolve the issues. See the following.
-