Java Linux Memory: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 13: Line 13:
</pre>
</pre>


Per the documentation:
For a description of the fields, see: {{Internal|Linux_Process_Information#.2Fproc.2F.3CPID.3E.2Fstatus|/proc/<PID>/status}}.
 
* VmPeak: Peak virtual memory size.
 
* VmSize: Virtual memory size.
 
* VmLck: Locked memory size.
 
* VmHWM: Peak resident set size ("high water mark").
 
* <span id='VmRSS'></span>VmRSS: [[Linux_Memory_Management#Resident_Size_of_a_Process|Resident set]] size.
 
* VmData, VmStk, VmExe: Size of data, stack, and text segments.
 
* VmLib: Shared library code size.
 
* VmPTE: Page table entries size (since Linux 2.6.10).
 
* Threads: Number of threads in process containing this thread.


=More Info=
=More Info=

Revision as of 04:00, 29 December 2020

Internal

Information on how Much Physical Memory a JVM Uses

Once you have the PID, you can look in:

/proc/<PID>/status

For a description of the fields, see:

/proc/<PID>/status

.

More Info

"man proc" has a ton of information we can pull.

Script

https://github.com/NovaOrdis/shell-tools/blob/master/jboss-os-memory-stats.sh