Welcome! Log In Create A New Profile

Advanced

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

Brian
October 16, 2017 04:06PM
We should see memory and cpu for this server. I suspect a variety of issues.

Is php-fpm using a Unix socket with Nginx? That would help you remove tcp sockets internally.

This likely needs to be much higher but depends on your hardware, cpu/memory. Maybe 500?

pm.max_children = 50

The below setting should be commented out as I understand because you’re limiting your php threads to handle 2500 requests then die.
pm.max_requests = 2500 //modified

This likely needs much higher too:
net.core.somaxconn = 2048

I also wonder what the application is caching and how MySQL is doing. MySQL might need better tuning too.

Brian
(Sent via Mobile)

On Oct 16, 2017, at 2:04 PM, agriz <nginx-forum@forum.nginx.org> wrote:

worker_processes 4;
worker_rlimit_nofile 40000;

events {
worker_connections 4096;
# accept_mutex on;
# accept_mutex_delay 500ms;
multi_accept on;
use epoll;
}

pm.max_children = 50
pm.start_servers = 4
pm.min_spare_servers = 4
pm.max_spare_servers = 32
pm.max_requests = 2500 //modified
rlimit_files = 131072 //modified
rlimit_core = unlimited //modified

# TCP Stack changes
net.ipv4.tcp_fin_timeout = 20
net.ipv4.tcp_tw_reuse = 1
net.core.netdev_max_backlog = 10000
net.core.somaxconn = 2048
net.ipv4.tcp_max_syn_backlog = 2048
net.ipv4.ip_local_port_range = 15000 65000

But still not efficient.
Losing visitors abnormally

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276892,276900#msg-276900

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 16, 2017 12:37PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

Iurii Medvedev October 16, 2017 12:50PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 16, 2017 12:59PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

rsdrsd October 16, 2017 01:26PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 16, 2017 01:32PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

rsdrsd October 16, 2017 01:36PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 16, 2017 01:52PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

Iurii Medvedev October 16, 2017 02:20PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 16, 2017 03:04PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

pbooth October 16, 2017 03:32PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

pbooth October 16, 2017 03:36PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 16, 2017 03:55PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

pbooth October 16, 2017 11:50PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 17, 2017 12:39AM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

pbooth October 17, 2017 08:18PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

GreenGecko October 18, 2017 03:36AM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

Brian October 16, 2017 04:06PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 16, 2017 11:38PM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 17, 2017 01:31AM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 17, 2017 01:48AM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

agriz October 17, 2017 01:50AM

Re: E3-1240 with 32GB Ram - Unable to set the optimal value for the server

pbooth October 17, 2017 02:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 183
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