openshift-s2i / s2i-wildfly

Source-to-Image template for WildFly applications
http://wildfly.org/
Other
73 stars 145 forks source link

Pass JVM parameters to wildfly #139

Closed adrianbader closed 7 years ago

adrianbader commented 7 years ago

I should be able to pass arguments (e.g. -javaagent) to the JVM started for wildfly. Am I right that there is currently no way to do so? Or can we do that by setting env. var JAVA_OPTS? I am not very familiar with all these yet... Thanks for a tip :)

bparees commented 7 years ago

you can set JAVA_OPTS, but note that if you set JAVA_OPTS, whatever you set will completely replace the default settings as seen here: https://github.com/openshift-s2i/s2i-wildfly/blob/master/10.1/contrib/wfbin/standalone.conf#L169-L174

so when you set it, you will need to set any of those existing values that still make sense for you.

alternatively you can set JAVA_OPTS_EXT which just appends to the existing options: https://github.com/openshift-s2i/s2i-wildfly/blob/master/10.1/contrib/wfbin/standalone.conf#L176-L178

adrianbader commented 7 years ago

Thank you very much for your quick and perfect answers!

bparees commented 7 years ago

yw