JBoss AS 5 Performance Tuning

Tuning the Java Virtual Machine (JBoss AS 5) Part 4

A practical example Until now we have discussed many aspects of JVM tuning. All the concepts that you have learnt so far need a concrete example to be truly understood. We will introduce here a complete JVM analysis use case, which can be used as pathfinder for your tuning sessions. In the first part of […]

Tuning the JBoss AS Part 1

Tuning the application server is a complex activity which requires complete knowledge of the key server configuration files. JBoss application server has made a major change with release 5.0, moving from the JMX kernel to the newest POJO-based kernel. As a consequence, the configuration files and the memory requirements of the application server have changed […]

Tuning the JBoss AS Part 2

JBoss AS pools Most services provided by the application server are granted by means of the pooling of resources. Keeping these resources in a pool avoids the burden of re-creating costly resources like database connections and can be used as well to limit the amount of requests to be processed by the application server. As […]

Tuning the JBoss AS Part 3

Using Prepared Statements efficiently When a database receives a statement, the database engine first parses the SQL string and looks for syntax errors. Once the statement is parsed, the database needs to figure out the most efficient plan to execute the statement. This can be computationally quite expensive. Once the query plan is created, the […]

Tuning the JBoss AS Part 4

Logging for performance In JBoss AS log4j is used as framework for logging. If you are not familiar with the log4j package and would like to use it in your applications, you can read more about it at the Jakarta website (http://jakarta.apache.org/log4j/). Logging is controlled from a central conf/jboss-log4j.xml file. This file defines a set […]

Tuning the Middleware Services (JBoss AS 5) Part 1

Tuning the middleware services is a key step to ensure a positive experience for customers running Java EE applications. JBoss AS 5.x integrates all the Java EE 1.5 features and, while this topic is being written, release 6 of the application server has gone through the fifth milestone, including most of the new exciting features […]

Tuning the Middleware Services (JBoss AS 5) Part 2

How to configure the optimal size of stateful cache? As we introduced earlier, JBoss EJB container uses a cache of bean instances to improve the performance of stateful session beans. The cache stores active EJB instances in memory so that they are immediately available for client requests. The cache contains EJBs that are currently in […]

Tuning the Middleware Services (JBoss AS 5) Part 3

Customizing the single deployment unit In the previous example, we applied changes at EJB container level. However, this is a brute force change as it applies the new Interceptor stack on all your EJBs. You can opt for a softer solution that adds your customized domain in a *-aop.xml file along with your deployment unit. […]

Tuning the Middleware Services (JBoss AS 5) Part 4

Tuning HornetQ (JBoss AS 6.x) HornetQ is the new high performance messaging provider for the JBoss AS 6.x release. Its core has been designed as a simple set of Plain Old Java Objects (POJOs) without any dependencies on any other JBoss classes which is why it can be used stand-alone, embedded in your applications, or […]

Tuning the Persistence Layer (JBoss AS 5) Part 1

Data persistence is a key ingredient of any enterprise application and it has been a part of the JDK API since its very first release. Most readers certainly agree that data persistence is the most common cause of bottleneck in your applications. Unfortunately, isolating the root of the problem is not a straightforward affair and […]