Safe, High performance, reuseable

Thursday, June 10, 2010

Configure JBoss AS 5

1. Download jboss native windows service
http://labs.jboss.com/jbossweb/downloads/jboss-native-2-0-9.html
unzip the package to jboss/bin folder


2.Create the following system variables

Variable Name: JAVA_HOME

Variable value: C:\Program Files\Java\jdk1.6.0_12

Variable Name: JBOSS_BIN

Variable value: C:\jboss-5.1.0.GA-JDK6\bin

Variable Name: JBOSS_HOME

Variable Value: C:\jboss-5.1.0.GA-JDK6

3.Setup jboss binding address

Open {JBoss}\bin\service.bat

change the ipaddress in line

"call run.bat -c default -b xx.xx.xx.xx"

4. To avoid "java.lang.OutOfMemoryError: PermGen space" error

Open file jboss/bin/run.conf.bat

replace set "JAVA_OPTS=.............' with the following settings:


set "JAVA_OPTS=-Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled"


5. Open a command line window.

Direct to Jboss

Run: service.bat install

6. Change listening port

{JBoss}\server\default\deploy\jbossweb.sar\service.xml

{JBoss}\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml


No comments: