mavera2
Basic Pleskian
In my CentOS 6.3 final server
I was using Plesk 11.5.30 Update #20
Last night at 03:00 it was updated to Update #28.
It updated my PHP version from 5.4.17 to 5.4.23.
And also other updates:
http://download1.parallels.com/Ples...1.5-linux-updates-release-notes.html#11530u28
After the Plesk update httpd (apache) started to kill my server.
In normal operation I was having 25-30 httpd process and it was using total 90-120 MB RAM.
You can check from image that httpd (apache) creates 120-150 processes and takes 400-600 MB RAM.
http://s14.postimg.org/rdqm1kryp/image.jpg
You can see that php-cgi's CPU usage increased from %20-23 to %65-75:
http://s27.postimg.org/jmbkrshyr/image.jpg
I use mod_fcgid and you can see my ```top``` results below:
top - 13:21:06 up 50 min, 1 user, load average: 6.44, 7.23, 7.51
Tasks: 314 total, 5 running, 309 sleeping, 0 stopped, 0 zombie
Cpu(s): 28.1%us, 58.1%sy, 0.0%ni, 2.2%id, 9.4%wa, 0.3%hi, 1.9%si, 0.0%st
Mem: 1020564k total, 949536k used, 71028k free, 45024k buffers
Swap: 2097144k total, 188832k used, 1908312k free, 98512k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND
2526 mysql 20 0 1909m 282m 2952 S 45.4 28.3 8:05.60 64m mysqld
3930 mywebsite 20 0 243m 35m 13m S 1.3 3.6 0:48.20 6076 php-cgi
4167 mywebsite 20 0 235m 29m 13m R 33.5 3.0 0:33.68 3984 php-cgi
4169 mywebsite 20 0 234m 29m 13m S 1.3 3.0 0:25.45 4104 php-cgi
4165 mywebsite 20 0 235m 29m 13m R 28.2 2.9 0:40.39 4372 php-cgi
4257 mywebsite 20 0 229m 28m 13m S 1.3 2.8 0:03.88 0 php-cgi
4208 mywebsite 20 0 232m 28m 13m S 5.6 2.8 0:19.10 2912 php-cgi
4258 mywebsite 20 0 229m 27m 13m R 26.8 2.8 0:20.09 0 php-cgi
4259 mywebsite 20 0 229m 27m 13m R 27.2 2.8 0:19.89 0 php-cgi
2709 root 20 0 835m 4232 804 S 0.0 0.4 0:23.40 3852 newrelic-daemon
4254 apache 20 0 335m 4000 1892 S 0.0 0.4 0:00.01 9m httpd
4291 apache 20 0 335m 3984 2008 S 0.0 0.4 0:00.00 9m httpd
4225 apache 20 0 336m 3960 1776 S 0.0 0.4 0:00.15 9m httpd
4044 apache 20 0 336m 3932 1776 S 0.0 0.4 0:00.14 10m httpd
4249 apache 20 0 335m 3924 1884 S 0.0 0.4 0:00.01 9m httpd
4255 apache 20 0 335m 3924 1884 S 0.0 0.4 0:00.01 9m httpd
4267 apache 20 0 335m 3916 1884 S 0.0 0.4 0:00.04 9m httpd
4265 apache 20 0 335m 3904 1880 S 0.0 0.4 0:00.00 9m httpd
4248 apache 20 0 335m 3888 1868 S 0.0 0.4 0:00.01 9m httpd
4285 apache 20 0 335m 3888 1876 S 0.0 0.4 0:00.00 9m httpd
4080 apache 20 0 336m 3880 1772 S 0.0 0.4 0:00.04 10m httpd
4244 apache 20 0 335m 3880 1876 S 0.0 0.4 0:00.01 9m httpd
4173 apache 20 0 335m 3868 1776 S 0.0 0.4 0:00.23 10m httpd
4278 apache 20 0 335m 3860 1868 S 0.0 0.4 0:00.00 9m httpd
4114 apache 20 0 335m 3856 1768 S 0.0 0.4 0:00.06 10m httpd
3983 apache 20 0 335m 3852 1776 S 0.3 0.4 0:00.34 10m httpd
3980 apache 20 0 335m 3848 1776 S 0.0 0.4 0:00.12 10m httpd
4292 apache 20 0 335m 3848 2036 S 0.0 0.4 0:00.00 9m httpd
4241 apache 20 0 335m 3844 1872 S 0.0 0.4 0:00.05 9m httpd
4237 apache 20 0 335m 3840 1772 S 0.0 0.4 0:00.04 9m httpd
4280 apache 20 0 335m 3840 1824 S 0.0 0.4 0:00.00 9m httpd
4281 apache 20 0 335m 3836 1824 S 0.0 0.4 0:00.00 9m httpd
4282 apache 20 0 335m 3832 1828 S 0.0 0.4 0:00.00 9m httpd
4051 apache 20 0 335m 3828 1772 S 0.0 0.4 0:00.12 10m httpd
4246 apache 20 0 335m 3828 1876 S 0.0 0.4 0:00.03 9m httpd
3989 apache 20 0 335m 3824 1784 S 0.0 0.4 0:00.52 10m httpd
4228 apache 20 0 335m 3820 1768 S 0.0 0.4 0:00.02 9m httpd
4163 apache 20 0 335m 3816 1772 S 0.3 0.4 0:00.25 10m httpd
4229 apache 20 0 335m 3816 1772 S 0.0 0.4 0:00.07 9.9m httpd
4236 apache 20 0 335m 3816 1780 S 0.0 0.4 0:00.06 9m httpd
4086 apache 20 0 335m 3812 1772 S 0.0 0.4 0:00.11 10m httpd
4123 apache 20 0 335m 3808 1772 S 0.0 0.4 0:00.14 10m httpd
4266 apache 20 0 335m 3808 1856 S 0.0 0.4 0:00.00 9m httpd
fcgid configuration:
# vi /etc/httpd/conf.d/fcgid.conf
result:
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/run/mod_fcgid/sock
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidIdleTimeout 60
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 60
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
Inside my error.log I get these errors that say that server can't respond too much users. Which doesn't appeared before the update:
mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
Any help will greatly be appreciated.
I was using Plesk 11.5.30 Update #20
Last night at 03:00 it was updated to Update #28.
It updated my PHP version from 5.4.17 to 5.4.23.
And also other updates:
http://download1.parallels.com/Ples...1.5-linux-updates-release-notes.html#11530u28
After the Plesk update httpd (apache) started to kill my server.
In normal operation I was having 25-30 httpd process and it was using total 90-120 MB RAM.
You can check from image that httpd (apache) creates 120-150 processes and takes 400-600 MB RAM.
http://s14.postimg.org/rdqm1kryp/image.jpg
You can see that php-cgi's CPU usage increased from %20-23 to %65-75:
http://s27.postimg.org/jmbkrshyr/image.jpg
I use mod_fcgid and you can see my ```top``` results below:
top - 13:21:06 up 50 min, 1 user, load average: 6.44, 7.23, 7.51
Tasks: 314 total, 5 running, 309 sleeping, 0 stopped, 0 zombie
Cpu(s): 28.1%us, 58.1%sy, 0.0%ni, 2.2%id, 9.4%wa, 0.3%hi, 1.9%si, 0.0%st
Mem: 1020564k total, 949536k used, 71028k free, 45024k buffers
Swap: 2097144k total, 188832k used, 1908312k free, 98512k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND
2526 mysql 20 0 1909m 282m 2952 S 45.4 28.3 8:05.60 64m mysqld
3930 mywebsite 20 0 243m 35m 13m S 1.3 3.6 0:48.20 6076 php-cgi
4167 mywebsite 20 0 235m 29m 13m R 33.5 3.0 0:33.68 3984 php-cgi
4169 mywebsite 20 0 234m 29m 13m S 1.3 3.0 0:25.45 4104 php-cgi
4165 mywebsite 20 0 235m 29m 13m R 28.2 2.9 0:40.39 4372 php-cgi
4257 mywebsite 20 0 229m 28m 13m S 1.3 2.8 0:03.88 0 php-cgi
4208 mywebsite 20 0 232m 28m 13m S 5.6 2.8 0:19.10 2912 php-cgi
4258 mywebsite 20 0 229m 27m 13m R 26.8 2.8 0:20.09 0 php-cgi
4259 mywebsite 20 0 229m 27m 13m R 27.2 2.8 0:19.89 0 php-cgi
2709 root 20 0 835m 4232 804 S 0.0 0.4 0:23.40 3852 newrelic-daemon
4254 apache 20 0 335m 4000 1892 S 0.0 0.4 0:00.01 9m httpd
4291 apache 20 0 335m 3984 2008 S 0.0 0.4 0:00.00 9m httpd
4225 apache 20 0 336m 3960 1776 S 0.0 0.4 0:00.15 9m httpd
4044 apache 20 0 336m 3932 1776 S 0.0 0.4 0:00.14 10m httpd
4249 apache 20 0 335m 3924 1884 S 0.0 0.4 0:00.01 9m httpd
4255 apache 20 0 335m 3924 1884 S 0.0 0.4 0:00.01 9m httpd
4267 apache 20 0 335m 3916 1884 S 0.0 0.4 0:00.04 9m httpd
4265 apache 20 0 335m 3904 1880 S 0.0 0.4 0:00.00 9m httpd
4248 apache 20 0 335m 3888 1868 S 0.0 0.4 0:00.01 9m httpd
4285 apache 20 0 335m 3888 1876 S 0.0 0.4 0:00.00 9m httpd
4080 apache 20 0 336m 3880 1772 S 0.0 0.4 0:00.04 10m httpd
4244 apache 20 0 335m 3880 1876 S 0.0 0.4 0:00.01 9m httpd
4173 apache 20 0 335m 3868 1776 S 0.0 0.4 0:00.23 10m httpd
4278 apache 20 0 335m 3860 1868 S 0.0 0.4 0:00.00 9m httpd
4114 apache 20 0 335m 3856 1768 S 0.0 0.4 0:00.06 10m httpd
3983 apache 20 0 335m 3852 1776 S 0.3 0.4 0:00.34 10m httpd
3980 apache 20 0 335m 3848 1776 S 0.0 0.4 0:00.12 10m httpd
4292 apache 20 0 335m 3848 2036 S 0.0 0.4 0:00.00 9m httpd
4241 apache 20 0 335m 3844 1872 S 0.0 0.4 0:00.05 9m httpd
4237 apache 20 0 335m 3840 1772 S 0.0 0.4 0:00.04 9m httpd
4280 apache 20 0 335m 3840 1824 S 0.0 0.4 0:00.00 9m httpd
4281 apache 20 0 335m 3836 1824 S 0.0 0.4 0:00.00 9m httpd
4282 apache 20 0 335m 3832 1828 S 0.0 0.4 0:00.00 9m httpd
4051 apache 20 0 335m 3828 1772 S 0.0 0.4 0:00.12 10m httpd
4246 apache 20 0 335m 3828 1876 S 0.0 0.4 0:00.03 9m httpd
3989 apache 20 0 335m 3824 1784 S 0.0 0.4 0:00.52 10m httpd
4228 apache 20 0 335m 3820 1768 S 0.0 0.4 0:00.02 9m httpd
4163 apache 20 0 335m 3816 1772 S 0.3 0.4 0:00.25 10m httpd
4229 apache 20 0 335m 3816 1772 S 0.0 0.4 0:00.07 9.9m httpd
4236 apache 20 0 335m 3816 1780 S 0.0 0.4 0:00.06 9m httpd
4086 apache 20 0 335m 3812 1772 S 0.0 0.4 0:00.11 10m httpd
4123 apache 20 0 335m 3808 1772 S 0.0 0.4 0:00.14 10m httpd
4266 apache 20 0 335m 3808 1856 S 0.0 0.4 0:00.00 9m httpd
fcgid configuration:
# vi /etc/httpd/conf.d/fcgid.conf
result:
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/run/mod_fcgid/sock
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidIdleTimeout 60
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 60
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
</IfModule>
Inside my error.log I get these errors that say that server can't respond too much users. Which doesn't appeared before the update:
mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
Any help will greatly be appreciated.
Last edited: