Java Linux Memory

From NovaOrdis Knowledge Base
Revision as of 00:41, 11 June 2016 by Ovidiu (talk | contribs) (Created page with "=Internal= * Linux Memory Management * Linux Process Information =Information on how Much Physical Memory a JVM Uses= Once you have the PID, you can look in: <pre>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Information on how Much Physical Memory a JVM Uses

Once you have the PID, you can look in:

/proc/<PID>/status

Per the documentation:

  • VmPeak: Peak virtual memory size.
  • VmSize: Virtual memory size.
  • VmLck: Locked memory size.
  • VmHWM: Peak resident set size ("high water mark").
  • VmRSS: 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

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

Script

{{{ C:\c054-CGI\ec\src\ec-scripts-trunk\misc\jboss-os-memory-stats.sh }}}