No Full GC on JDK 17
Sushant Kaushik
sushant.iitbhu at gmail.com
Wed Jun 28 06:08:56 UTC 2023
Hi All,
I'm facing a peculiar issue where i do see a full GC intermittently but
i've not been able to figure out a deterministic way to trigger a full GC.
I need full GC so that memory is allocated back to OS, this is for k8s HPA
scale down to work.
Here is the JVM config that i'm using:
> -Xmx9830M
>
> -Xms3200M
> -Xlog:gc*:file=/tmp/gc.log:time,uptime
> -server
> -XX:MetaspaceSize=96m
> -XX:+UseG1GC
> -XX:MaxGCPauseMillis=200
> -XX:+PrintFlagsFinal
> -XX:InitiatingHeapOccupancyPercent=100
> -XX:+ExplicitGCInvokesConcurrent
> -XX:G1HeapRegionSize=16
> -XX:MinMetaspaceFreeRatio=50
> -XX:MaxMetaspaceFreeRatio=80
> -XX:G1PeriodicGCInterval=5000
> -XX:G1PeriodicGCSystemLoadThreshold=10.0
> -XX:-G1PeriodicGCInvokesConcurrent
> -XX:+UnlockDiagnosticVMOptions
> -XX:-G1UsePreventiveGC
>
> I've set InitiatingHeapOccupancyPercent to 100, because i don't want any
concurrent GC( i read because of concurrent GC, full GC won't be triggered).
Please help me out. TIA.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-use/attachments/20230628/4f782a82/attachment.htm>
More information about the hotspot-gc-use
mailing list