Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2005
    Location
    Argentina
    Posts
    209

    how can i identify what is using my swap memory?

    Hi guys,


    i wanted to know if there is any specific way (maybe logs) to see what is using the swap memory of a dedicated server..


    its a server with 8GB ram.. it has 60% of memory used, and a constant swap memory usage of 30%.. i thought that in normal conditions swap memory was not used..

    its a centos / cPanel/WHM based server

    Thanks

  2. #2
    Join Date
    Jul 2002
    Location
    World Wide Web
    Posts
    1,632
    Quote Originally Posted by wiredhosting View Post
    it has 60% of memory used, and a constant swap memory usage of 30%..
    Is this from your cpanel or from your telnet TOP command?
    Michael Vlastos
    HostWired.com - Innovative Hosting Solutions since 2005 | cPanel, Softaculous
    Personalized support | No site suspensions | No overloaded servers | Green Hosting
    Multiple Backups | Average Response Time: 20 min | Toll Free: 1-855-ECO-HOST

  3. #3
    Hey

    If you're only using 60% of your actual memory, but it is displaying you are using swap, the issue is that probably at one point or another, your memory usage jumped to 100% and your server started using swap. To clear this, you just need to simply restart the machine. It's not a big deal actually, as it's not probably actually "swapping" since a machine will only use swap if it is out of memory. It is just reporting that it is. I'd say just wait for your next reboot, and then it will be gone.

    I'd also recommend installing something that will notify you when your memory usage goes above a certain point. That way you can see what the problem is as it is occurring and that way this does not happen again. It will allow you to put a stop to it before it gets out of hand.

  4. #4
    Join Date
    Jul 2005
    Location
    Argentina
    Posts
    209
    the thing is that the swap usage is not stable.. it goes from 20% to 30% so i guess that there is something running on backend using swap memory.. such as email script or something strange..

    maybe there was a log or way to see what was using swap memory.

  5. #5
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    2,875
    To find out how much a certain process is using of swap space, start top and when it loads, type the letter 'f', wait a second or two then type the letter 'p', hit enter. To order your list of processes by their use of swap, enter the letter 'F', then 'p', finally hit the enter key and then the letter 'W'. All letters are case sensitive.

    Best
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    [ cPanel Varnish Nginx Plugin ] - Enhance LiteSpeed and Apache Performance
    www.unixy.net - Los Angeles | Houston | Atlanta | Rotterdam
    Love to help pro bono (time permitting). joe > unixy.net

  6. #6
    Quote Originally Posted by wiredhosting View Post
    Hi guys,


    i wanted to know if there is any specific way (maybe logs) to see what is using the swap memory of a dedicated server..


    its a server with 8GB ram.. it has 60% of memory used, and a constant swap memory usage of 30%.. i thought that in normal conditions swap memory was not used..

    its a centos / cPanel/WHM based server

    Thanks
    My recommendation was because you said the swap usage was at a constant 30% which would leave me to believe that it is in fact not swapping. If it is not constant, aka not stable at 30%, then that can defiantly mean it is using swap.

  7. #7
    Join Date
    Dec 2006
    Posts
    477
    To find out how much a certain process is using of swap space, start top and when it loads, type the letter 'f', wait a second or two then type the letter 'p', hit enter. To order your list of processes by their use of swap, enter the letter 'F', then 'p', finally hit the enter key and then the letter 'W'. All letters are case sensitive.
    Only press W if you want to save that as a default setup.

    You may want to turn on the page faults column too which will show those processes where swapping is happening rather than long-term swap usage.

  8. #8
    Join Date
    Jul 2002
    Location
    World Wide Web
    Posts
    1,632
    Do you run SMF in your server? If yes, I have a script which can shows useful stats. Check it here: www.dpgr.gr/status.php
    Michael Vlastos
    HostWired.com - Innovative Hosting Solutions since 2005 | cPanel, Softaculous
    Personalized support | No site suspensions | No overloaded servers | Green Hosting
    Multiple Backups | Average Response Time: 20 min | Toll Free: 1-855-ECO-HOST

  9. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •