> From: Dima Iva [mailto:ots...@live.com] 
> Subject: Tomcat using near 100% of CPU on Windows 2008


> I added CATALINA_OPTS=-Xms4096m -Xmx512m to the Environment Variables

That's clearly wrong; you made the maximum smaller than the minimum.  What 
makes you think you have a heap size problem?

Also note that setting environment variables when running tomcat7.exe is 
pointless.  Use the control panel (tomcat7w.exe) to set options for the Tomcat 
service.

> I believe there is a memory leak here

Why?

> The last file shows what kind of information Process Explorer lists for 
> the 91 threads that are part of the tomcat7.exe process, including the 
> first one that is eating up all the CPU.

Process Explorer is pretty much useless for a Java program; take several Java 
thread dumps and see what's going on.

http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F
http://wiki.apache.org/tomcat/HowTo#How_do_I_read_a_Java_thread_dump_.3F

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to