Hi,
 
i made some tests regarding the EJB performance. Well... i know it's still
beta, and EJB is never lightning fast. But are you expecting some serious
improvements of performance with the release version ? Not to get me wrong,
i like the product and so on (and i know it's a general problem for EJB
servers, too). Well, here are some facts:
 
I have an entity bean (bean managed), with 4737 instances. After restarting
the server, a findAll and a call of one business-get method (so that it must
be instanciated) from a remote client of these take aprox. 160 s (orion
0.9.4 on an Athlon 600 Linux box with 256 MB, Classic VM, build 1.2.2-L,
green threads, javacomp), that means ca. 33 ms per bean. To obtain this
result, i optimized the retrieving of DB connections with a cache to not
connect newly to the DB for every bean. The transaction type of all involved
methods is "required" (as usual). Memory is no matter since memory usage of
the server only grows by 12MB. There is no other application running. These
160s of CPU time are consumed almost all by the orion server, the DB server
(informix) uses less than 1% of the time. And the CPU usage is at 100% all
the time (so there is no lock or waiting for ports/network or similar). Of
course this is not representive and others are welcome to post me their
results. But to me it seems pretty much to guarantee a good response time in
a production system (and the used server should be sufficient for a - small
- production system, at least with another 256 MB of DRAM). Just for my
curiousity: What process in instanciating an entity bean is such complex
that it takes so much time? I know, the logic is very complex (with
transactions and so on), but it seems pretty linear to me (correct me, if
i'm wrong). If it's for me, i'd prefer much more memory consumption, if it
helps the performance...
 
Any suggestions on improving the performance are very appreciated, best
regrads and keep on the good work,
 
Jens Stutte

____________________________________________
[EMAIL PROTECTED], http://www.net-media.de

NetMedia GmbH
Schubertstr. 8
66111 Saarbruecken
Germany

fon: +49 (0) 681 - 37 98 80
fax: +49 (0) 681 - 33 89 3


 

Reply via email to