Troubleshooting

Slow Performance from EJB Methods

When calling a method on my EJB, it takes a long time to return.

There can be many reasons for this, but detecting where the problem usually is easy. The best thing to do is to get one of the performance tools mentioned in Table 18.1 and start up your EJB server with the tool. Then, call the slow-performing method and use the tool to analyze where most of the time is being spent during the call. When you figure out which method or methods are causing the problems, modify the code and rerun the tests until you get acceptable performance levels.

Unacceptable Scalability

When I load test my EJB, it performs terribly when the number of virtual users is more than a few.

There can be several reasons ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.