Java G1GC setting of Ignition 8.0.4 Nightly

Hi,

I saw in a below thread, it seems that the G1GC is manually configured for Ignition 7.7.2

I use Ignition 8.0.4 Nightly, the default setting of ignition.conf doesn’t contain G1GC setting as shown in below snapshot.
So shall we set it manually to enable the G1GC in version 8.0.4 Nightly?

Starting with 8.0.0, the gateway installation is bundled with Java 11, which uses G1GC by default - no additional parameter needed.

1 Like

Thanks for your info

We have installs that were upgraded from 7.9 to 8.0 to 8.1 and it shows that it is using ParNew, does the ignition.conf file changes still apply to get it to use G1GC?

What does your ignition.conf additional parameters section look like now?

G1 should not need to be explicitly enabled in the versions of Java we ship with 8.x.

See below:

Java Additional Parameters

wrapper.java.additional.1=-XX:+UseConcMarkSweepGC
#wrapper.java.additional.2=-XX:+CMSClassUnloadingEnabled
wrapper.java.additional.3=-Ddata.dir=data
wrapper.java.additional.4=-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false
#wrapper.java.additional.5=-Xdebug
#wrapper.java.additional.6=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
wrapper.java.additional.5=-Dedition=

Comment out everything except lines parameters 3 and 5 and restart the gateway.

You’re explicitly opting in to the ‘older’ GC. Remove or comment out this line.

I commented out wrapper.java.additional.1 and it is now using G1GC, is it a good idea to comment out wrapper.java.additional.4 as well?

4 is not necessary, it’s a leftover artifact from many many versions ago.

Ok, thanks for the help!