OpenShift / wildfly-cartridge: How to add own -D arguments to JVM commandline which starts wildfly?

635 views Asked by At

We run our Java backend application on OpenShift in a scaled application with multiple gears. We use JGroups to create own communication channels.

Therefore, we need to add some extra parameters to the JVM commandline, which starts the wildfly: e.g. -Djgroups.bind_addr=$OPENSHIFT_WILDFLY_IP

How can we adjust that?
Best regards,
- badera

1

There are 1 answers

0
AudioBubble On BEST ANSWER

You can use the same process that is described here to set the JVM memory higher (https://developers.openshift.com/en/wildfly-jvm-memory.html).

rhc env-set JAVA_OPTS_EXT="-Xmx<memory>m" -a <appname>