I also did a small test where I was calling a simple servlet in a loop. The only resource used in the servlet was a random number generator. The tomcat crashed after running few hours.
I used the tomcat 4.1.10 for this. Though I did this test on a very small machine (Intel 166Mhz with 128 MB RAM), but the real reason of the crash was the insufficent memory. Tomcat had used all the physical and the swap file size grown upto 300 MB. Since there was no enough space on the file system and swap file size could not be increased, Tomcat crashed eventually. I attach the servlet code for you evaluation. Raj Saini ----- Original Message ----- From: "Ing. Damiano Bolla" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, September 26, 2002 3:14 PM Subject: Re: Tomcat 4.1.12 memory leak, still > I did two more test, here are the results. > > At 09.50 26/09/2002 -0400, you wrote: > > >you can easily test it out by setting > > > >JAVA_OPTS='-Xmx=64M' > > Did set the above before starting tomcat and had the folowing results. > This is the value of SIZE of top > > 22684 > 22692 > 22700 > 23560 > 23908 > 23960 > 23980 > 24040 > 24170 > 24328 > 24432 > 24468 > 24492 > 24552 > 24572 > 24704 > 24760 > 24768 > 24788 > > Always reloading the same page (the default page) > I then changed JAVA_OPTS='-Xmx=24M' > and I still had an increasing result > > 22848 > 23576 > 23592 > 23804 > 23836 > 23896 > 23972 > 23992 > 24080 > 24152 > > And I must say that if I keep reloading it will keep increasing. > It is a very simple test to do, are you shure that you have the SIZE number > decreasing sometimes ? > It chews little ram at the time so if you have 1Gb ram you notice it only > if you really look at it. > > > >I've ran extensive load testing with 4.1.10 w/o any problems. Haven't > >done it with 4.1.12, but hopefully it's not a new bug, since the release > >notes don't list anything that might create a new bug. > > > >peter > > > > > >"Ing. Damiano Bolla" wrote: > > > > > > Good explanation but it does not solve the problem. > > > Let me try to be clear. > > > > > > - What I am doing is reloading always the same page. > > > - What I see is an ever increasing consumption of memory. > > > > > > Really why should the JVM want more and more ram ? > > > > > > In any case if you keep reloading, this ever increasing consumption > > > eventually will eat all your ram. > > > Whatever is the explanation it does not seem right to me, is there a way to > > > fix it ? > > > > > > Damiano > > > > > > >-- > >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
HttpProxyServlet.java
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
