Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Tomcat causing high CPU load

Tomcat causing high CPU load

2007-11-04       - By Sai Bobba

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hi,

I'm using the following:

JDK1.5
Tomcat 6
SQL Server 2000
Server running on Windows 2000

The web app deployed consists of: an application form filled in by the
prospective student, a servlet that gets the form parameters
(>60), processes them, and saves the data input by the user to several
tables in the database.  Processing of the form data involves applying
testing the data against admission criteria.
When the web ap was first deployed some months ago, we had the problem that
some of the input by the users was too large for the space allocated in the
corresponding column in the db table - this caused SQLExceptions to be
thrown each time this happened. At the same time we noticed that many times
a day the CPU load on the server machine was up at 60% - 90+% - Tomcat was
responsible for this CPU load almost exclusively - the other processes
running on the machine were taking <3%. This meant having to restart Tomcat
several times a day. At first we thought this was related to the db
insertion problem. We fixed the db issue so that no more exceptions are
thrown, but we still find the CPU load up at >60% at least once a day -
Tomcat responsible again.
Another thing I noticed in testing the app was that if after I submitted an
application I hit the 'Back' button on the browser and then submitted again,
app would hang, and the CPU load on the server machine would rise to >60%. I
tried this several times, with the same result each time. However, it was
possible to submit an aplication from a different browser even when the CPU
load was high. Oddly, when I did this test on my local machine I didn't have
this problem.
I hope I've laid out the situation clearly. My searches on the web for this
sort of problem have yielded no solution.
If anybody has had this problem and fixed it, or has an insight into what
the problem might be, I'd greatly appreciate hearing about it!

Many thanks!

bob

©2008 junlu.com - Jax Systems, LLC, U.S.A.