bitscn.com
1.环境
os:win 2003 server (x86)
db:mysql 5.1.30-community-log
2.问题
mysql server占用的句柄数过大,使用过程消费句柄速度比释放速度来的快,部分其他应用申请不到句柄,导致不可用。
2.1.handle
>handle.exe -s -p mysqld.exe
01
handle type summary:
02
desktop : 1
03
directory : 2
04
event : 301663
05
file : 125
06
iocompletion : 17
07
key : 8
08
keyedevent : 1
09
mutant : 24
10
port : 2
11
semaphore : 10
12
thread : 207
13
windowstation : 2
14
total handles: 302062
2.2.mysql相关参数
1
query_cache_size 84m
2
innodb_buffer_pool_size 250m
3
innodb_thread_concurrency 18
3.想到的解决办法
3.1.关闭querycache
3.2.关闭innodb_thread_concurrency
3.3.os用win x64或者非win版替代
4.延伸阅读
http://bugs.mysql.com/bug.php?id=45252
本文来自于开源中国社区 作者 howardx.d.hua
bitscn.com