网络服务器没有响应 - 不知道出了什么问题

网络服务器没有响应 - 不知道出了什么问题
Server version: Apache/2.4.29 (Ubuntu)
Linux pinf-vps 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64
PHP Version 7.1.10-1+ubuntu16.04.1+deb.sury.org+1 (php-fpm)
Ubuntu 16.04.1
8GB RAM, 4 cores (Azure A4_V2)

Apache 有时没有反应。我托管了几个网站,但它们的流量并不大。我首先认为这可能是由 MySQL 引起的,但它有时会影响不使用 MySQL 的网站。

我不知道是什么原因导致了这个问题。网页会挂起 5 - 120 秒,这太长了。有时它 20 分钟都没有响应。有时只有基于 MySQL 的网页(使用 Wordpress,顺便说一句:相同的 WP 页面在其他主机上运行得很快)

ulimit -a

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 31742
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 31742
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

我可以发布各种命​​令的输出。这让我抓狂。一开始我以为是 DDOS,但我错了。我该怎么做才能修复它?

EDIT: It was down for some time now, I have the logs:
[Wed Oct 25 05:05:03.192874 2017] [proxy_fcgi:error] [pid 16511:tid 140363339585280] [client **.**.253.4:22300] AH01071: Got error 'Primary script unknown\n'
[Wed Oct 25 05:40:38.481107 2017] [proxy_fcgi:error] [pid 16511:tid 140363490653952] (70007)The timeout specified has expired: [client 192.0.91.177:24513] AH01075: Error dispatching request to : (polling)
[Wed Oct 25 05:41:11.587027 2017] [proxy_fcgi:error] [pid 16510:tid 140363457083136] (70007)The timeout specified has expired: [client 210.4.124.13:18651] AH01075: Error dispatching request to : (polling)
[Wed Oct 25 05:41:48.509292 2017] [proxy_fcgi:error] [pid 16510:tid 140363490653952] (70007)The timeout specified has expired: [client 210.4.124.13:18703] AH01075: Error dispatching request to : (polling)
[Wed Oct 25 05:43:20.751238 2017] [proxy_fcgi:error] [pid 16510:tid 140363599685376] (70007)The timeout specified has expired: [client 192.0.91.61:27200] AH01075: Error dispatching request to : (polling), referer: https://www.**********.**/xmlrpc.php?for=jetpack&token=**************%3A1%3A1&timestamp=1508902698&nonce=orjewRjNCU&body-hash=****************&signature=**************
[Wed Oct 25 06:05:03.605511 2017] [proxy_fcgi:error] [pid 16511:tid 140363465475840] [client 92.240.253.4:62965] AH01071: Got error 'Primary script unknown\n'
[Wed Oct 25 06:25:07.270569 2017] [mpm_event:notice] [pid 16507:tid 140364126173056] AH00493: SIGUSR1 received.  Doing graceful restart
[Wed Oct 25 06:25:08.159906 2017] [so:warn] [pid 16507:tid 140364126173056] AH01574: module http2_module is already loaded, skipping

相关内容