You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Bilodeau <da...@verizon.com> on 2005/01/03 19:12:52 UTC

Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

Can anyone point me to a thread discussing the following configuration or
something similar, where the discussion relates to the CPU running up to
100%?
 
Windows 2003 Server Standard Edition running IIS 6.0
Tomcat 5.0.28 installed and running (as a service)
SQL Server 2000 SP3 connected to Tomcat (and IIS), but running from another
server.
 
Our symptom is that after a few days the server CPU usage hits 100%, with
Tomcat consuming most of it.  Stopping and restarting each Tomcat virtual
site, or stopping & restarting the Apache service does not resolve the
issue.  Only a box reboot will.
 
I need some guidance as to where to suggest to the developers they should
look, presuming this is caused by the code.  I am the system admin of the
environment and so do not develop the code myself, but I am seeing this
symptom and now need to ask the developers to examine their code to find a
root cause.
 
I bet someone, somewhere, has run across this on a thread on this forum and
can point me to it?  I've been searching some but have not found much yet
that is recent.
 
Regards,
 
  
David Bilodeau
Enterprise Marketing & Sales Automation
Verizon Data Services, Inc.
919 Hidden Ridge, HQM03C76
Irving, TX 75038

RE: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

Posted by George Sexton <gs...@mhsoftware.com>.
I think it's something in Tomcat personally. I have had a customer report
this with our Application, which when run under Tomcat on Unix will run for
weeks at a time.
 

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 


  _____  

From: David Bilodeau [mailto:david.bilodeau@verizon.com] 
Sent: Monday, January 03, 2005 11:13 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%


Can anyone point me to a thread discussing the following configuration or
something similar, where the discussion relates to the CPU running up to
100%?
 
Windows 2003 Server Standard Edition running IIS 6.0
Tomcat 5.0.28 installed and running (as a service)
SQL Server 2000 SP3 connected to Tomcat (and IIS), but running from another
server.
 
Our symptom is that after a few days the server CPU usage hits 100%, with
Tomcat consuming most of it.  Stopping and restarting each Tomcat virtual
site, or stopping & restarting the Apache service does not resolve the
issue.  Only a box reboot will.
 
I need some guidance as to where to suggest to the developers they should
look, presuming this is caused by the code.  I am the system admin of the
environment and so do not develop the code myself, but I am seeing this
symptom and now need to ask the developers to examine their code to find a
root cause.
 
I bet someone, somewhere, has run across this on a thread on this forum and
can point me to it?  I've been searching some but have not found much yet
that is recent.
 
Regards,
 
  
David Bilodeau
Enterprise Marketing & Sales Automation
Verizon Data Services, Inc.
919 Hidden Ridge, HQM03C76
Irving, TX 75038


RE: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

Posted by Mike Curwen <g_...@globallyboundless.com>.
Every so often in our development environment, we'll have a page that goes
off in an infinite loop.  No problem, we'll just stop the browser, and fix
the page and click refresh.  But meanwhile, that first page is still
spinning away, gobbling up CPU.  
 
I once saw code on tomcat-user that allowed me to see what each thread was
doing. It's at the very bottom of this post:
 
http://marc.theaimsgroup.com/?l=tomcat-user
<http://marc.theaimsgroup.com/?l=tomcat-user&m=109455426721082&w=2>
&m=109455426721082&w=2
 
I must have found the 'second part' from somewhere else, probably
tomcat-user as well! It's a filter that renames the thread to be the JSP
page that the thread is processing:
 
public void doFilter(ServletRequest servletRequest, ServletResponse
servletResponse, FilterChain filterChain) throws IOException,
ServletException {
 
 Thread t= Thread.currentThread();
 String oldName = t.getName();
 HttpServletRequest request = (HttpServletRequest) servletRequest;
 try {
  t.setName(oldName + " - " + request.getRequestURI());
  filterChain.doFilter(servletRequest, servletResponse);
 } finally {
  t.setName(oldName);
 }
 
}
 
combining those two, and you'll get what page is currently processing on
what thread.  If you see the same page for more than .... (the time varies,
but let's say 10 seconds)...  then perhaps that page is 'dead' and is
consuming your CPU.
 
 
 

Mike Curwen
www.globallyboundless.com                                                   
204.885.7733 ext 227



-----Original Message-----
From: David Bilodeau [mailto:david.bilodeau@verizon.com] 
Sent: Monday, January 03, 2005 12:13 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%


Can anyone point me to a thread discussing the following configuration or
something similar, where the discussion relates to the CPU running up to
100%?
 
Windows 2003 Server Standard Edition running IIS 6.0
Tomcat 5.0.28 installed and running (as a service)
SQL Server 2000 SP3 connected to Tomcat (and IIS), but running from another
server.
 
Our symptom is that after a few days the server CPU usage hits 100%, with
Tomcat consuming most of it.  Stopping and restarting each Tomcat virtual
site, or stopping & restarting the Apache service does not resolve the
issue.  Only a box reboot will.
 
I need some guidance as to where to suggest to the developers they should
look, presuming this is caused by the code.  I am the system admin of the
environment and so do not develop the code myself, but I am seeing this
symptom and now need to ask the developers to examine their code to find a
root cause.
 
I bet someone, somewhere, has run across this on a thread on this forum and
can point me to it?  I've been searching some but have not found much yet
that is recent.
 
Regards,
 
  
David Bilodeau
Enterprise Marketing & Sales Automation
Verizon Data Services, Inc.
919 Hidden Ridge, HQM03C76
Irving, TX 75038