[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] wrote :

> I am hoping someone can help me with this problem I am having.
> I am using tomcat 4.0.1 to run a web site with jsps. This 
> site uses alot of database connecting with Informix.
> For some reason, usually within 2 hours of starting up 
> tomcat, a process will start to take up 100% of the CPU.
> The time it takes for this to happen varies.  

With Linux every JavaThread looks like a process of its own
(other as with e.g.  Solaris). So your runaway task should
normally be a Java Thread. To Monitor your application you 
could try to periodically dump the names and Status of all
Threads.  Threads created by your code should have reasonable 
names.

Another Problem might be the Informix driver. Eventually due
to some bad SQL you might receive an "infinite" amount of Data
or the Driver may produce an infinite loop. Try logging
all sql statements and have a look at them.

How is the memory consumption of you application when it "runs
away" ? It may be that the Server is trashing and wasting its
time with GCs. You might wish to reduce the number of Threads
in your server.xml in this case.

Try writing HTTPUnit Testcases to stress your pages.
( http://sourceforge.net/project/showfiles.php?group_id=6550)
You might want to create something like a "crawler" that
follows every link and "presses" every button.

As a last resort you could use a debugger (jdb should do) and
try to find out about your Application this way.

I Hope you have some more Ideas now.

   |         Business Operation Systems GmbH
   |  _
 / | / \ \   Klaus Halfmann,  Dipl. Inform.
|  |/  /  |  
|   \_/   |  Tel. +49(0)69-24779-0 Fax +49(0)69-24779-444
 \       /   [EMAIL PROTECTED]
 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to