> It seems that calculation of 
> MemoryMXBean.getNonHeapMemoryUsage(jmm_GetMemoryUsage) is wrong.
> 
> Currently, 
> `NonHeapUsage=CodeCache+Metaspace(ClassTypeSpace+NonClassTypeSpace)+CompressedClassSpace(ClassTypeSpace)`
> 
> ==> CodeHeap 'non-nmethods' 1532544 (Used)
> ==> CodeHeap 'profiled nmethods' 0
> ==> CodeHeap 'non-profiled nmethods' 13952
> ==> Metaspace 506696
> ==> Compressed Class Space 43312
> init = 7667712(7488K) used = 2096504(2047K) committed = 8454144(8256K) max = 
> -1(-1K)
> 
> In this way, getNonHeapMemoryUsage is larger than it ought to be, it should 
> be `NonHeapUsage = CodeCache + Metaspace`.

Yi Yang has updated the pull request incrementally with one additional commit 
since the last revision:

  update

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8831/files
  - new: https://git.openjdk.java.net/jdk/pull/8831/files/6b2f1be7..54318474

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8831&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8831&range=01-02

  Stats: 7 lines in 2 files changed: 0 ins; 6 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8831.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8831/head:pull/8831

PR: https://git.openjdk.java.net/jdk/pull/8831

Reply via email to