Results 1 to 8 of 8
-
04-19-2009, 01:52 PM #1Junior Guru
- Join Date
- Jul 2005
- Location
- Argentina
- Posts
- 248
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
-
04-19-2009, 01:57 PM #2NetDynamics LLC - One-stop Solution for Hosting Needs
We love Backups! Backup storage for your server backups
-
04-19-2009, 01:57 PM #3Disabled
- Join Date
- Sep 2005
- Location
- A box
- Posts
- 2,051
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.
-
04-19-2009, 02:02 PM #4Junior Guru
- Join Date
- Jul 2005
- Location
- Argentina
- Posts
- 248
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.
-
04-19-2009, 02:18 PM #5Corporate Member
- Join Date
- Feb 2008
- Location
- Houston, Texas, USA
- Posts
- 3,262
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.
BestUNIXy - Fully Managed Servers and Clusters - Established in 2006
Server Management - Unlimited Servers. Unlimited Requests. One Plan!
cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy
-
04-19-2009, 02:30 PM #6Disabled
- Join Date
- Sep 2005
- Location
- A box
- Posts
- 2,051
-
04-19-2009, 02:34 PM #7Web Hosting Evangelist
- Join Date
- Dec 2006
- Posts
- 480
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.
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.
-
04-19-2009, 02:36 PM #8
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
NetDynamics LLC - One-stop Solution for Hosting Needs
We love Backups! Backup storage for your server backups