[wildfly-dev] MORE_JAVA_OPTS in standalone.sh

Arun Gupta arun.gupta at gmail.com
Wed Mar 18 11:37:09 EDT 2015


Done: https://issues.jboss.org/browse/WFLY-4442

On Wed, Mar 18, 2015 at 5:47 AM, Jaikiran Pai <jai.forums2013 at gmail.com> wrote:
> Fair enough. I vaguely recollect that a feature like this, was something
> that was either added in JBoss AS 4.2.x days or was proposed at that time.
> Looking at the current 8.x scripts, this isn't available, so IMO filing an
> enhancement might be a good idea.
>
> -Jaikiran
>
> On Wednesday 18 March 2015 06:12 PM, Arun Gupta wrote:
>>
>> I'd like to not override the default JAVA_OPTS used by WildFly,
>> instead add my own value to it. I think that's where MORE_JAVA_OPTS or
>> EXTRA_JAVA_OPTS could be useful.
>>
>> Copy/pasting the existing JAVA_OPTS and including my own does not feel
>> right :)
>>
>> Arun
>>
>> On Tue, Mar 17, 2015 at 10:22 PM, Jaikiran Pai <jai.forums2013 at gmail.com>
>> wrote:
>>>
>>> Hi Arun,
>>>
>>> The WildFly startup scripts allow you to *override* the JAVA_OPTS by
>>> setting
>>> an environment variable of that same name. See the standalone.conf (for
>>> *nix
>>> OS) file for details. From what I see, there's no option to append to the
>>> default JAVA_OPTS, by setting an environment variable. This could be
>>> worked
>>> around (in a bit brittle manner) by setting the overriding environment
>>> variable value to contain the default JAVA_OPTS (copied over from
>>> standalone.conf) plus the other custom/specific ones that the caller
>>> wants
>>> to pass.
>>>
>>> -Jaikiran
>>>
>>> On Wednesday 18 March 2015 10:27 AM, Arun Gupta wrote:
>>>>
>>>> Can standalone.sh script be extended such that it takes an additional
>>>> environment variable that is then added to JAVA_OPTS during startup?
>>>>
>>>> This can be used for passing additional Java options from WildFly
>>>> Docker image. Cursory look at the script does not reveal anything like
>>>> that exist.
>>>>
>>>> Arun
>>>>
>>>>
>>
>>
>



-- 
http://blog.arungupta.me
http://twitter.com/arungupta


More information about the wildfly-dev mailing list