5 Minute Linux Admin/DBA – What OS tools to use to monitor your database server
2009-03-05 23:55
525 查看
So typically here is what I do when I log on to a server that is having perf issues:
1.Run Top… give it a quick once over… I check for :
1.find the amount of memory,
2.the load average
3.Current CPU
4.look to see if other processes are stealing CPU time.
5.Is the system waiting on IO
6.Are you swapping
2.Run Iostat -x 10
1.Look for the busy disk, make sure that await+srvtm is < 5ms, <10ms if the disk stinks.
2.Look at the r/s -vs- w/s to get a general feel for what the box is doing.
3.Uname -a
1.What? Yep I check to make sure the kernel on the server is up to date and that the client is running a 64 bit OS
4.Run Sar
1.I Run SAR without any parms to get todays cpu, and look for spikes in sys+usr as well as high periods of IO
2.I run SAR -n DEV and look to see how saturated the network pipe is
3.I run sar -f /var/log/sa[day] to get a previous days numbers so I can compare today with that other day.
5.Check the disk space
1.df -h
1.Run Top… give it a quick once over… I check for :
1.find the amount of memory,
2.the load average
3.Current CPU
4.look to see if other processes are stealing CPU time.
5.Is the system waiting on IO
6.Are you swapping
2.Run Iostat -x 10
1.Look for the busy disk, make sure that await+srvtm is < 5ms, <10ms if the disk stinks.
2.Look at the r/s -vs- w/s to get a general feel for what the box is doing.
3.Uname -a
1.What? Yep I check to make sure the kernel on the server is up to date and that the client is running a 64 bit OS
4.Run Sar
1.I Run SAR without any parms to get todays cpu, and look for spikes in sys+usr as well as high periods of IO
2.I run SAR -n DEV and look to see how saturated the network pipe is
3.I run sar -f /var/log/sa[day] to get a previous days numbers so I can compare today with that other day.
5.Check the disk space
1.df -h
相关文章推荐
- How to use a SQL Server database with your PHP web site
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'lim
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- 18 Command Line Tools to Monitor Linux Performance
- Managing Compiler Toolchains How to manage XDCtools use of your compiler toolchain
- Sybase IQ: All buffer cache pages are in use, ask your DBA to increase问题解决
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'oiw
- check the manual that corresponds to your MySQL server version for the right syntax to use near 'cre
- [Resolved] TF254006: No usable accounts are present in your configuration database. Use TfsConfig accounts /add to add an account and return to this wizard.
- How to use, monitor, and disable transparent hugepages in Red Hat Enterprise Linux 6
- check the manual that corresponds to your MySQL server version for the right syntax to use near '..'
- 94.You plan to move data from a flat file to a table in your database. You decide to use SQL*Loader
- switch your web application project to use development machine's IIS server
- 18 commands to monitor network bandwidth on Linux server
- 异常“check the manual that corresponds to your MySQL server version for the right syntax to use near ”
- Linux:How To Use Screen Command To Manage Your Remote Session
- kali 安装virtualbox tools出错ERROR: UNABLE TO FIND THE SOURCES OF YOUR CURRENT LINUX KERNEL.
- How to use the Automatic Database Diagnostic Monitor (ADDM)
- To upgrade the project database to use SQL Server LocalDB Express, …
- What is EPOLL? Epoll vs Poll vs Select call ? And How to implement UDP server in Linux using EPOLL?