Have you used the java arg -verbose:gc to track JVM memory usage? top won't tell you whether you have a memory leak because of how the JVM manages its own memory internally. The amount of memory the JVM uses will grow until it reaches the maximum size set for its stack. Then it will do a garbage collection to free up internal memory, but it _never_ returns that memory to the system.
Starting Tomcat with the java arg -verbose:gc will output data about the JVM's memory usage and garbage collection. top is useless for evaluating whether there is a memory leak in a java process. No determinations can be made whether there is or is not a memory leak based on its output. If you want to get serious about understanding what is happening within the JVM regarding memory usage then profile your installation with a tool like OptimizeIt or JProbe. Regards, Glenn Shapira, Yoav wrote: > Hi, > > >>- What I am doing is http://localhost:8080/ and keep refreshing that > > with > >>F5 >>- I am NOT testing my own servlet. I am NOT doing anything else !!! >> >>I monitor memory usage using top and sorting the results by memory. I > > am > >>looking at the SIZE column. >>What I get is an EVER INCREASING memory usage. Something like >>30212 >>30220 >>31016 >>31040 >>31576 > > > Why is that necessarily a leak??? The JVM will allocate as much memory > as it wants even for identical resources, up to when a GC is needed. As > long as this is all you're doing, it could go up to close to 64MB (the > default limit), before everything will be GCed. > > Did you try going up that high? > > I wouldn't rush to put in a bug for this ;) > > Yoav Shapira > Millennium ChemInformatics > > > ------------------------------------------------------------------------ > > This e-mail, including any attachments, is a confidential business communication, >and may contain information that is confidential, proprietary and/or privileged. >This e-mail is intended only for the individual(s) to whom it is addressed, and may >not be saved, copied, printed, disclosed or used by anyone else. If you are not >the(an) intended recipient, please immediately delete this e-mail from your computer >system and notify the sender. Thank you. > > > > ------------------------------------------------------------------------ > > -- > 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]>
