> 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: address @tstuefe's comments; remove unnecessary declaration ------------- Changes: - all: https://git.openjdk.org/jdk/pull/8831/files - new: https://git.openjdk.org/jdk/pull/8831/files/c3f02b8f..7a7626a7 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=8831&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=8831&range=03-04 Stats: 18 lines in 3 files changed: 0 ins; 18 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/8831.diff Fetch: git fetch https://git.openjdk.org/jdk pull/8831/head:pull/8831 PR: https://git.openjdk.org/jdk/pull/8831