Quote:
Originally Posted by r3sistance
Well, first thing is to ensure it's not a load issue. Check using top and/or "ps aux | grep mysqld" to see how much load, RAM usage and CPU usage it is using to ensure their is not a resource issue. Also when you say MySQL is slow, is this via a direct login using the mysql client or an alternative mode? Good idea to check it's actually MySQLd being slow and not potentially something else.
|
Actually i figure it out that mysql response is not slow. Cause i connect from another system, it replies quick but i apache has some problem. Cannot figure it what is problem.
my ps -aux | grep mysqld replies
# ps -aux | grep mysql
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root 2167 0.0 0.0 4448 1260 ? S Feb24 0:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid --log-error=/var/log/mysqld.log
mysql 2200 0.0 1.3 137664 28716 ? Sl Feb24 0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock
root 29437 0.0 0.0 3916 680 pts/1 S+ 04:54 0:00 grep mysql
My apache server is on same system and i connect mysql by localhost. Whenever i request for any query by apache, it response is very slow. On same query from another system to this mysql connection, replies very quick.
Now cannot understand why same system apache cannot query response fast. I suffer this problem since last 3-4 days. Before it was working very well.