High CPU usage by Nginx is shown in Health Monitor

Follow

Comments

6 comments

  • Avatar
    Pitt Hitt

    nothing changed for me

    0
    Comment actions Permalink
  • Avatar
    Ivan Kamnev

    Hello Pitt Hitt,

    In case the issue persists after applying the steps above, could you please submit a request to Plesk support that we can check this case

     

    0
    Comment actions Permalink
  • Avatar
    Ananda

    I have the same problem, and nothing changed after increasing it... is there any other solution for this problem?

    0
    Comment actions Permalink
  • Avatar
    Andrey Fedorov (Edited )

    Try this:

    sudo nano /lib/systemd/system/nginx.service

    #ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid 
    ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5/TERM/5/KILL/5 --pidfile /run/nginx.pid

    sudo systemctl daemon-reload

    sudo service nginx restart

     

    Also add to nginx.conf:

    worker_shutdown_timeout 5

    (or 10/15...)

    0
    Comment actions Permalink
  • Avatar
    Christopher Mulholland

    Nothing changes after updating worker process in nginx.conf file

    The updated nginx.conf file shows 

    events {

        worker_connections  6144;

    }

    If i run 

    ulimit -n

    Output still shows 1024

    0
    Comment actions Permalink
  • Avatar
    Ivan Kamnev

    Hello @Christopher Mulholland,

    The "ulimit -n" command shows the configured limit for open files, it is not related to the worker_connections Nginx directive. 

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request