If you use JSP tags where the JSP body does not directly stream but
needs buffered for the tag to finish processing it (using BodyContent) -
then tomcat will allocate and reuse these. If you are creating pages
with large body contents - this can take *A LOT* of memory. The rational
is to reuse these instead of letting them go to the GC. But there is a
way to not have tomcat reuse these.
http://tomcat.apache.org/tomcat-5.5-doc/jspapi/javax/servlet/jsp/tagext/BodyContent.html
-Tim
Christian Stöber wrote:
Hello list,
we are about to migrate our webserver cluster from Jetty 5.1.14 to
Tomcat 6.0.20. Currently there are four servers in our cluster with
simple load balancing and no session clustering.
At the moment we are testing Tomcat on 2 nodes of our cluster (also no
session clustering yet). 2 remains with Jetty. Same WAR file an the same
environment. Our first test ends in an OutOfMemoryError after two days.
The java vm of the Tomcat servers has the same memory parameters as the
server with the Jetty: -Xmx512m. And no other special GC parameters.
Apperently the Tomcat needs more memory than Jetty.
So we are trying to give Tomcat more memory: -Xmx768m. After two days
the Tomcat is still running fine.
Obviously Tomcat needs just a little bit more memory than Jetty. After
these two days we can state the following memory behavior.
Node Mem used Mem reserved
1 TC 400m 530m
2 TC 350m 495m
3 J 230m 350m
4 J 290m 400m
Averagely Tomcat is using round about 110m more memory than Jetty. But why?
I have seen that the Tomcat DefaultServlet may cache content up to 10m
per default. But that are only 10m.
Are there some other things Tomcat may cache and Jetty does not?
Do you have any experiences?
Thanks in advance
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org