• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue after the plesk installation my cpu utilization 99%

ramup

New Pleskian
top - 19:47:46 up 6 days, 1:13, 2 users, load average: 32.10, 32.20, 32.16
Tasks: 413 total, 1 running, 412 sleeping, 0 stopped, 0 zombie
%Cpu(s): 99.9 us, 0.1 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 13179257+total, 10435160+free, 23533640 used, 3907324 buff/cache
KiB Swap: 1046520 total, 1046520 free, 0 used. 10716766+avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16266 root 20 0 8892864 3416 748 S 3187 0.0 7035:47 kswapd0
1682 root 20 0 2095076 32468 5096 S 1.0 0.0 54:52.22 fail2ban-server
22626 psaadm 20 0 505584 23760 13468 S 1.0 0.0 1:17.27 sw-engine-fpm
241 root 20 0 0 0 0 S 0.3 0.0 9:27.34 kworker/31:1
1626 nydus 20 0 1130440 38956 6196 S 0.3 0.0 25:44.03 nydus-ex-api
2305 root 20 0 0 0 0 S 0.3 0.0 1:14.76 kworker/11:2
2461 mysql 20 0 1431880 115192 9500 S 0.3 0.1 31:26.51 mysqld
2861 root 20 0 0 0 0 S 0.3 0.0 0:00.07 kworker/8:1
2866 ramup 20 0 162364 2564 1572 R 0.3 0.0 0:00.24 top
2876 root 20 0 0 0 0 S 0.3 0.0 0:00.05 kworker/10:0
3272 root 20 0 5149180 30452 7924 S 0.3 0.0 3:15.03 PassengerAgent
3668 grafana 20 0 2636364 64452 18060 S 0.3 0.0 15:01.55 grafana-server
6684 root 20 0 0 0 0 S 0.3 0.0 2:29.15 kworker/18:1
9911 root 20 0 0 0 0 S 0.3 0.0 0:18.81 kworker/0:1
10214 root 20 0 0 0 0 S 0.3 0.0 7:05.19 kworker/30:2
13498 root 20 0 0 0 0 S 0.3 0.0 0:20.19 kworker/17:0
13684 root 20 0 0 0 0 S 0.3 0.0 0:18.21 kworker/14:2
14979 root 20 0 0 0 0 S 0.3 0.0 0:18.23 kworker/15:2
24801 root 20 0 0 0 0 S 0.3 0.0 0:21.38 kworker/19:0
28630 root 20 0 0 0 0 S 0.3 0.0 0:06.33 kworker/3:2
29340 root 20 0 0 0 0 S 0.3 0.0 0:01.25 kworker/20:1
31843 root 20 0 0 0 0 S 0.3 0.0 0:03.29 kworker/29:2
32723 root 20 0 0 0 0 S 0.3 0.0 0:02.50 kworker/9:1
1 root 20 0 194120 7236 4216 S 0.0 0.0 3:01.44 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.87 kthreadd
4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
6 root 20 0 0 0 0 S 0.0 0.0 0:02.06 ksoftirqd/0
7 root rt 0 0 0 0 S 0.0 0.0 0:00.25 migration/0
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
9 root 20 0 0 0 0 S 0.0 0.0 5:46.10 rcu_sched
10 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 lru-add-drain
11 root rt 0 0 0 0 S 0.0 0.0 0:02.21 watchdog/0
12 root rt 0 0 0 0 S 0.0 0.0 0:01.83 watchdog/1
13 root rt 0 0 0 0 S 0.0 0.0 0:00.02 migration/1
14 root 20 0 0 0 0 S 0.0 0.0 0:00.23 ksoftirqd/1
16 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/1:0H
18 root rt 0 0 0 0 S 0.0 0.0 0:01.78 watchdog/2
 
Hi,

It is really hard to read. It is a sorted list by CPU usage? I do not understand why kswapd0 uses a lot of CPU resources (the first line).
E.g.: the same questions about Ubuntu: kswapd0 is taking a lot of cpu

Code:
top - 19:47:46 up 6 days, 1:13, 2 users, load average: 32.10, 32.20, 32.16
Tasks: 413 total, 1 running, 412 sleeping, 0 stopped, 0 zombie
%Cpu(s): 99.9 us, 0.1 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 13179257+total, 10435160+free, 23533640 used, 3907324 buff/cache
KiB Swap: 1046520 total, 1046520 free, 0 used. 10716766+avail Mem


