PHP-FPM 5.4.33, MPM Event, and Entry Processes
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Michael Holforty
  2. Friday, 10 October 2014
  3.  Subscribe via email
Just wanted to report this in case someone has additional info.

Running PHP-FPM with cloudlinux patch and MPM Event. Been running great for months

Last night updated to PHP 5.4.33 and updated google's page speed from 1.7 to 1.8 release on a server.

A problem arose that the entry processes observed in lvetop kept rising on higher traffic sites until they maxed out and locked out.  I ran ps on the users and there was nothing there.  If I restarted Apache and when to a site on the web, almost each click raised the EP count by one and would not go back down.

I removed pagespeed, but the problem persisted. I changed MPM event to prefork and the problem stopped.  Switched back to MPM Event, started again.

So seems there is an issue with PHP 5.4.33 and MPM Event.  Don't know if anything relates to cloudlinux as I'm not sure what to check to further diagnose.
Rate this post:
  1. 18.10.2014 03:10:42
  2. # 1
Kirti Singh Accepted Answer
Posts: 1
Joined: 18.10.2014
0
Votes
Undo
Hi,

We too are facing the same issue on our server.

We are running Apache 2.4.10 Event MPM with PHP 5.4.33 with Apache's mod_fcgid.

The EP count for a LVE keeps on increasing until Apache is restarted. Running the command lveps -p , its output shows those Apache thread's (those threads are indeed present due to Apache's Process/Thread Lifecycle) which might have handled a used Entry Process, irrespective whether php process is running or not. 

Even if I use PHP Selector and select PHP 5.3, the problem still remains. In meantime I am looking to revert to Pre-Fork MPM or disabling mod_hostinglimits

Any help is appreciated.

KS
  1. 19.10.2014 03:10:24
  2. # 2
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
The issue happens on old mod_hostinglimit packages (before 0.1-19), check it with:


strings /usr/local/apache/modules/mod_hostinglimits.so | grep version -i

It\'s fixed in 0.1-19 and patches were sent to cpanel already, however most probably they was not yet included in their easyapache. However there is a way to fix it directly on the server compiling mod_hostinglimits, it\'s safe and fast, here is howto:



wget http://repo.cloudlinux.com/cloudlinux/sources/da/mod_hostinglimits-1.0-19.tar.gz
tar xfz mod_hostinglimits-1.0-19.tar.gz
cd mod_hostinglimits-1.0-19
cmake .
make
make install

Check version after install then restart apache.
  1. 21.10.2014 17:10:14
  2. # 3
Michael Holforty Accepted Answer
Posts: 14
Joined: 07.03.2014
0
Votes
Undo
I'm not sure what easyapache has to do with this, mine is from your repo:

Name        : mod_hostinglimits
Version     : 1.0
Release     : 14.el6.cloudlinux
Repo        : cloudlinux-x86_64-server-6

should I compile/install over the rpm, or remove it first.
  1. 22.10.2014 09:10:10
  2. # 4
Michael Holforty Accepted Answer
Posts: 14
Joined: 07.03.2014
0
Votes
Undo
sorry, I take that back. Your repo version is not installed.  it's version 1.0-18.  Thanks for the info.
  1. 24.10.2014 00:10:42
  2. # 5
Michael Holforty Accepted Answer
Posts: 14
Joined: 07.03.2014
0
Votes
Undo
FYI: mod_hostinglimits 1.0.19 was released 2014-10-20 in EasyApache 3.26.9
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.