Number/size of G1 regions?

Tim King kingtim at gmail.com
Mon Jul 14 19:45:48 UTC 2014


Hello all!
I have a question about the number and size of heap regions we are seeing
on our JVMs.  We have a 24GB heap, and I am seeing that 24524 1MB regions
are being allocated.  We are running  JDK 1.7.0_51.

I read in this article
http://www.oracle.com/technetwork/articles/java/g1gc-1984535.html that "the
goal is to have no more than 2048 regions".

Based on the size of our heap, I am expecting larger region size with fewer
regions.  Is this something I should be worried about, or is it expected
and normal? What kind of impact will this have on the performance?

Thank you,
Cheers,
-Tim

Heap Configuration:
   MinHeapFreeRatio = 40
   MaxHeapFreeRatio = 70
   MaxHeapSize      = 25769803776 (24576.0MB)
   NewSize          = 1363144 (1.2999954223632812MB)
   MaxNewSize       = 17592186044415 MB
   OldSize          = 5452592 (5.1999969482421875MB)
   NewRatio         = 2
   SurvivorRatio    = 8
   PermSize         = 268435456 (256.0MB)
   MaxPermSize      = 536870912 (512.0MB)
   G1HeapRegionSize = 1048576 (1.0MB)

Heap Usage:
G1 Heap:
   regions  = 24524
   capacity = 25715277824 (24524.0MB)
   used     = 5114734088 (4877.7905349731445MB)
   free     = 20600543736 (19646.209465026855MB)
   19.889865172782354% used
....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20140714/69a6e08d/attachment.html>


More information about the hotspot-gc-use mailing list