The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Too much swap used?

Discussion in 'General Discussion' started by jols, Dec 3, 2006.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    WHM has been reporting that the swap is between 95 and 100%

    Currently:

    root@skyline [~]# 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.
     
  2. pjman

    pjman Well-Known Member

    Joined:
    Mar 22, 2003
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Whats your /etc/my.conf look like? Might need some tweaking?
     
  4. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    2
    Trophy Points:
    38
    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.
     
Loading...

Share This Page