Skip to main content

Not always starting enough PHP-FPM processes to handle load

Comments

1 comment

  • vicos

    This is what ChatGPT thinks:

    What I suspect is happening

    You likely have:

    • many slow bot connections
    • prefork workers consumed waiting
    • MaxRequestWorkers exhausted
    • Apache stops accepting useful traffic
    • PHP-FPM mostly idle
    • CPU low because workers are blocked in network I/O

    That’s textbook prefork saturation.


    My recommended order

    Highest impact

    1. Switch to event MPM
    2. Set KeepAliveTimeout 1
    3. Enable RequestReadTimeout
    4. Add Cloudflare
    5. Add mod_evasive or fail2ban

    Those 5 together usually transform this exact situation.

    I know you can't always trust their solution, so I'll wait for some in put here. 

    0

Please sign in to leave a comment.