File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes CMP performance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "CMP performance" Watch "CMP performance" New topic

CMP performance

Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
Just created a simple CMP EJB with 10 records in the table. The table contains 14 columns.
I'm using SilverStream 3.7.2 on Solaris with ample supply of memory. EJB 1.1.
I've created a simple page to findAll() (return all rows).
The load time is
1160ms (first load, added overhead of initializing Home bean)
If I click on reload multiple times quickly, I get load time of up to 10 seconds.
Is this the normal performance you can get from EJB in general? Or just CMP? Or is it just that SilverStream's slow?
Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
I've fine tuned the EJB to only have coarse grained accessor methods that returns a value object instead of individuals variables.
Now, my page has exactly 10 rmi calls..
The speed has reduced from 800ms to 500ms.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417
Here's something that most be useful:

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: CMP performance
It's not a secret anymore!