| JBoss performance tuning part 2 |
| Written by F.Marchioni | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Have you completed jboss performance tuning part 1 ? well let's dive on part 2 !
Tip 15: Lots of EJB requests ? switch to the PoolInvoker
|
|
Servizio
|
Server/deploy
|
Server/lib
|
|
Mail service
|
mail-service.xml
|
mail-plugin.jar, mail.jar,activation.jar
|
|
Cache invalidation service
|
cache-invalidation-service.xml
|
|
|
J2EE client deployer service
|
client-deployer-service.xml
|
|
|
Hibernate HAR support
|
hibernate-deployer-service.xml
|
jboss-hibernate.jar, hibernate2.jar, cglib-full-2.0.1.jar, odmg-3.0.jar
|
|
HSQL DB
|
hsqldb-ds.xml
|
hsqldb-plugin.jar, hsqldb.jar
|
|
Default JMS Service
|
jms folder
|
jbossmq.jar
|
|
HTTP Invoker (tunnels RMI through HTTP)
|
http-invoker.sar
|
|
|
XA Datasources
|
jboss-xa-jdbc.rar
|
|
|
JMX Console
|
jmx-console.war
|
|
|
Web Console
|
management/web-console.war
|
|
|
JSR-77
|
management/console-mgr.sar
|
|
|
Monitoring mail alerts
|
monitoring-service.xml
|
jboss-monitoring.jar
|
|
Schedule Manager
|
schedule-manager-service.xml
|
scheduler-plugin.jar, scheduler-plugin-example.jar
|
|
Sample Schedule service
|
scheduler-service.xml
|
|
If you are removing a core JBoss service like JMS or EAR Deployer then you need to remove it also from the jboss-service.xml :
<mbean code="org.jboss.management.j2ee.LocalJBossServerDomain"
name="jboss.management.local:j2eeType=J2EEDomain,name=Manager">
<attribute name="MainDeployer">jboss.system:service=MainDeployer</attribute>
<attribute name="SARDeployer">jboss.system:service=ServiceDeployer</attribute>
<attribute name="EARDeployer">jboss.j2ee:service=EARDeployer</attribute>
<attribute name="EJBDeployer">jboss.ejb:service=EJBDeployer</attribute>
<attribute name="RARDeployer">jboss.jca:service=RARDeployer</attribute>
<attribute name="CMDeployer">jboss.jca:service=ConnectionFactoryDeployer</attribute>
<attribute name="WARDeployer">jboss.web:service=WebServer</attribute>
<attribute name="CARDeployer">jboss.j2ee:service=ClientDeployer</attribute>
<attribute name="MailService">jboss:service=Mail</attribute>
<attribute name="JMSService">jboss.mq:service=DestinationManager</attribute>
<attribute name="JNDIService">jboss:service=Naming</attribute>
<attribute name="JTAService">jboss:service=TransactionManager</attribute>
<attribute name="UserTransactionService">jboss:service=ClientUserTransaction</attribute>
<attribute name="RMI_IIOPService">jboss:service=CorbaORB</attribute>
</mbean
Simply comment the attribute relative to the unwanted service.Tip 22: Tell log4j to shut up !
Wel not really anyway Log4j uses a valuable amount of time/CPU so you had better remove unnecessary logs, for example :- Remove logs from Console
<root>
<!-- <appender-ref ref=CONSOLE"></appender-ref> -->
<appender-ref ref="FILE"></appender-ref>
</root>
remove also the relative appender:
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
....
</appender>
- Raise log priority
<root>
<priority value="ERROR" ></priority>
<!--<appender-ref ref="CONSOLE"></appender-ref> -->
<appender-ref ref="FILE"></appender-ref>
</root>
| Comments |
|


