Search code examples
jboss

How do I add G1GC parameter in JBOSS EAP 7.1.0?


We are using JBOSS EAP7.1.0 module and have written puppet module for the same . We have separated the hiera and code .The max and min heap size is added as below :

wildfly::java_xmx:        '2048m'
wildfly::java_xms:        '2048m'

Can anyone tell me how can I add -XX:+UseG1GC, [Garbage Collector --> G1] and -XX:+HeapDumpOnOutOfMemoryError ?


Solution

  • wildfy::java_opts: '-XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError'