How to pass the startup options in JBoss EAP 6 linux service?
Issue
- Using
jboss-as-standalone.shit is possible to change the standalone directory location? - Is there a way to change the standalone directory location other than
standalone.conffile? - I tried with
jboss-as-standalone.shamending it as below, Could you tell us the correct way to change injboss-as-standalone.sh?
JBOSS_SCRIPT="$JBOSS_HOME/bin/standalone.sh -Djboss.server.base.dir=/jboss/sample/eap/sample_standalone
--host-config=/jboss/sample/eap/sample_standalone/configuration/standalone-full.xml
- Start the JBOSS EAP 6.4 service with standalone-full-ha.xml configuration file. Could you please help me to start the
JBOSS EAP 6.4service with standalone-full-ha.xml configuration file. I tired with the below setting but that didn't works for me. Under the file/home/test/server/bin/standalone.conf, I update the configuration file setting as below :
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true -c standalone-full-ha.xml "
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.policy-permissions=true"
- What is the preferred location to set
JAVA_HOMEforjbossasservice of EAP 6 , where EAP 6 service is installed by default on Linux based O.S. asRPMmethod of installation? If theJAVA_HOMEis set inside/etc/init.d/jbossasservice script to a Java version installed on the system (which is installed as anRPMmethod as well) what could be the challenges involved in such approach?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
