-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrew,
On 3/4/2009 8:30 AM, Andrew Feller wrote: > 2. Is there any rule of thumb for determining the appropriate number > of open file descriptors? As Chuck points out, this will be application-dependent but there is at least a place to start: if you are using a standard HTTP or AJP connector, each thread will need two file descriptors to service the request (one for input, one for output). I'm not sure about how Comet and NIO connectors work which is why I qualified my statement with the HTTP/AJP caveat. Also, if you need 1000+ threads, you probably need a lot of database connections in your database connection pool (if you have heavy db usage). You will require the appropriate number of file descriptors for all of those connections as well. So, you should be able to at least bet on a minimum number of file descriptors necessary to simply handle requests and contact your database. If you also read/write files during request processing, remember that it's possible to have /every single request thread working with a file/, so plan ahead: it's better to allocate a lot of unused memory for file descriptors than to get an OOME on your production box. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmuynsACgkQ9CaO5/Lv0PD9mwCgmY2mtKBAwWx8/gRACByULgqw DsEAoLKOixuaxpqAs2UmD33gL4D5T+Rq =WBAG -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org