Skip to main content

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

    When measuring the CPU, memory, and disk usages, set whether or not to use the sigar libraries.

    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 is false.