http://wavelet.asia/customer-portal/?p=7529 To fine tune JBoss Application Server, there are a few areas to be covered as below:
1. Redirecting root contextBy the default, the jboss root context allows any user to configure the JBoss Application Server through the JMX console. This is extremely undesirable and extremely dangerous.
First, create the redirector:
#vi ~/index.html
and paste the following inside.
Then,
# cd /jboss/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/index.html /jboss/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/index.html-original # cp ~/index.html /jboss/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/index.html
2. Java Virtual Machine Memory SizeTo increase the memory size for JBoss app server.... only 2 lines, take about 15 seconds. Modify the part highlighted in RED. [root@localhost bin]# vi /usr/java/jboss/bin/run.conf
3. Upgrade J2SDK
[root@localhost java]# wget http://server.wavelet.biz/downloads/j2sdk1.4.2_12.tar.gz drwxr-xr-x 2 root root 4096 May 2 2003 javacomm -rw-r--r-- 1 root root 247223889 Apr 26 05:06 java.tar.gz lrwxrwxrwx 1 root root 17 Mar 8 11:23 jboss -> ./jboss- 4.0.1RC2/ drwxrwxr-x 7 admin admin 4096 Jan 4 2005 jboss-4.0.1RC2 [root@localhost java]# rm j2sdk rm: remove symbolic link `j2sdk'? y [root@localhost java]# ln -s ./j2sdk1.4.2_12 j2sdk [root@localhost java]# ls -l total 333380 drwxr-xr-x 6 root root 4096 Jun 6 2003 j2re1.4.1_03 lrwxrwxrwx 1 root root 15 Apr 26 22:04 j2sdk -> ./j2sdk1.4.2_12 drwxr-xr-x 9 root vincent 4096 Apr 20 2003 j2sdk1.4.1_02 drwxrwxr-x 9 root root 4096 Aug 9 2006 j2sdk1.4.2_12 -rw-r--r-- 1 root root 93726720 Jan 21 12:08 j2sdk1.4.2_12.tar lrwxrwxrwx 1 root vincent 13 Mar 8 11:23 j2sdkee -> ./j2sdkee1.4/ drwxr-xr-x 18 root vincent 4096 Apr 20 2003 j2sdkee1.4 lrwxrwxrwx 1 root vincent 18 Mar 8 11:23 jakarta-ant -> ./jakarta-ant-1.5/ drwxr-xr-x 6 root vincent 4096 Apr 20 2003 jakarta-ant-1.5 drwxr-xr-x 2 root root 4096 May 2 2003 javacomm -rw-r--r-- 1 root root 247223889 Apr 26 05:06 java.tar.gz lrwxrwxrwx 1 root root 17 Mar 8 11:23 jboss -> ./jboss- 4.0.1RC2/ drwxrwxr-x 7 admin admin 4096 Jan 4 2005 jboss-4.0.1RC2 4. Modifying JBoss listening portBy default JBoss listens to port 8080, if you would like to change the port for some reasons (other applications are using port 8080 etc), you can change the following file:
/usr/java/jboss/server/default/deploy/jbossweb-tomcat50.sar/server.xml
Edit the following portion accordingly:
<Connector port="8080" address="${jboss.bind.address}" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"/>
|
MIGRATED-PAGES >