Portal Home > Knowledgebase > Articles Database > Memory Used 98% - How can I tell?


Memory Used 98% - How can I tell?




Posted by aeroWebHost, 10-01-2010, 05:53 PM
How can I tell which sites are using all the memory? I deleted a site I wasnt using anymore and it took it down to 43% but now (a week later) it is back up to 98% used. I have a cPanel VPS. Thanks

Posted by forumtalk, 10-01-2010, 06:49 PM
you seen this 98% mem usage from CPanel right ? may be this will help you http://www.linuxjournal.com/article/2770

Posted by ldcdc, 10-01-2010, 08:00 PM
If forumtalk's right (and I think he is), then you didn't really have to turn that site off (if you did it to free up some memory). Post the output of the "free" command, and someone here will be able to judge the situation for you, if that article doesn't help enough. PS. I love the time stamp on that still so valid article: Jun 01, 1994

Posted by eldonate, 10-01-2010, 08:07 PM
looks like technology is still back to 1994 to be valid

Posted by aeroWebHost, 10-01-2010, 10:35 PM
I am very new to a vps, so I have no clue how to login using ssh and have no idea how to Post the output of the "free" command Whats a good ssh program? I heard putty was the best.

Posted by Dustin B Cisneros, 10-02-2010, 03:06 AM
run the command "top"

Posted by qtriangle, 10-02-2010, 03:18 AM
top is not available on some *nix OS by default. The alternative, and a better one: prstat

Posted by Dustin B Cisneros, 10-02-2010, 03:25 AM
I prefer "top" and it works for all linux OS as far as i know..

Posted by Erawan Arif Nugroho, 10-02-2010, 03:48 AM
Yes, as semoweb said, you can try to login to the VPS by : - Using Putty or Bitvise Tunellier - Use your root login, or the username you have - Wait until you're logged in, and at the #, type : top And then Enter This "top" command works on Debian, CentOS, and Ubuntu, and for another Linux OS Normally, you will get the system information, or running process that consume the VPS memory. You can also see the user or maybe something that running a high memory process For terminate the process, see the PID in the top command, press "q" for quit the "top", and run this : # kill pid For example : kill 932

Posted by aeroWebHost, 10-06-2010, 08:57 AM
Hey All, I appreciate the replies and help. When I put my IP into putty, I am getting Network Error: Connection refused. Any ideas of why I would be getting this?

Posted by potatoz, 10-06-2010, 09:00 AM
wrong ssh port or your blocked in the firewall

Posted by aeroWebHost, 10-06-2010, 09:02 AM
Where do you find what port you should use? Sorry for the dumb questions but I am very new to connecting via SSH

Posted by Erawan Arif Nugroho, 10-06-2010, 09:12 AM
For standar port, it may use Port 22. Except you have changed it to something else

Posted by aeroWebHost, 10-06-2010, 09:16 AM
I am using putty, and it shows port 22 on it, but it wont connect

Posted by potatoz, 10-06-2010, 09:17 AM
are you using the server IP?

Posted by aeroWebHost, 10-06-2010, 09:21 AM
Yes.. ......

Posted by aeroWebHost, 10-13-2010, 04:55 PM
Here is what is shows when I use the "top" command http://img199.imageshack.us/img199/4572/puttyh.png Attached Thumbnails  

Posted by El Nino, 10-13-2010, 05:54 PM
That RAM output looks good ok to me. Linux and Windows manage memory differently. If you have a lot of RAM used on Linux, that's not a bad thing. Their theory is pretty much, if it's not used it's wasted. With the load average being low, it looks ok, for now. What you don’t want is your swap being used regularly. I see you don’t have a swap partition defined. This is fine as long as you have enough RAM. If your server needs to use swap and you don't have any allocated, it has a very good chance of locking up and your load average go through the roof.

Posted by sysadm2, 10-14-2010, 12:06 AM
Since this is a VPS, it is ok not to have a separate swap partition. particular amount of burstable memory will be there for the VPS. You can have a better look at all this by executing the free -m command from the console.

Posted by akasharya, 10-14-2010, 12:53 AM
do a nmap query to your server's IP and then try to find out the port of ssh. I know it will not show exact port but can give you a rough idea. by the way do you have root user name and password?

Posted by David-, 10-14-2010, 06:31 AM
Login to SSH Type in the command 'top' and it will give you a list of sites using the most of the CPU. If your running cPanel, you can check your daily process log in Server Status. Both are good but top gives you the information as it is happening.

Posted by akasharya, 10-14-2010, 07:14 AM
run the command top and then press shift+m it will show you the process which is eating up all memory. from your top result it seems something with mysql so try to optimize mysql on your server.sometimes developers does not close the session so it can also be a reason.eanble slow query log in /etc/my.cnf.download mysqltuner.pl and run this on your server it will check you mysql configuration and will let you know if something is wrong. You can easily get tutorial for slow log query+mysqltuner.pl script after a google search.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
network usage (Views: 550)