wood burning stoves 2.0*
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
Author

CMP performance

Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
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)
827ms
807ms
822ms
804ms
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?
Chu
Justin Chu
Ranch Hand

Joined: Apr 19, 2002
Posts: 209
    
    1
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.
Chu
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16065
    
  21

http://www.cs.rice.edu/CS/Systems/DynaServer/perf_scalability_ejb.pdf
Here's something that most be useful:
http://www.j2life.com/bitterjava/java_performance.html


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CMP performance