You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christoph Gaffga <cg...@triplemind.com> on 2003/09/29 15:00:16 UTC

Strange Perfomance decrease with Servlets

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