Deciding between 2MB or 32MB region size in G1

Amit Balode amit.balode at gmail.com
Wed Feb 1 13:54:50 UTC 2017


Hello, We have multiple applications running in production where predicting
size of the runtime object is kinda tough and random. It could vary from
1KB to 25MB for different applications. To not have too many lingering
configs for different applications, I am trying to come up with standard
set of configs which could be applicable to all applications. Some
applications do not exceed 10KB object size, so I could definitely keep 2MB
as region size for them. But I am wondering what would be disadvantage of
setting all applications to 32MB region size regardless of how small the
object is?

Is it that fragmentation issues will happen more if you have less regions?
If so, will the fragmentation issue happen only during humongous
allocations?
In term of performance, will selection of size change anything?

-- 
Thanks & Regards,
Amit.Balode
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20170201/6820d84b/attachment.html>


More information about the hotspot-gc-use mailing list