Jump to content

PHP5 install causes great increase in HTTPD processes


Recommended Posts

Hi Folks,

 

We've been running PHP4 for many years, and are just going through a process of upgrading to PHP5.

 

However, we've had to rollback in our PROD environment because (it seems) that the number of apache processes dramatically increases over a short time.

 

For instance, if we've been running with about 30 HTTPD processes under PHP4, and with the same load, we are cracking 150 HTTPD processes under PHP5.

 

I have heard that PHP5 handles keep-alive connections differently than PHP4, and my first (largely un-informed) guess is that connections are being kept open for longer, which as you would expect, could have an incremental effect on the number of processes.

 

Does anyone know of any php.ini configuration directives that I should be looking at in order to tune things like this? Any pointers would be appreciated.

 

Environment is PHP 5.1.6 with APACHE 1.3.36 on Solaris 8.

 

Cheers, Craig

Link to comment
Share on other sites

Hi,

 

I have been digging into this more for the last two weeks and it gets very interesting. Some parts of our site use NTLM for authentication to Active Directory. What is actually happening is that, when someone requests a page that has NTLM authentication requirements, APACHE (1.3.36) keeps the connection open in a "Sending reply" status for a VERY long time (indefinite). As you can imagine, your MaxClients processes quickly gets consumed if connections do not get released.

 

The interesting thing is that this only occurs with PHP5, not PHP4. We compiled PHP5 for Solaris, using pretty-well default options....so I am wondering what may be in the compilation options/config/anywhere that might control how PHP5 deals with connections?

 

Cheers.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.