Many linux users and new on linux users have an issue to know that which processes uses how much memory on his machine or on server, So they cant able to debug the memory issue on server
Here is the command which you can use to know that which services uses how much memory
ps -eo rss,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | egrep -v 0.00
One more thing that might helps if you found more memory usage
Here is Command for clear cache
sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"
Hope this helps !!
Cheers
Here is the command which you can use to know that which services uses how much memory
ps -eo rss,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | egrep -v 0.00
One more thing that might helps if you found more memory usage
Here is Command for clear cache
sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"
Hope this helps !!
Cheers