jols

Well-Known Member
Mar 13, 2004
1,110
3
168
WHM has been reporting that the swap is between 95 and 100%

Currently:

[email protected] [~]# free -m
total used free shared buffers cached
Mem: 2007 1937 69 0 69 646
-/+ buffers/cache: 1220 786
Swap: 2000 1868 131


Looks like pretty normal stats (plenty of room in the buffer), except why is there so much swap used at this time? WHM says that the memory (ram) use is only 47%.

Anyone have a clue about this?

Thanks very much.
 

pjman

Well-Known Member
Mar 22, 2003
101
0
166
New York
Probably a spike

You most likely had a spike of some kind. Like a lot of traffic, or single traffic hog, or a run away script. I usually just restart APache and/or MYSQL and that way you'll see the amount the swap went down per service. The one that goes down the most was the primary cause. This way you can keep an eye on that service to figure it out.
 

jols

Well-Known Member
Mar 13, 2004
1,110
3
168
Thanks for the responses. I just did a reboot (hardware restart) and that reset swap. Was 94% or so, now it's back down to 14% or so.