You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/05/25 16:22:16 UTC
DO NOT REPLY [Bug 9416] New: -
Memory usage by Tomcat
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9416>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9416
Memory usage by Tomcat
Summary: Memory usage by Tomcat
Product: Tomcat 3
Version: 3.2.3 Final
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: netcomindia@vsnl.com
We are using Tomcat 3.2.3 on Windows 2000/IIS 5 and we have a problem in that.
The memory allocated to Tomcat.exe is not getting released. Even many hours
after the usage has been stopped, the memory used is not coming down.
Depending on the load, Tomcat reports Out of Memory error in a few hours or
days and the process occupies all available memory. The only option is to
restart the server. We had the same problem in Tomcat 4.03 also. And we have
tried Tomcat with Apache also. This problem has already been reported by few
other people in Tomcat3 bug database and has been resolved as fixed. What is
the possible cause of this problem? Is it a Tomcat bug?
We tried the following test program. After the memory allocated to Tomcat
reaches 64 MB (Maximum set), Tomcat reports Out of memeory - can't create new
thread error. But other normal JSP pages run without any problem. When we
monitor the heap memory, 99 to 100% remains used even after hours of
inactivity. The only option is to restart Tomcat. Can any one tell whether
anything is wrong with our test program?
<%
for(int j=0;j<1000;j++)
{
out.println("<hr>"+j);
for(int i=0;i<10000;i++)
{
out.println(i);
String s1=""+i;
Thread t = null;
t = new Thread(s1);
t = null;
s1 = null;
}
//System.gc();
}
%>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>