Page 1 of 1

How to monitor Database

PostPosted: Wed Sep 14, 2016 8:55 am
by jdaano
Hi guys.. im just a level 1 IT support
Just ask if how to know if our Database is running good..
Were using Vicibox
what i do is running the HTOP command to show the load and memory.
is there anything aside from that. to know our database is at good performance.
thanks all

Re: How to monitor Database

PostPosted: Thu Sep 15, 2016 12:57 pm
by covarrubiasgg
Try with mtop , it will display in red all the queries that are taking too long.

Re: How to monitor Database

PostPosted: Thu Sep 15, 2016 9:52 pm
by williamconley
Code: Select all
mysql -u cron -p1234 asterisk -e"show processlist"


Which shows the same stuff as mtop and mytop, but does not fail to configure itself properly as those other packages often do. LOL.

If you want to "keep an eye on it" for a while:
Code: Select all
watch -n 1 "mysql -u cron -p1234 asterisk -e'show processlist' | grep Sleep -v"


Trust me, if the server starts sweating, you'll notice it. LOL

Re: How to monitor Database

PostPosted: Fri Sep 16, 2016 12:53 pm
by covarrubiasgg
williamconley wrote:
Trust me, if the server starts sweating, you'll notice it. LOL


xD thats when the fun starts xD .