You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Phillips <pa...@partitura.com> on 2002/03/28 06:26:26 UTC
memory usage
I have a RedHat Linux box on which I am running tomcat 4. The machine has
1 gig of physical RAM. Just out of curiousity, I ran the "free" command
yesterday, and discovered to my horror that it appeared that virtually all
of the 1 gig was being used up! The machine had been running Tomcat only a
couple of days. And, every time I ran "free" the amount of free memory was
slightly smaller.
So I did a PS -aux and found all these java processes - over 30. After
reading the archives of this list, I now know that those are threads, not
processes, and that they are sharing the same memory space.
However - two questions.
1) Is the free command confused, and reporting much less free memory than I
actually have? When I look at the ps -aux output, there is nothing else
there (other than all the java) that would account for anywhere near that
kind of memory use. Shutting down the tomcat server freed up nothing.
However, a restart freed up about 3/4 of the memory on the machine.
2) Why is the memory use of Java gradually creeping upward? I know about
the reported memory leak when compiling jsp pages, but I just have a very
tiny number of those (5 or 6), so certainly that isn't it. I see the Java
memory use slowly climbing (as reported by repeated invocations of "free",
or ps, or top) even when no one is accessing the tomcat servets. Why is
this?
Thanks,
Paul Phillips
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>