Php5-fpm Crash if much visitors

Posted by chillah on Server Fault See other posts from Server Fault or by chillah
Published on 2012-04-03T21:29:33Z Indexed on 2012/04/03 23:31 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

I decided to change my OP to Nginx from Litespeed because i read much about the low resource that Nginx would cost.

Im running a Wordpress site with 500 users online

My www.conf in "/etc/php5/fpm/pool.d"

pm.max_children = 200

pm.start_servers = 20

pm.min_spare_servers = 20

pm.max_spare_servers = 60

;pm.process_idle_timeout = 10s;

;pm.max_requests = 1000

Since i changed that config to higher requests and more children the Site needs longer till it shows me a White blank page. If i restart the php5-fpm prozess then, the site is running fine again. The CPU usage is at 5% if the php5-fpm is crashed and if its running its about 20 to 90%!

Heres my Nginx.conf:

user www-data;
worker_processes 2;
pid /var/run/nginx.pid;

events {
worker_connections 3048;
# multi_accept on;
}

http {

##
# Basic Settings
##

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;

I already tried changing the settings, tryed all variants but nothing worked.

The Mashine: Dualcore 4gb ram

© Server Fault or respective owner

Related posts about php

Related posts about nginx