Author Topic: CPU 100% and IO Full Red  (Read 918 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CPU 100% and IO Full Red
« on: April 12, 2024, 06:40:10 AM »
My newly installed server justr went mad
all of a sudden the cpu and Disk IO are all in red cpu 100% Disk IO 99.5 filly used up

thwe server has only two accounts which hardly have any traffic

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
19881 root      20   0   58564   2188   1472 R  11.8  0.0   0:00.02 top
    1 root      20   0  191572   4612   2620 S   0.0  0.0   0:06.02 systemd
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kthreadd
    4 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:+
    5 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kworker/u4+

Can any one please offer a solution to this

thank you

Offline
*****
Re: CPU 100% and IO Full Red
« Reply #1 on: April 12, 2024, 12:43:34 PM »
Nothing there shows 100% CPU or high memory usage.

The top process (PID 19881) is only at 11.8% CPU

kworkers are multiple httpd instances, which is normal for a web server.

Offline
*****
Re: CPU 100% and IO Full Red
« Reply #2 on: April 12, 2024, 01:37:43 PM »
Watch your server with htop for a while to get a sense of your avg. CPU usage. Also install Netdata (under Graphs in CWP Admin) if you want to build graphs that show your CPU, memory, disk IO usage over time.

Offline
*
Re: CPU 100% and IO Full Red
« Reply #3 on: April 12, 2024, 02:13:57 PM »
Kindly look at this

https://pasteboard.co/K0PohO7ntKxr.jpg

the disk IO is completely used up and no site are loading the two sites on the server are too slow or fail to load at all

thank you
« Last Edit: April 12, 2024, 02:16:21 PM by tomexuk »

Offline
*****
Re: CPU 100% and IO Full Red
« Reply #4 on: April 12, 2024, 04:33:30 PM »
run iotop in a terminal, or use Netdata as I suggested.
Code: [Select]
sudo iotop -p PID

Offline
*****
Re: CPU 100% and IO Full Red
« Reply #5 on: April 13, 2024, 06:28:16 PM »
Kindly look at this

https://pasteboard.co/K0PohO7ntKxr.jpg

the disk IO is completely used up and no site are loading the two sites on the server are too slow or fail to load at all

thank you

Those 2 graphs are never accurate.

Run & past htop or mpstat from the CLI.

htop will show CPU Usage, and mpstat will also show Steal % if you are running a VPS.