How to do force full garbage collection when heap usage goes beyond a certain threshold

mohd shaban mohdshaban000123 at gmail.com
Mon Feb 24 19:46:07 UTC 2020


Hi Pas ,

If we are not using "XX:InitiatingHeapOccupancyPercent" this JVM arguments
, then still default value of that parameter is 45% so when Heap usage
reaches to 45 it should trigger the GC but it is not triggering the GC. Or
do we need to set this parameter then it will work?.


And one more thing i want to understand , is it recommended to use
"UseStringDeduplication" jvm arguments. if yes then is there any
disadvantage if using this option?

Thanks,
Mohd Shaban

On Mon, Feb 24, 2020 at 2:38 PM Pas <pasthelod at gmail.com> wrote:

> Hello,
>
> Are you familiar with how Initiating Heap Occupancy Percent works in G1?
> Do you want something else?
>
>
>
> https://docs.oracle.com/javase/9/gctuning/garbage-first-garbage-collector.htm#JSGCT-GUID-572C9203-AB27-46F1-9D33-42BA4F3C6BF3
>
>
> https://docs.oracle.com/en/java/javase/13/gctuning/garbage-first-garbage-collector.html#GUID-AC383806-7FA7-4698-8B92-4FD092B9F368
>
>
>
> Pas
>
>
>
> On Mon, Feb 24, 2020, 08:45 mohd shaban <mohdshaban000123 at gmail.com>
> wrote:
>
>> Hi Team,
>>
>> Is there a way to force GC when heap usage goes beyond a certain
>> threshold?.
>> I am using G1GC Algorithm.
>>
>> Thanks,
>> Mohd Shaban
>> _______________________________________________
>> hotspot-gc-use mailing list
>> hotspot-gc-use at openjdk.java.net
>> https://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20200225/46709268/attachment.htm>


More information about the hotspot-gc-use mailing list