WildFly OS-Level Monitoring: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 5: Line 5:
=Metrics=
=Metrics=


* Number of open file descriptors [[Linux_File_Descriptor_Information#File_Descriptors_Being_Used_at_System_Level|per system]] and per JBoss process(es).
==O/S Level System-Wide Memory Statistics==
 
Memory statistics as reported by [[Proc-meminfo|/proc/meminfo]]. Most important:
 
* [[Proc-meminfo#MemTotal|MemTotal]]
* [[Proc-meminfo#MemFree|MemFree]]
* [[Proc-meminfo#Buffers|Buffers]]
* [[Proc-meminfo#Cached|Cached]]
* [[Proc-meminfo#SwapTotal|SwapTotal]]
* [[Proc-meminfo#SwapFree|SwapFree]]
 
==O/S Level System-Wide CPU Statistics==
 
CPU statistics as reported by [[Vmstat#CPU|vmstat]] (user time, kernel time, idle time, time waiting for I/O, steal time, etc.) or other utilities, and computed based on [[/proc/stat]] values.
 
* [[Vmstat#us|User Time Percentage]]
* [[Vmstat#sy|Kernel Time Percentage]]
* [[Vmstat#wa|Time Waiting for I/O Percentage]]
* [[Vmstat#id|Idle Time Percentage]]
* [[Vmstat#st|Steal Time Percentage]]
 
==Java Process CPU Statistics==
 
==Process Count Statistics==
 
* Total number of processes in the system. Can be obtained from [[ps|ps -e]].
* Total number of threads in the system. Can be obtained from [[ps|ps -eL]].
* Number of native threads used by the Java process, as reflected at OS level. The number of threads (processes) can be determined [[Linux_Process_Information#Threads|as described here]], and it should match the number of threads reported internally by the JVM via the [[ThreadMXBean_Platform_MBean#ThreadCount|ThreadMXBean Platform MBean]].
 
==Open File Descriptor Statistics==
 
Number of open file descriptors per system. It can be obtained from [[Linux_File_and_File_Descriptor_Information#Used_File_Descriptors_per_System|/proc/sys/fs/file-nr]].
 
Number of open file descriptors for the JBoss JVM instance(s). It can be inferred [[Linux_File_and_File_Descriptor_Information#Used_File_Descriptors_per_Process|by listing the content of /proc/<pid>/fd directory]] or from the [[OperatingSystemMXBean_Platform_MBean#OpenFileDescriptorCount|OperatingSystem platform MBean]].

Latest revision as of 02:54, 25 December 2020

Internal

Metrics

O/S Level System-Wide Memory Statistics

Memory statistics as reported by /proc/meminfo. Most important:

O/S Level System-Wide CPU Statistics

CPU statistics as reported by vmstat (user time, kernel time, idle time, time waiting for I/O, steal time, etc.) or other utilities, and computed based on /proc/stat values.

Java Process CPU Statistics

Process Count Statistics

  • Total number of processes in the system. Can be obtained from ps -e.
  • Total number of threads in the system. Can be obtained from ps -eL.
  • Number of native threads used by the Java process, as reflected at OS level. The number of threads (processes) can be determined as described here, and it should match the number of threads reported internally by the JVM via the ThreadMXBean Platform MBean.

Open File Descriptor Statistics

Number of open file descriptors per system. It can be obtained from /proc/sys/fs/file-nr.

Number of open file descriptors for the JBoss JVM instance(s). It can be inferred by listing the content of /proc/<pid>/fd directory or from the OperatingSystem platform MBean.