Kalimari wrote:197% cpu, that's not good!
First, see what mysql processes are running:
Code: Select all
mysql -uadmin -p`cat /etc/psa/.psa.shadow`
SHOW PROCESSLIST;
Restart: /etc/init.d/mysqld restart and monitor mysql to see if it's a particular query causing the problem.
By default mysql 5.0 reserves 150 process (up from 100), in a virtual environment, this may be significant...
mysql> SHOW PROCESSLIST;
+------+--------+-----------------+--------+---------+------+-------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+------+--------+-----------------+--------+---------+------+-------+------------------+
| 2 | tortix | localhost:36326 | tortix | Sleep | 10 | | NULL |
| 9 | admin | localhost | psa | Sleep | 156 | | NULL |
| 3654 | admin | localhost | NULL | Query | 0 | NULL | SHOW PROCESSLIST |
+------+--------+-----------------+--------+---------+------+-------+------------------+
3 rows in set (0.01 sec)
I think it was a particular customers database... its possible that their database is not compatible because when I run "mysqlcheck -u admin -p`cat /etc/psa/.psa.shadow` --auto-repair --check --optimize --all-databases"
it hangs on those databases stating the following
busakills.kb3_all_corp Table is already up to date
busakills.kb3_alliances
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_api_user Table is already up to date
busakills.kb3_apicache
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_apilog
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_comments
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_config
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_constellations
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_contract_details
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_contracts
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_corps
note : Table does not support optimize, doing recreate + analyze instead
status : OK
busakills.kb3_dgmattributetypes Table is already up to