asadmin> create-jvm-options -XX:+UseG1GC is invalid

216 views
Skip to first unread message

bernie1...@yahoo.com

unread,
May 29, 2019, 9:26:10 AM5/29/19
to Payara Forum
With payara server 5.192,

asadmin> create-jvm-options -XX:+UseG1GC
fails with
remote failure: JVM option +UseG1GC is invalid because it does not start with a '-'

This happens on RHEL 7.6 and OpenJDK 1.8.0_201 and on RHEL 6.10 with Oracle JDK 1.8.0_201.

How do I set the -XX:+UseG1GC JVM option?

Matt Gill

unread,
May 30, 2019, 5:18:02 AM5/30/19
to Payara Forum
A colon is a separator in this command, so it must be escaped. Try:

create-jvm-options "-XX\:+UseG1GC"

Hope this helps,

Matt

bernie1...@yahoo.com

unread,
May 30, 2019, 6:17:06 AM5/30/19
to Payara Forum
That worked.  I had tried with the quotes and with escaping the colon but not both together.  Thanks,

Bernie
Reply all
Reply to author
Forward
0 new messages