tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Gaffga" <cgaf...@triplemind.com>
Subject Strange Perfomance decrease with Servlets
Date Mon, 29 Sep 2003 13:00:16 GMT
hi,

i have a strange effect when I run code inside of tomcat, it seems to
slowdown more then 10 times!! :(

I call the main-method from my test class the command line.
- The method does lookup an Entity EJB on JBoss server.
- Get a Property from the Bean
- Serialize the Bean using Betwixt

Then I tested the same by calling the same method from an servlet, it
slowes down dramatically:

          |Command Line | from Servlet
----------+-------------+-------------
Lookup    |  144 ms     |  2490 ms
Getter    |   17 ms     |  2843 ms
Serialize |  708 ms     | 64147 ms

Has anybody an idea what causes this slowdown, or anybody seen something
similar before?
Any help would be apriciated.

Thanks a lot,

Christoph Gaffga
cgaffga@triplemind.com






Mime
View raw message