全球主机交流论坛

标题: mysql 占用CPU过高 [打印本页]

作者: polar    时间: 2010-12-6 15:07
标题: mysql 占用CPU过高
LNMP0.5   网站运行一阵子后,mysql占用CPU过高  做过my.cnf nginx.conf php-fpm 优化

现在mysql 15$

网站无法正常打开 PING得通
作者: Globalization    时间: 2010-12-6 15:11
看日志
作者: polar    时间: 2010-12-6 15:22
[root@lnter ~]# mysql> show processlist;
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

[root@lnter ~]# mysql> status;
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
作者: wdlth    时间: 2010-12-6 15:40
过高就重启
作者: domin    时间: 2010-12-6 15:44
有些问题不是优化my.cnf nginx.conf php-fpm 就可以解决的
我看你运行的程序和数据库结构不够优化
这个不是那么容易搞的
作者: 卡恩    时间: 2010-12-6 15:51
phpmyamdin
修复数据库
作者: polar    时间: 2010-12-6 16:08


mysql> show processlist;
这个查询命令 在root下怎么使用,命令格式是如何啊.

[root@lnter ~]# mysql> show processlist;
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
作者: hellowind    时间: 2010-12-6 16:24
提示: 作者被禁止或删除 内容自动屏蔽
作者: netroby    时间: 2010-12-6 16:45
1. 注意看缓存做的是否到位。memcache是个好东西
2. 配置google的tcmalloc。
作者: greensnow    时间: 2010-12-6 16:57
标题: 回复 7# 的帖子
mysqladmin processlist
mysqladmin status
作者: polar    时间: 2010-12-6 17:19
标题: 回复 10# 的帖子
[root@lnter ~]# mysqladmin processlist
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
作者: polar    时间: 2010-12-6 17:20
标题: 回复 9# 的帖子
memcache 是哪个文件的缓存啊




欢迎光临 全球主机交流论坛 (https://91ai.net/) Powered by Discuz! X3.4