cremersstijn
cremersstijn

Reputation: 2395

How to add java_opt to wildfly in openshift?

I want to add JAVA_OPTS setting to the standalone configuration for wildfly in openshift. What is the best way to do this?

Do i need to do this by an action hook? Is this action hook also invoked when the server is restarted using "ctl_app restart"?

Or is there another way the add JAVA_OPT settings?

Upvotes: 0

Views: 655

Answers (2)

tomjenkinson
tomjenkinson

Reputation: 23

The file to add them to is: .openshift/action_hooks/pre_start_wildfly export JAVA_OPTS_EXT=VALUE

Upvotes: 0

user2879327
user2879327

Reputation:

You should be using the JAVA_OPTS_EXT environment variable to set any extra JAVA_OPTS that you would like your application to use.

Try using this command to set it:

rhc env-set JAVA_OPTS_EXT=VALUE

Upvotes: 1

Related Questions