-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve,

Steve Cohen wrote:
> One additional restriction I have is a security bureaucracy from hell.

You can use jmap from the command-line. That will give you a thread dump
which can help you see what all your threads are doing.

If you are using a system that uses POSIX threads, it might also help to
see what the output of 'ulimit -u' which will tell you the process limit
for your user. POSIX threads are essentially processes, so threads count
against your process limit.

The obvious answer is that you simply have too many threads being
created. There are a number of reasons you could be running out of
threads. Here are some:

1. Too many request processor threads configured in server.xml
   (see your <Connector> element). Inspect your configuration. You may
   have more connectors configured than necessary (I've seen
   configurations where both HTTP and AJP connectors are both enabled
   but only one is being used).

2. Too much file I/O. If you are using background threads to read/write
   files independently of the request processor thread, you might be
   creating too many of them. I recommend using a thread pool to
   schedule background jobs.

3. Timer threads. If you are using java.util.Timer, you may be creating
   more threads than you realize. Check your use of java.util.Timer and
   possibly use a thread pool for timed tasks.

4. Quartz, Quartz, Quartz (this is a job scheduler that generates a lot
   of questions on this list). Check any uses of Quartz.

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

iEYEARECAAYFAkmJ2YQACgkQ9CaO5/Lv0PBH1gCgq+lrPmgTjRhEF1JEf9jBs4oe
Vq4AoJ18SigCd8pkSCh4eR0qDOawyhpu
=tIYg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to