Issue No: 1
Date: 04-Oct-2011
JBOSS Application Server
Sometimes the JBOSS server will take more time for the startup. It is because of many configuration files will get deployed at that time of startup, in these files few are not really required for our application. Here I am listing out few unwanted deployment configurations at the startup time. In the below list few files may require for your application so please have a look at your application dependency configuration and then remove the configuration/files which are not really required for your application.
NOTE: Please take a backup of your server directory before going for this change.
Web Deployer:
• For Disabling Development mode in JBoss:
• Edit $JBOSS_HOME/server/all/deploy/ jboss-web.deployer /conf/web.xml and look for the jsp servlet
jsp
org.apache.jasper.servlet.JspServlet
...
Add
development false
checkInterval 300
RMI for Remote Invocations
By default, JBoss creates a new thread for every RMI request that comes in. This is not generally efficient on a large system. Secondly, it can be dangerous to allow unrestrained connections in the case of performance or traffic spikes or run-away connection creating clients. To remedy this you should consider switching to the pooled invoker.
• Edit server/all/conf/standardjboss.xml
• Change all of the proxy bindings to the pooled invoker by changing every XML fragment reading:
jboss:service=invoker,type=jrmp
To
jboss:service=invoker,type=pooled
Mail-service (J2EE standard JavaMail client)
• remove server/all/deploy/mail-service.xml
• remove server/all/lib/mail (mail-plugin.jar, mail.jar - JavaMail stuff)
• remove server/all/lib/activation.jar (Java Activation Framework is used by JavaMail)
J2EE client deployer service
• remove server/all/deploy/client-deployer-service.xml
Integrated HAR deployer and Hibernate session management services
• remove server/all/lib/jboss-hibernate.jar
• remove server/all/lib/hibernate3.jar
• remove server/all/lib/cglib.jar
JbossMQ
• remove the entire server/all/deploy/jms directory
• remove server/all/lib/jbossmq.jar
XA datasources
• remove server/all/deploy/jboss-xa-jdbc.rar
JBoss Scheduler Manager
• remove server/all/deploy/scheduler-service.xml
• remove server/all/deploy/schedule-manager-service.xml
• remove server/all/lib/scheduler-plugin (scheduler-plugin.jar, scheduler-plugin-example.jar)
EARDeployer
• open server/all/conf/jboss-service.xml in the editor
• remove/comment the following XML fragments
from under the
jboss.j2ee:service=EARDeployer
RMI Classloading
• open server/all/conf/jboss-service.xml in the editor
• remove/comment this XML fragment
java.rmi.server.RMIClassLoaderSpi
org.jboss.system.JBossRMIClassLoader
And
8083
true
${jboss.bind.address}
${jboss.bind.address}
• and change this XML fragment (NOTE: In JBoss 4.0, this is located in the file server/all/deploy/ejb-deployer.xml):
true
...
jboss:service=WebService
to read like this:
true
...
BeanShelldeployer
• remove server/all/deploy/bsh-deployer.xml
• remove server/all/lib/bsh-deployer.jar
• remove server/all/lib/bsh.jar
Auto Deploy
• open server/all/conf/jboss-service.xml in the editor
• change this XML frament:
...
5000
...
to read (by adding):
...
5000
False
...
JBoss UUID key generation
• remove server/all/deploy/uuid-key-generator.sar
• remove server/all/lib/autonumber-plugin.jar
Connection Close Checking
• In production you don't need this check (assuming all connection leaks were found during development).
• In deploy/jbossjca-service.xml, change the Debug entry to false in the CachedConnectionManager service
Date: 04-Oct-2011
JBOSS Application Server
Sometimes the JBOSS server will take more time for the startup. It is because of many configuration files will get deployed at that time of startup, in these files few are not really required for our application. Here I am listing out few unwanted deployment configurations at the startup time. In the below list few files may require for your application so please have a look at your application dependency configuration and then remove the configuration/files which are not really required for your application.
NOTE: Please take a backup of your server directory before going for this change.
Web Deployer:
• For Disabling Development mode in JBoss:
• Edit $JBOSS_HOME/server/all/deploy/ jboss-web.deployer /conf/web.xml and look for the jsp servlet
...
Add
RMI for Remote Invocations
By default, JBoss creates a new thread for every RMI request that comes in. This is not generally efficient on a large system. Secondly, it can be dangerous to allow unrestrained connections in the case of performance or traffic spikes or run-away connection creating clients. To remedy this you should consider switching to the pooled invoker.
• Edit server/all/conf/standardjboss.xml
• Change all of the proxy bindings to the pooled invoker by changing every XML fragment reading:
To
Mail-service (J2EE standard JavaMail client)
• remove server/all/deploy/mail-service.xml
• remove server/all/lib/mail (mail-plugin.jar, mail.jar - JavaMail stuff)
• remove server/all/lib/activation.jar (Java Activation Framework is used by JavaMail)
J2EE client deployer service
• remove server/all/deploy/client-deployer-service.xml
Integrated HAR deployer and Hibernate session management services
• remove server/all/lib/jboss-hibernate.jar
• remove server/all/lib/hibernate3.jar
• remove server/all/lib/cglib.jar
JbossMQ
• remove the entire server/all/deploy/jms directory
• remove server/all/lib/jbossmq.jar
XA datasources
• remove server/all/deploy/jboss-xa-jdbc.rar
JBoss Scheduler Manager
• remove server/all/deploy/scheduler-service.xml
• remove server/all/deploy/schedule-manager-service.xml
• remove server/all/lib/scheduler-plugin (scheduler-plugin.jar, scheduler-plugin-example.jar)
EARDeployer
• open server/all/conf/jboss-service.xml in the editor
• remove/comment the following XML fragments
from under the
RMI Classloading
• open server/all/conf/jboss-service.xml in the editor
• remove/comment this XML fragment
And
• and change this XML fragment (NOTE: In JBoss 4.0, this is located in the file server/all/deploy/ejb-deployer.xml):
...
to read like this:
...
BeanShelldeployer
• remove server/all/deploy/bsh-deployer.xml
• remove server/all/lib/bsh-deployer.jar
• remove server/all/lib/bsh.jar
Auto Deploy
• open server/all/conf/jboss-service.xml in the editor
• change this XML frament:
...
...
to read (by adding):
...
...
JBoss UUID key generation
• remove server/all/deploy/uuid-key-generator.sar
• remove server/all/lib/autonumber-plugin.jar
Connection Close Checking
• In production you don't need this check (assuming all connection leaks were found during development).
• In deploy/jbossjca-service.xml, change the Debug entry to false in the CachedConnectionManager service