You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Erick Todd <er...@coloradosprings.com> on 2002/10/02 17:25:13 UTC
Too Many files, Socket Problems HELP!!
I am having a problem where too many sockets connections are opened and
it stops tomcat from serving.
So I have a couple of excerpts, from the mod_jk log:
[Wed Oct 02 09:11:57 2002] [jk_ajp_common.c (1028)]: Error reading
reply
[Wed Oct 02 09:11:57 2002] [jk_ajp_common.c (1165)]: In
jk_endpoint_t::service, ajp_get_reply failed in send loop 1
[Wed Oct 02 09:11:57 2002] [jk_connect.c (162)]: jk_open_socket,
connect() failed errno = 111
[Wed Oct 02 09:11:57 2002] [jk_ajp_common.c (613)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Wed Oct 02 09:11:57 2002] [jk_ajp_common.c (859)]: Error connecting to
the Tomcat process.
[Wed Oct 02 09:11:57 2002] [jk_ajp_common.c (1168)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2
Then in the catalina log, I get a too many files open Socket exception.
So how do I rectify this. I know that the system is opening more the
1024 files (because that is the limit on my redhat 7.0 system).
How come they are not getting de-allocated?? I don't think I have that
much concurrency. Maybe I do. Anyway, ideas to fix it?? I went
through all the java code and tried to do explicit closes of all db
handles, files, etc. Still causing it.
Now I have about 14 virtual hosts, but I just use one ajp13 connection.
If I set up each virtual host there own worker would that help? I
assume the problem is too many files per process, so do I need multiple
JVM's. Lastly should I bump up the number of files for the system. I
hate to do that. Is there any way to get the GC to pick up faster, or
is that not my problem.
Thanks in advance,
-Erick
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>