Re: httpd 2.4 CPU spike after graceful restart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 3, 2021 at 6:23 AM Jay Ce <jceh12021@xxxxxxxxx> wrote:
>
> Hi,
>
> I noticed that sometimes when performing a graceful restart of httpd, the CPU of the httpd process spikes and does not come down. This happens more frequently if the web server is under load but can happen even when not serving traffic. Has anyone else encountered this problem? And what can I do to resolve this?
>
> I did not notice any error messages in the error log and only see the following:
> Sat May 29 03:33:01.424748 2021] [mpm_worker:notice] [pid 2773:tid 140527163445824] AH00297: SIGUSR1 received.  Doing graceful restart
> AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
> [Sat May 29 03:33:01.485368 2021] [http2:warn] [pid 2773:tid 140527163445824] AH02951: mod_ssl does not seem to be enabled
> [Sat May 29 03:33:01.485953 2021] [mpm_worker:notice] [pid 2773:tid 140527163445824] AH00292: Apache/2.4.46 () configured -- resuming normal operations
> [Sat May 29 03:33:01.485964 2021] [core:notice] [pid 2773:tid 140527163445824] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
> [Sat May 29 03:33:01.486045 2021] [mpm_worker:warn] [pid 2773:tid 140527163445824] AH00291: long lost child came home! (pid 25489)
>
>
> From performing a top
> top - 17:44:22 up 5 days, 16:04,  1 user,  load average: 7.00, 7.13, 8.27
> Threads: 384 total,   8 running, 316 sleeping,   0 stopped,   1 zombie
> %Cpu(s): 99.8 us,  0.2 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
> KiB Mem :  7807268 total,  4124256 free,   543316 used,  3139696 buff/cache
> KiB Swap:  1310716 total,  1310716 free,        0 used.  6949164 avail Mem
>
>   PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
> 23677 apache    20   0 2293264   7524   4148 R 58.6  0.1   4582:47 httpd
> 23664 apache    20   0 2293264   7524   4148 R 58.2  0.1   4581:57 httpd
> 23636 apache    20   0 2293264   7524   4148 R 57.6  0.1   4582:16 httpd
> 23660 apache    20   0 2293264   7524   4148 R 57.2  0.1   4580:51 httpd
> 23698 apache    20   0 2293264   7524   4148 R 56.6  0.1   4582:17 httpd
> 23648 apache    20   0 2293264   7524   4148 R 55.9  0.1   4580:52 httpd
> 23668 apache    20   0 2293264   7524   4148 R 53.9  0.1   4581:23 httpd
>     1 root      20   0  128600   8592   5524 S  0.0  0.1   6:02.91 systemd
>

Can you get backtraces from a few such process with "pstack" or gdb?

https://httpd.apache.org/dev/debugging.html#backtrace

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux