技术开发 频道

mysql特定时间运行速度变慢的问题一例

  检查系统参数 

mysql> show variables like ‘table_open_cache’;
+——————+——-+
| Variable_name    | Value |
+——————+——-+
| table_open_cache | 64    |
+——————+——-+
1 row in set (0.00 sec)

  在看看这个现在用到了多少 

1 mysql> show global status like ‘open_tables’;
2 +—————+——-+
3 | Variable_name | Value |
4 +—————+——-+
5 | Open_tables   | 91    |
6 +—————+——-+
7 1 row in set (0.00 sec)

  修改下系统的参数 

1 mysql> set global table_open_cache=512;
2 Query OK, 0 rows affected (0.00 sec)

  问题消失了,可是我却无法确认这个问题的消失,是系统自动恢复了,还是我这个设置生效了,只能继续观察了。
 

原文链接:http://www.oracledba.com.cn/blog/?p=593

0
相关文章