Thx Rahul. I’m trying to figure out what the problem is. I’m also suspecting it is triggered by some plugin or theme (I use Wordpress). This is the error in the nginx log when the CPU stays for a few minutes at 100%[error] 1230#0: *45952 recv() failed (104: Connection reset by peer) while reading response header from upstream
To finalize this tweek question I should keep the file sysctl.conf with “net.core.somaxconn = 4096” or increase to 65536?
Taking advantage of his vast knowledge in the area I have 2 more questions:
- I’m using m3.xlarge (15GB Ram and 4Vcpus) ->
http://www.ec2instances.info/?selected=m3.xlarge
This is my www.conf config:
include=/etc/php/5.6/fpm/pool.d/*.conf
[global]
pid = /run/php/php5.6-fpm.pid
error_log = /var/log/php5.6-fpm.log
;syslog.facility = daemon
;syslog.ident = php-fpm
log_level = notice
emergency_restart_threshold = 10
emergency_restart_interval = 1m
process_control_timeout = 10s
; process.max = 128
; process.priority = -19
daemonize = yes
;rlimit_files = 1024
;rlimit_core = 0
;events.mechanism = epoll
;systemd_interval = 10
In your opinion, should I continue with “dynamic” and increase or decrease these values or switch to “ondemand”? And what values would you recommend in ondemand?
- What is the best debugging plugin for Wordpress to clearly identify the source of my problem?
Ah! A curiosity: I’ve learned a lot from you and Nitun. I hired rtCamp to optimize an AWS server for me in july 2013.