Sasha wrote:
> In addition I run the same test on WebLogic and the problem dissapeared
> at all. So for sure it's a problem of Tomcat.
Perhaps. If your code is poor, and Weblogic doesn't happen to be
affected as badly as Tomcat is, then is it really Tomcat's fault? It
may indeed be that Tomcat has an issue here, but you have described the
situation so generically that there is no way any of us can give you
much in the way of meaningful help. As far as I know, Tomcat does not
have any known generic problems under load.
Notwithstanding the above, one general issue that you may run into when
making a program do more work is garbage collection. If your servlet
flagrantly produces loads of garbage and maintains large data structures
in memory then you may be seeing the effect of differing maximum heap
sizes in the underlying VM, or possibly a GC strategy in Weblogic's VM
that happens to significantly outperform the one in Tomcat's VM for your
particular scenario. That's a shot in the dark.
--
John Bollinger