How to find out which sources are consuming the most RAM?

Chris Worner

Well-known member
Registered
Joined
Apr 15, 2016
Messages
612
Points
28
Is there a way to find out which sources are consuming the most RAM on my server or which parts of websites are consuming too much RAM from my hosting server? I checked free -m in SSH and my server is just having 6% of free RAM, I need to free up my RAM, if no my websites can not run or will be downed. Can any one help me?
 

AdrianG001

Member
Registered
Joined
Jul 25, 2019
Messages
41
Points
8
Is there a way to find out which sources are consuming the most RAM on my server or which parts of websites are consuming too much RAM from my hosting server? I checked free -m in SSH and my server is just having 6% of free RAM, I need to free up my RAM, if no my websites can not run or will be downed. Can any one help me?
Most of the Big IT companies prefer using Nagios or Zabbix for monitoring the resources of thier web server. This helps them to check the traffic and the corresponding load on CPU. It also monitors the busy and idle threads and find out where improvements can be made. The stats provided about the load balancer will give you the exact idea of which part or resource of your website consumes major part.


Regards,
Adrian
 

bountysite

Well-known member
Registered
Joined
Oct 11, 2017
Messages
109
Points
28
top / htop : then press M to sort by memory consumption descending, will show you the top memory consuming process.

Try free Icinga2 to monitor services.
netdata(live) + graphite(archive) for system stats monitoring.
 

serveria

Member
Registered
Joined
Dec 7, 2019
Messages
36
Points
8
I second the top/htop way - nagyos/zabbix are too complicated for single-server config. OP just needs to check what's consuming his RAM.
 

tuxandrew

Well-known member
Registered
Joined
Aug 19, 2012
Messages
126
Points
18
In such cases of resource consumption, first option is to run a 'top -c' command to view the current dynamic process and their resource usage status.
Check the PID , %MEM , USER and COMMAND section of the result of the top process to see which process under which user is consuming more memory.

You can kill that process using the command:
~$ kill -9 <PID>
 
Latest Threads
Replies
0
Views
123
Replies
1
Views
79

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top