tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Hundreds of Instances
Date Tue, 04 Dec 2007 16:21:42 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Breno,

Breno Jacinto wrote:
> http://www.freeunix.com.br/tomcat/all-2007-12-04-after-restart.html

It looks like your JSPs are doing a /lot/ of work:

jsp [ *.jsp , *.jspx ]
Processing time: 28.512 s Max time: 14843 ms Request count: 8 Error
count: 0 Load time: 1 ms Classloading time: 1 ms

8 requests tool a total of 28 seconds to process? And one of those
requests took 14 seconds? That's pretty slow. Do you know which request
that was?

In the [jk-8009] section of the "before restart", it looks like you've
got a lot going on:

Max processing time: 725764 ms

If it's really taking more than 10 minutes to process a request, then
something is definitely wrong. I wouldn't be surprised if you have
long-running processes that continue after the client has disconnected.
These processes tie up threads needlessly.

I would write a simple filter that logs the request URI + query string
to a log file, then times the request processing itself and writes that
out, too. Basically, you'll get a log file that says:

/foo/bar.jsp?id=1324 27ms
/foo/bar/jsp?id=1235 31ms
/foo/baz.jsp 897234ms

then you can see which requests take forever and maybe find out why. The
first step in debugging is reproducibility ;)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHVX6W9CaO5/Lv0PARAll/AKCrGWjDPoLPEabVjwF6gnqX2v+aMACgwMYy
8iD5GOX/tUzhqKId9NDnHao=
=zvyZ
-----END PGP SIGNATURE-----

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


Mime
View raw message