MySQL与句柄

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

Handle type summary:
  Desktop         : 1
  Directory       : 2
  Event           : 301663
  File            : 125
  IoCompletion    : 17
  Key             : 8
  KeyedEvent      : 1
  Mutant          : 24
  Port            : 2
  Semaphore       : 10
  Thread          : 207
  WindowStation   : 2
Total handles: 302062

2.2.MySQL相关参数

query_cache_size 84M
innodb_buffer_pool_size 250M
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

 

转载于:https://my.oschina.net/xdhua/blog/49330

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值