ServerTune Logo Dedicated Servers Colocation VPS Server Management ServerTune.com
 
ServerTune HomeAbout usContact usHelp DeskKnowledgebaseSpecialLIVE Chat ServerTune
DirectAdmin VPS Server Management

Value, Power, and Performance :: Dedicated Servers starting $89 /month

Dedicated Server Hosting

Click here to view photos from the conferences we attended.   *** Follow ServerTune on: ServerTune is on Facebook ServerTune is on Twitter
 
Browse by category   Search
 


Who is exhausting MySQL resources on my server?
Printer Friendly
email to a friend
Email to friend
Add comment Add comment
Views: 679
Votes: 0
Comments: 0
Posted: 20 Mar, 2010
by: Customer Service :: S.
* * * * *
Updated: 29 Mar, 2010
by: Customer Service :: S.

We suggest you monitor MySQL processes on a regular basis either using a third-party software application such: "mytop", and/or by manually using one of the following two commands:

  • /usr/bin/mysqladmin proc stat
  • /usr/bin/watch -n 5 'mysqladmin proc stat'

Using "watch", as seen above, a specific command can be executed periodically while having the output displayed full-screen for monitoring purposes; the interval is specified using the switch "-n" as seen by the number 5 in the example giveb above, representing an interval of 5 seconds (while the default interval is every 2 seconds).

If the utility watch (for Linux ), or cmdwatch (for FreeBSD), is not available, it may be found via the following from the OS distribution: For Linux (RHEL/CentOS) the utility "watch" is included with the RPM named "procps":

  • /usr/bin/yum install procps

For FreeBSD the equivalent utility "cmdwatch" is included with the package (or "FreeBSD port") named "cmdwatch":

  • /scripts/ensurepkg cmdwatch


On a cPanel powered server , you can run the following command:

  • /scripts/ensurerpm procps

Please note that the Daily Process Log in WHM is an average for the current day; the percentage reported may not indicate a severe problem or any problem at all depending on the exact activity taking place and how it may be affecting overall server load.

Other articles in this Category
document I see hundreds of mysql-bin.00xxxxxxx files in /var/lib/mysql directory. What are these files?
document Starting MySQLCouldn't find MySQL manager or server
document How can I check if query cache is working on my MySQL server?
document HowTo :: commands, statements, and clauses
document HowTo :: change MySQL root password
document Got a packet bigger than 'max_allowed_packet' bytes
document MySQL :: HowTo fix Access-Denied Errors
document Warning: MySQL server has gone away
document Error :: Can't connect to [local] MySQL server



RSS

Control Panel Licensing
cPanel Plesk Miva Merchant