• Resolved joydipkar73

    (@joydipkar73)


    Whenever I click on media library or try to view any image your plugin suddenly creates thousands of php-fpm processes and those does not die even after the browser tab is closed.
    The CPU load becomes enormously high takes an hour to settle down. My whole VPS goes down for the long time.
    Please suggest.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Sounds like an incorrect configuration of your VPS.
    A “normal” hosting setup will never allow unlimited or such huge number of php workers.
    Typically it’s limited to just a few dozen of workers to be spawning and also kill them if they timeout.
    Seems like your hosting configuration is set to go beyong a reasonable limit and that is causing the culprit as your server allows it to go run forever.

    A phpfpm configuration should look something in these lines (by default):

    pm = dynamic
    pm.max_children = 16
    pm.start_servers = 8
    pm.min_spare_servers = 2
    pm.max_spare_servers = 8

    You can use calculators like the one below to tweak it better according to your server resources.
    https://spot13.com/pmcalculator/
    https://chrismoore.ca/2018/10/finding-the-correct-pm-max-children-settings-for-php-fpm/

    Plugin Support Rafi Alam

    (@raficode)

    Hi @joydipkar73 ,

    Can you give us more details about this issue?

    Since it is a server-related issue, the more information you provide, it will help us assess the issue faster.

    Let me know.

    Thank you.

    Plugin Support Rafi Alam

    (@raficode)

    Hi @joydipkar73 ,

    We haven’t heard anything from you in a while.

    I hope your issue is resolved.

    Let us know if you’re still facing the issue.

    Thanks.

    Plugin Support Rafi Alam

    (@raficode)

    Hi @joydipkar73 ,

    Since we haven’t heard anything from you in a while, we’re now closing this thread.

    You’re always welcome to open another thread if you face any more issues with our plugin.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘High CPU usage’ is closed to new replies.