NIFI-6132: This closes #3776. Do not default ot G1GC because it has known issues with Java 8 and earlier versions

Signed-off-by: Joe Witt <joewitt@apache.org>
This commit is contained in:
Mark Payne 2019-09-30 10:53:25 -04:00 committed by Joe Witt
parent 48759be974
commit 5562c587fe
No known key found for this signature in database
GPG Key ID: 9093BF854F811A1A

View File

@ -44,9 +44,10 @@ java.arg.4=-Djava.net.preferIPv4Stack=true
java.arg.5=-Dsun.net.http.allowRestrictedHeaders=true
java.arg.6=-Djava.protocol.handler.pkgs=sun.net.www.protocol
# The G1GC is still considered experimental but has proven to be very advantageous in providing great
# performance without significant "stop-the-world" delays.
java.arg.13=-XX:+UseG1GC
# The G1GC is known to cause some problems in Java 8 and earlier, but the issues were addressed in Java 9. If using Java 8 or earlier,
# it is recommended that G1GC not be used, especially in conjunction with the Write Ahead Provenance Repository. However, if using a newer
# version of Java, it can result in better performance without significant "stop-the-world" delays.
#java.arg.13=-XX:+UseG1GC
#Set headless mode by default
java.arg.14=-Djava.awt.headless=true