Windows服务器上的MySQL 5.5非常慢

在Windows Server 2003R2或2008R2下,我完全没有使MySQL 5.5在5.1或者MariaDB上完全相同的硬件/数据库/环境。

我从我们的应用程序的基准:

MySQL 5.5 + CentOS 5.2 (XenServer Virtual) = 28 seconds (box is "busy" not buried) MariaDB (5.1) + Windows 2003 (Physical box) = 130 seconds (box is 2% busy) MySQL 5.1 + Windows 2003 (Physical box) = 170 seconds (box is 2% busy) MySQL 5.5 + Windows 2003 (Physical box) = 305 seconds (As high as 600 seconds...) (box is 2% busy) 

这些运行之间的唯一区别是删除跳过locking和运行mysql_upgrade.exe来更新5.5中存储过程的某些表。

是的,我知道这是一个候选版本,我也回馈给MySQL。

没有缓慢的查询logging,它不认为它是缓慢的,它只是。

我将开始撕裂查询本身,看看INSERT / SELECT计划是否已经在5.5上进行了buggo。

看看http://bugs.mysql.com/59133 。 大部分时间都可以冲到磁盘上(箱子是2%的忙是一个很强的暗示)你可能经过仔细考虑想要设置一个组合

innodb_support_xa = 0

innodb_flush_log_at_trx_commit = 0#或2?

sync_binlog = 0

看看会发生什么

一旦你得到了CPU负载的负载,那么使用Win2008R2是有意义的,一些改进特别针对Vista +