wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Allocated Heap Size Continuously increase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Allocated Heap Size Continuously increase" Watch "Allocated Heap Size Continuously increase" New topic
Author

Allocated Heap Size Continuously increase

Wong KK
Ranch Hand

Joined: Jan 15, 2001
Posts: 52
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.
Wagner Danda
Greenhorn

Joined: Jul 10, 2001
Posts: 26
Hello,
I�m having the same problem as you. Did you solve it?


Wagner Danda<br />Sun Certified Programmer for Java 2 Platform
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

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.
 
Consider Paul's rocket mass heater.
 
subject: Allocated Heap Size Continuously increase
 
Similar Threads
optimum heap size for weblogic 6.1
Heap Space Error
generate large XLS file using java
Tomcat and Optimizeit throwing Out of memory error
java.lang.OutOfMemoryError