Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CMP performance

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic