08-25-04 10:53 PM
A server having about 500 virtual servers and running apache-1.3.31
has a very weird problem. After runing couple of hours (or more, depending
on server load) web applications stop using sockets. php functions like
fsockopen() or curl_init() start barking something like "fsockopen(): unable
to connect to $HOST:$PORT" although these connections can be successfully ma
de
by server using local tools (like telnet etc.). I've been looking for an ans
wer
for about three months (same problem was with apache-1.3.28,29) and now I fe
el
that the answer is very close (maybe in this list but yet not in my hands
.
If you have any idea how could I figure out this problem, please be so kind
and help me.
By the way, apachectl graceful or apachectl restart does not solve the probl
em,
the only way to keep going for another couple of hours is to stop the apache
and start it again.
OS: FreeBSD-4.9 STABLE
important system variables:
kern.maxfiles: 131072
kern.maxfilesperproc: 32768
kern.ipc.somaxconn: 32768
kern.ipc.maxsockbuf: 262144
kern.ipc.maxsockets: 26624
And if there's any way I could help you to solve my problem, please tell me,
I'll do my best.
Thank you!
[ Post a follow-up to this message ]
|