[1] _______________________________________________ nginx mailing list nginx at [1] -- Steve Wilson IT Team Leader - Pirate Party UK Open DNS 2012 Sysadmin Awards: Flying Solo - Winner 44.7751874508 Pirate Party UK is a political party registered with the Electoral Commission.

I have my proxy handler to create the right request format and process headers etc.

The trouble started when I started using keepalive handler.?

This site is running money transactions applications so is it safe to change this option.

Also to this mysql server other servers with default nginx and PHP5-fpm configuration is connecting it and they don't have such issues. We are using separate mysql server and in this innodb_flush_log_at_trx_commit = 1.

In middle when we restart either nginx or php5-fpm it will load.

Our configurations are as follows: /etc/nginx/nginx.conf: user www-data; worker_processes 1; pid /run/nginx.pid; worker_rlimit_nofile 400000; events http { access_log off; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 2; types_hash_max_size 2048; server_tokens off; keepalive_requests 100000; reset_timedout_connection on; port_in_redirect off; client_max_body_size 10m; proxy_connect_timeout 600s; proxy_send_timeout 600s; proxy_read_timeout 600s; fastcgi_send_timeout 600s; fastcgi_read_timeout 600s; open_file_cache max=200000 inactive=20s; open_file_cache_valid 30s; open_file_cache_min_uses 2; open_file_cache_errors on; /etc/php5/fpm/pool.d/pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 ;pm.process_idle_timeout = 10s; ;pm.max_requests = 200 request_terminate_timeout = 300s And please see the added contents in /etc/########################## fs.file-max = 150000 netdev_max_backlog=32768 optmem_max=20480 #rmem_default=65536 #rmem_max=16777216 somaxconn=50000 #wmem_default=65536 #wmem_max=16777216 net.ipv4.tcp_fin_timeout=120 #net.ipv4.tcp_keepalive_intvl=30 #net.ipv4.tcp_keepalive_probes=3 #net.ipv4.tcp_keepalive_time=120 net.ipv4.tcp_max_orphans=262144 net.ipv4.tcp_max_syn_backlog=524288 net.ipv4.tcp_max_tw_buckets=524288 #net.ipv4.tcp_mem=1048576 1048576 2097152 #net.ipv4.tcp_no_metrics_save=1 net.ipv4.tcp_orphan_retries=0 #net.ipv4.tcp_rmem=4096 16384 16777216 #net.ipv4.tcp_synack_retries=2 net.ipv4.tcp_syncookies=1 #net.ipv4.tcp_syn_retries=2 #net.ipv4.tcp_wmem=4096 32768 16777216 ########################## Can anyone please help us on it.Generally all sites are loading fine but sometimes we are unable to access any sites.After waiting for 10mts we are getting a 502 gateway timeout error.Debug symbols are included by default for all supported compilers regardless of configure options.If desired, they can be stripped later using strip(1). In the event-based server it's not a good idea to call abort(), as it will affect multiple connections handled in the same process.Also note, that allocation of connection pool is just a one small allocation, that nginx does during request processing among number of allocations of various buffers. Bartenev From jefftk at Wed Apr 9 2014 From: jefftk at (Jeff Kaufman) Date: Wed, -0400 Subject: expected behavior of --with-debug Message-ID: In ngx_pagespeed we interpret --with-debug to mean "include debugging symbols and debug-only assertions". (We distribute two precompiled versions of PSOL, "debug" and "release", and we've been using --with-debug to switch between them.