Welcome! Log In Create A New Profile

Advanced

Php5-fpm Crash if much visitors

Posted by chillah 
Php5-fpm Crash if much visitors
April 02, 2012 02:23PM
Hello together.

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 changed the workers connections to 3k but i dont know if it changed something...
Re: Php5-fpm Crash if much visitors
April 03, 2012 05:50PM
I think the childs or the prozesses do not restart after there were closed. Where i can change the time for them to expire?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready