> I have a webapp which is slowly increasing the number of threads it
> consumes. This only happens in production; I can't seem to duplicate the
[quoted text clipped - 6 lines]
> what's
> going on.
Ctrl-Break (Windows) or kill -3 (Linux/Solaris) will cause the JVM to do a
thread dump.
In the absence of any other evidence of a bug, I would guess that what you
are seeing is a thread pool that increases in size as the load goes up but
doesn't discard idle threads (instead it keeps them alive ready for the
next time the load spikes).
Dan.

Signature
Daniel Dyer
http://www.dandyer.co.uk
Chris - 12 Feb 2006 21:46 GMT
>> I have a webapp which is slowly increasing the number of threads it
>> consumes. This only happens in production; I can't seem to duplicate the
[quoted text clipped - 14 lines]
> doesn't discard idle threads (instead it keeps them alive ready for the
> next time the load spikes).
Thanks. Trouble is, this is a production system and I can't do a kill
easily. I'm wondering if there is some function I can run from within the
JVM itself.