Welcome! Log In Create A New Profile

Advanced

Re: High CPU Usage and NGINX Hangup

Yichun Zhang (agentzh)
March 05, 2014 12:18AM
Hello!

On Mon, Mar 3, 2014 at 9:07 PM, loki wrote:
> I am seeing my NGINX server randomly hangup. Multiple worker processes
> utilizing 100% CPU.

100% CPU occupancy usually happen on the userland code, so strace is
usually not help by providing info on the syscall level.

It'll be ideal if you can take a C-land on-CPU flame graph for your
worker processes spining at 100% CPU time, which will give the whole
picture about how CPU time is distributed among all the code paths:

https://github.com/agentzh/nginx-systemtap-toolkit#sample-bt

We've been using this to analyse and optimize CPU hogs in our
production environment, and not just for NGINX but for everything that
we can get proper backtraces :)

Best regards,
-agentzh

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

High CPU Usage and NGINX Hangup

loki March 04, 2014 12:07AM

Re: High CPU Usage and NGINX Hangup

loki March 04, 2014 11:18PM

Re: High CPU Usage and NGINX Hangup

Yichun Zhang (agentzh) March 05, 2014 12:18AM

Re: High CPU Usage and NGINX Hangup

Igor Sysoev March 05, 2014 02:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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