View Full Version : apache + mod_caucho + resin 3.1.9 returns source

08-26-2010, 03:36 PM
This morning our application server threw some "java.io.IOException: java.io.IOException: Too many open files" exceptions, and then started serving JSP source code until we restarted resin. Any idea why this might have happened and what we can do so it doesn't happen again?

We're using apache 2.2.3 & resin 3.1.8


08-26-2010, 06:07 PM

What probably happened was that Resin ran out of file descriptors (a limit set by the operating system), then lost its connection to Apache, and finally Apache started serving the files as text. To fix it, you'll need to increase the number of file descriptors on your server (it's often set as a boot time parameter to the kernel). If you're running Resin as a non-privileged user on Unix/Linux, you'll also want to check that your ulimit is set high enough as well. Finally, if you're still running out, you might want to tune your keepalive limit. If your keepalives are running too long or you allow more keepalives than open file descriptors, you could face the same issue again.