PID    USER    PR    NI    VIRT    RES    SHR    S    %CPU    %MEM    TIME+    COMMAND
16266  root    20    0     8892864 3416   748    S    3187    0.0     7035:47  kswapd0
1682   root    20    0     2095076 32468 5096    S    1.0     0.0     54:52.22 fail2ban-server
22626  psaadm  20    0     505584  23760 13468   S    1.0     0.0     1:17.27  sw-engine-fpm
[...]

---

It could be helpful to understand what OS/version and what Plesk/version are used here... possible it is not Plesk related issue.
 
Without more information from the OP, this doesn't appear to be a Plesk-related issue but could be either a low memory problem causing process to use SWAP or an unmitigated process.
 
Hi,

It is really hard to read. It is a sorted list by CPU usage? I do not understand why kswapd0 uses a lot of CPU resources (the first line).
E.g.: the same questions about Ubuntu: kswapd0 is taking a lot of cpu

Code:
top - 19:47:46 up 6 days, 1:13, 2 users, load average: 32.10, 32.20, 32.16
Tasks: 413 total, 1 running, 412 sleeping, 0 stopped, 0 zombie
%Cpu(s): 99.9 us, 0.1 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 13179257+total, 10435160+free, 23533640 used, 3907324 buff/cache
KiB Swap: 1046520 total, 1046520 free, 0 used. 10716766+avail Mem


PID    USER    PR    NI    VIRT    RES    SHR    S    %CPU    %MEM    TIME+    COMMAND
16266  root    20    0     8892864 3416   748    S    3187    0.0     7035:47  kswapd0
1682   root    20    0     2095076 32468 5096    S    1.0     0.0     54:52.22 fail2ban-server
22626  psaadm  20    0     505584  23760 13468   S    1.0     0.0     1:17.27  sw-engine-fpm
[...]

---

It could be helpful to understand what OS/version and what Plesk/version are used here... possible it is not Plesk related issue.

Thanks for reply.

Version of Centos 7 -
3.10.0-1127.19.1.el7.x86_64
 
Your OS seems to be configured to use swap before RAM is exhausted. Please check your vm.swappiness parameter setting in your OS. It should be zero or close to zero. If it is anywhere close to 100 this can cause constant swap usage, because that would instruct your OS to prefer swap over RAM.
 
Your OS seems to be configured to use swap before RAM is exhausted. Please check your vm.swappiness parameter setting in your OS. It should be zero or close to zero. If it is anywhere close to 100 this can cause constant swap usage, because that would instruct your OS to prefer swap over RAM.
Thanks Peter for the reply.

You can see swap ram not used.
 

Attachments

  • Free -m.png
    Free -m.png
    43.6 KB · Views: 13
Why it utilized 10g of VIRT memory? if it started with a system, why PID of kswapd0 more than `top` ("9422")? Is it a real kswapd0 process? Could it be some kind of malware?

An example from one of my test servers; there is swap but I could not find the kswapd0 process...
Code:
# plesk version
Product version: Plesk Obsidian 18.0.[...]
     OS version: CentOS 7.6.1810 x86_64
[...]

# uname -a
Linux [...] 3.10.0-042stab139.1 #1 SMP Tue Jun 18 12:51:14 MSK 2019 x86_64 x86_64 x86_64 GNU/Linux

# free -m
              total        used        free      shared  buff/cache   available
Mem:           3072        1252        1083         261         735        1682
Swap:           512         132         379

# ps ax | grep swap | grep -v grep
#



Updated:
It seems I was a little bit wrong because my test server works in a virtualized environment. Here is info from another server:
Code:
# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

# free -m
              total        used        free      shared  buff/cache   available
Mem:            485          66         274           8         145         373
Swap:             0           0           0

# ps ax | grep swap | grep -v grep
   32 ?        S      0:00 [kswapd0]
 2569 ?        S<     0:00 [ttm_swap]

# top
Tasks:  87 total,   1 running,  86 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :   497116 total,   280956 free,    67772 used,   148388 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   382680 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND               
[...]           
   32 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kswapd0
 
Last edited:
Back
Top