> From: Daniel L. Gross [mailto:[EMAIL PROTECTED] 
> Subject: Memory Usage
> 
> I made a simple servlet that just opens a connection to my 
> MYSQL database and then closes it and does nothing else.  
> When I look at the windows task manager, the memory usage
> of Tomcat jumps each time I run the servlet.  The memory
> is never recovered.

The Task Manager is not a substitute for a profiler, which is what you
really need to look at.  Search the archives or Google to find one to
your liking.  Also try turning on -verbose:gc, just to see if a garbage
collection ever occurs; until a GC does happen, unused object space
won't be made available for reuse.  Also, the JVM almost never gives
memory back to the OS, so what you're seeing is not surprising.

As far as your production problem, you most likely have a memory leak in
your application(s).  A profiler should help uncover that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to