Hi, On Mon, 2018-05-14 at 15:29 -0600, Shawn Heisey wrote: > On 5/14/2018 1:45 PM, Thomas Schatzl wrote: > > I did not think this is actually documented - I had to look at > > the > > code :) > > > > There is a flag called AdaptiveSizePolicyGCTimeLimitThreshold > > (default: > > 5) which defines the amount of consecutive GCs that need to exceed > > these thresholds to result in an OOME. That counter is reset at the > > first GC not exceeding the thresholds. > > > > I hope this was what you were asking for. > > Yep, that's exactly what I was looking for. Expected a timeframe > (perhaps one or five minutes) rather than a collection count, but as > long as the check is well-written, I don't think that's a problem. I > have done very little diving into Java's source code, so I can't > comment about how good it is. >
if you want to see the gory details, look at AdaptiveSizePolicy::check_gc_overhead_limit() (line 471+) in http://hg. openjdk.java.net/jdk8u/jdk8u60/hotspot/file/37240c1019fd/src/share/vm/g c_implementation/shared/adaptiveSizePolicy.cpp Thanks, Thomas _______________________________________________ hotspot-gc-use mailing list hotspot-gc-use@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use