If you notice the standalone.sh then you will find that it uses "RUN_CONF" variable to determine which standalone.conf file it need to be used.
--- snippet from standalone.sh ---
# Read an optional running configuration file if [ "x$RUN_CONF" = "x" ]; then RUN_CONF="$DIRNAME/standalone.conf" fi if [ -r "$RUN_CONF" ]; then . "$RUN_CONF" fi
So if you want to use some other file instead like "my_standalone.conf" then set the "RUN_CONF" variable to point to that file.
$ export RUN_CONF=/NotBackedUp/my_standalone.conf $ cd /PATH/TO/wildfly-8.2.1.Final/bin $ ./standalone.sh
You will find that the memory arguments or other parameters defined in the file "/NotBackedUp/my_standalone.conf " are taking effect.
Ahh. Thanks Jay. I will try and let you know how it goes.
It is working. Thanks.