I have a web application running on Apache1.3.20 with mod_ssl+Tomcat3.3+Jdk1.2.2 on Solaris 8. The allocated heap size of tomcat continuously increase until OutOfMemoryError occurs. I've used OptimizeIT Profiler to monitor it and discovered that four classes' object instances continuously increase. They are : org.apache.tomcat.util.buf.CharChunk org.apache.tomcat.util.buf.ByteChunk org.apache.tomcat.util.buf.MessageBytes org.apache.tomcat.util.http.MimeHeaderField
Do anyone have similar problem and know how to solve it, please throw me some light. Thx. in Advance.
Using the OptimizeIt Profiler's backtrace ability, you should look for the methods that are creating these objects. They definately appear to be internal to Tomcat, but perhaps they are being created because of your code's use of such objects as session or request.