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

Lance,

On 8/24/2011 11:21 AM, Campbell, Lance wrote:
> Tomcat 6.0.32 Java 1.6.27 Apache 2.0 RedHat 6.x 64 bit 
> /proc/sys/fs/file-max = 3233344
> 
> We experienced an issue where we were getting the error "too many 
> open files" in tomcat.  The server manager increase the amount of 
> open files to the above.  But the error kept coming back even
> after rebooting the server.  Is there a max number of connections
> that tomcat should run within based on the above specs?
> 
> The servlet in question that was being hit returned an XML
> document after doing a series of database queries.

You may find that the problem isn't the number of on-disk files but
the number of file descriptors, which might actually have different
meanings on your system.

It's also possible that the JVM is giving you a spurious message about
"too many files" when the problem is really the number of /threads/ --
I've seen that in the past, too.

Can you post the exact stack trace that you got along with this error?
Also, how about the output of "ulimit -a" for the user that actually
runs Tomcat? Finally, what do your <Connector> elements look like in
conf/server.xml?

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

iEYEARECAAYFAk5VRJ8ACgkQ9CaO5/Lv0PCD1gCgk7+nPVcTrN87QRiceYYYjnfi
SdEAoK/4AUixlaSqINfTdnLHty+/zI/B
=aigt
-----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