Hello, again now i want to share some tutorial about how to monitoring resource on centos 6, this tutorial is very common, i got this from a few source, a few of them i got from tecmint.com, you can check it there for more information and of course there are much usefull information, you must visit there.
What is monitoring running process?? in windows, we usually use task manager to see what is running on our system, but in centos, we have a few similar tool like task manager too, but if you only use terminal there are a few script or command to show what running on your system.
Sometimes we got our VPS running slow, and you must check on control panel in website for how much our memory is being used or how high our processor load, it not necessary, it wasting time of course, cause centos has built in tools to check memory usage and processor usage to, and the important things is we must know, if is there any other user using our VPS or no, because sometimes we dont know who are using our VPS, and what is application that our user running.
1. Some cool stuff from Tecmint.com (Post by AVISHEK KUMAR)
This stuff has great view, i like this too, and sometimes i used it too, it has many information about our VPS, to install it, follow this step, open your terminal, and type :
Dependency
There is no dependency required to use this package for a standard Linux Distribution. Moreover the script don’t requires root permission for execution purpose. However if you want to Install it, you need to enter root password once. (original statement from tecmint.com)
Security
Have taken care to ensure security of the system. Nothing additional package is required/installed. No root access required to run. Moreover code has been released under Apache 2.0 License, that means you are free to edit, modify and re-distribute by keeping Tecmint copyright. (original statement from tecmint.com)
wget http://tecmint.com/wp-content/scripts/tecmint_monitor.sh
chmod 755 tecmint_monitor.sh./tecmint_monitor.sh -i
monitor
2. Top (Built-in centos 6 monitor)
If you need more spesific about what is PID of running process, the user who running the application, how many resource used by application, etc you just type :
top
3. ps -eLf
To use this, you don't need to install anything, just type it, this will show you history of running process by user and also what command that user type to run script, use this if you have unknown user in your system.
ps -elf
4. atop
This is similar like top, but you must install first. Open your terminal and type :
yum -y install atop
to run it just type atop.
5. htop
This is similar like top and atop, but this more colorful and has built in function to kill process, search, filter, and the important is this application can modify priority of running process, you can modify it in realtime, no need to kill the process first. Use up and down arrow to select process and select what task todo.
yum -y install htop
to run it just type htop.
Thats all, you decide which one you want to use, remember, all application above running consume resource too, dont you run all time, use it when you need it.
0 comments:
Post a Comment