apache/php sockets - weird problem
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > apache/php sockets - weird problem




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    apache/php sockets - weird problem  
Aurimas Mikalauskas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: apache/php sockets - weird problem  
scootgirl.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-03-04 01:47 AM

"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/







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:36 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register