WildFly OS-Level Monitoring: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 25: Line 25:
* [[Vmstat#id|Idle Time Percentage]]
* [[Vmstat#id|Idle Time Percentage]]
* [[Vmstat#st|Steal Time Percentage]]
* [[Vmstat#st|Steal Time Percentage]]
==Java Process CPU Statistics==


==Process Count Statistics==
==Process Count Statistics==
Line 34: Line 36:
==Open File Descriptor Statistics==
==Open File Descriptor Statistics==


Number of open file descriptors per system. It can be obtained from [[Linux_File_Descriptor_Information#Used_File_Descriptors_per_System|/proc/sys/fs/file-nr]].
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 obtained from [[Linux_File_Descriptor_Information#Used_File_Descriptors_per_Process|a]].
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.