Skip to content

Instantly share code, notes, and snippets.

@szegedi
Created December 13, 2011 23:03
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szegedi/1474365 to your computer and use it in GitHub Desktop.
Save szegedi/1474365 to your computer and use it in GitHub Desktop.
names of MemoryManagerMXBean and MemoryPoolMXBean instances in HotSpot JVM
Table of names of MemoryManagerMXBean and MemoryPoolMXBean instances under
different GC algorithms in Oracle HotSpot VM. Memory managers list the pools
they manage in square brackets; memory pools show their maximum sizes for -Xmx200M setting.
$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
SerialGC:
---------
Memory managers:
CodeCacheManager [Code Cache]
Copy [Eden Space, Survivor Space]
MarkSweepCompact [Eden Space, Survivor Space, Tenured Gen, Perm Gen]
Memory Pools:
Code Cache 48
Eden Space 53
Survivor Space 6
Tenured Gen 133
Perm Gen 82
ParallelGC:
-----------
Memory managers:
CodeCacheManager [Code Cache]
PS Scavenge [PS Eden Space, PS Survivor Space]
PS MarkSweep [PS Eden Space, PS Survivor Space, PS Old Gen, PS Perm Gen]
Memory Pools:
Code Cache 48
PS Eden Space 56
PS Survivor Space 5
PS Old Gen 133
PS Perm Gen 82
ParallelOldGC:
---------------
Memory managers:
CodeCacheManager [Code Cache]
PS Scavenge [PS Eden Space, PS Survivor Space]
PS MarkSweep [PS Eden Space, PS Survivor Space, PS Old Gen, PS Perm Gen]
Memory Pools:
Code Cache 48
PS Eden Space 56
PS Survivor Space 5
PS Old Gen 133
PS Perm Gen 82
ConcMarkSweepGC:
----------------
Memory managers:
CodeCacheManager [Code Cache]
ParNew [Par Eden Space, Par Survivor Space]
ConcurrentMarkSweep [Par Eden Space, Par Survivor Space, CMS Old Gen, CMS Perm Gen]
Memory Pools:
Code Cache 48
Par Eden Space 20
Par Survivor Space 2
CMS Old Gen 175
CMS Perm Gen 82
G1GC:
-----
Memory managers:
CodeCacheManager [Code Cache]
G1 Young Generation [G1 Eden, G1 Survivor]
G1 Old Generation [G1 Eden, G1 Survivor, G1 Old Gen, G1 Perm Gen]
Memory Pools:
Code Cache 48
G1 Eden 0
G1 Survivor 0
G1 Old Gen 0
G1 Perm Gen 82
@szegedi
Copy link
Author

szegedi commented Dec 13, 2011

An interesting observation is that with G1GC, all heap pools report max size of 0…

@ijuma
Copy link

ijuma commented Dec 13, 2011

What JVM version did you test for G1GC pools? I've seen some fixes around this area fairly recently.

@szegedi
Copy link
Author

szegedi commented Dec 13, 2011

1.6.0_24; I added the output from java -version to the gist now.

@ijuma
Copy link

ijuma commented Dec 13, 2011

Great, thanks. I think this may be fixed in Java 7 update 2 (released today), but not sure.

@smillies
Copy link

Very useful, thanks! How is this with Java 8? Could you possibly share the code that generates this overview?

@nsoft
Copy link

nsoft commented Aug 29, 2019

Code for generating this or an update would be nice. As it is this is pretty useful, tx for posting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment