• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Resolved Warning: The swap usage status is critical!

Azurel

Silver Pleskian
I received this plesk email today:
The swap usage status is critica!
The current value is 3.6 GiB.
My server have 128 GB RAM
unknown.png

Then why does he use "swap" so much?

#free -m
unknown.png


CentOS Linux 8.4.2105

EDIT:
I used
# swapoff -a && swapon -a
and now its 0K/4G
If anyone wants to do this as well, it may take time. With me almost 1 hour. In a second console window you can watch the swap as it decreases.
 
Last edited:
I would not call it "normal". Swap is hard disk and it should not read almost 4GB of data from hard disk, instead it should be in RAM. ;)
If there is RAM available, why does it use swap?
 
There is RAM available, but there is very little RAM free because it's all used for buffers and cache. So the kernel swaps out stuff that has not been used for a while in favor of having more buffer/cache. You will only see zero swap usage if you have more RAM than the size of your file data set.

Check with vmstat. You will see that si and so are zero, swap usage is quasi-static.
 
Back
Top