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. Thanks, Shawn _______________________________________________ hotspot-gc-use mailing list hotspot-gc-use@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use