Web Servers on Unix and Linux - apache/php sockets - weird problem

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > September 2004 > apache/php sockets - weird problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author apache/php sockets - weird problem
Aurimas Mikalauskas

2004-08-25, 5: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 made
by server using local tools (like telnet etc.). I've been looking for an answer
for about three months (same problem was with apache-1.3.28,29) and now I feel
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 problem,
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!
scootgirl.com

2004-09-02, 8:47 pm

"Aurimas Mikalauskas" <inner@crazy.lt> wrote in message
news:6db3f2af.0408250744.6f243b98@posting.google.com...
> 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

made
> by server using local tools (like telnet etc.). I've been looking for an

answer
> for about three months (same problem was with apache-1.3.28,29) and now I

feel
> 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

problem,
> 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!




Not that this will help...

But have you used: http://httpd.apache.org/docs/vhosts/mass.html - 500 is a
lot of vhosts!

You could make sym links from the user directories to the
VirtualDocumentRoot directories. This might ease the load if you aren't
doing this already.

Karen
http://scootgirl.com/


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com