Resource problem affecting Curl functions

From: Date: Thu, 21 Sep 2006 14:07:19 +0000
Subject: Resource problem affecting Curl functions
Groups: php.internals 
Request: Send a blank email to internals+get-25782@lists.php.net to get a copy of this message
I sent this to the php-general mailing list but nobody seemed to be able to help me there. I run a shared webserver with a few hundred vhost containers in Apache's config. Recently I got to a point where I added enough vhosts to cause a problem with curl functions in PHP. Basically, when PHP tries to make the curl call to get the webpage, it just hangs the HTTP request to my webserver. If I remove a few vhost containers, the problem stops, if I add them back, the problem starts again. I've tried turning up several ulimit values in the apache init script, but none of those fixed the problem. I know that its not a problem with the number of file handles that apache can open because I also had to do ulimit -n 32768 in the apache init script recently in order to allow more logfiles to be opened. Anyone have any ideas as to what might be causing the curl problem? This is running on: Apache 2.0.51 PHP 4.3.10 Linux 2.6.13 /proc/sys/fs/file-max is set to 524288 lsof | wc -l returns 33497 Thanks, Mark ps. I am well aware that I need to upgrade my software so there is no need to tell me to do that. I'm working on it. -- Mark S. Krenz IT Director Suso Technology Services, Inc. http://suso.org/

« previous php.internals (#25782) next »