Welcome to Centmin Mod Community
Become a Member

PHP-FPM PHP-FPM tuning help!

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by KinderOvO, Nov 12, 2019.

  1. KinderOvO

    KinderOvO Member

    88
    1
    8
    Jan 13, 2015
    Ratings:
    +1
    Local Time:
    6:25 AM
    1.4
    10
    Hi, I have a 3900x / 64GB memory / 1TB NVME RAID 1 server.

    I'm having php-fpm slowdown issues currently I use the following configs.

    pm = ondemand
    pm.max_children = 30
    pm.start_servers = 8
    pm.min_spare_servers = 4
    pm.max_spare_servers = 12
    pm.max_requests = 5000

    and nginx worker_processes auto i use auto like this

    user nginx nginx;
    worker_processes auto;
    worker_cpu_affinity auto;
    worker_priority -10;

    events {
    worker_connections 100000;
    accept_mutex off;
    accept_mutex_delay 200ms;
    use epoll;
    #multi_accept on;
    }


    how could i better, is there much difference between ondemand and dynamic?
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,262
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    6:25 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. rdan

    rdan Well-Known Member

    4,731
    1,144
    113
    May 25, 2014
    Ratings:
    +1,708
    Local Time:
    4:25 AM
    Mainline
    10.2