Apache2 slows down the entire server.
Posted: Sat Jun 20, 2020 9:40 am
Hello, I have a server on Ubuntu 16.04 from Vesta CP. Lately my server is constantly hanging up because Apache2 is taking over all CPU resources. Rebooting Apache2 from the panel does not help, the problem is temporarily solved only by fully rebooting the server. There are only 4 simple WordPress sites on the server itself, and hardly anyone visits them.
Code: Select all
top - 11:05:11 up 4 days, 18:27, 1 user, load average: 1.00, 1.01, 1.00
Tasks: 183 total, 2 running, 181 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.2 us, 1.8 sy, 0.0 ni, 97.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 7945548 total, 2864276 free, 707620 used, 4373652 buff/cache
KiB Swap: 1003516 total, 1003516 free, 0 used. 6700672 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
135884 www-data 20 0 162008 11128 1732 R 100.0 0.1 494:50.11 apache2
351 root 20 0 0 0 0 S 6.7 0.0 0:20.55 jbd2/dm-0+
1 root 20 0 38168 6260 4052 S 0.0 0.1 0:26.65 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.11 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:02.87 ksoftirqd+
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0+
7 root 20 0 0 0 0 S 0.0 0.0 1:23.40 rcu_sched
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
9 root rt 0 0 0 0 S 0.0 0.0 0:01.77 migration+
10 root rt 0 0 0 0 S 0.0 0.0 0:01.88 watchdog/0
11 root rt 0 0 0 0 S 0.0 0.0 0:01.82 watchdog/1
12 root rt 0 0 0 0 S 0.0 0.0 0:01.82 migration+
13 root 20 0 0 0 0 S 0.0 0.0 0:02.66 ksoftirqd+
15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1+
16 root rt 0 0 0 0 S 0.0 0.0 0:01.89 watchdog/2
17 root rt 0 0 0 0 S 0.0 0.0 0:01.66 migration+
18 root 20 0 0 0 0 S 0.0 0.0 0:02.37 ksoftirqd+
20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/2+
21 root rt 0 0 0 0 S 0.0 0.0 0:01.84 watchdog/3
22 root rt 0 0 0 0 S 0.0 0.0 0:01.82 migration+
23 root 20 0 0 0 0 S 0.0 0.0 0:02.56 ksoftirqd+
25 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/3+
26 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
27 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
28 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 perf
29 root 20 0 0 0 0 S 0.0 0.0 0:00.22 khungtaskd
30 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback
31 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd
32 root 39 19 0 0 0 S 0.0 0.0 0:02.31 khugepaged
33 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto