badera
badera

Reputation: 1545

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

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

Upvotes: 0

Views: 650

Answers (1)

user2879327
user2879327

Reputation:

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>

Upvotes: 1

Related Questions