Mysql RAM使用率很高

时间:2016-05-02 07:14:13

标签: mysql mariadb galera

我正在使用具有5个节点的MariaDB gallera集群,数据库版本10.0.23-MariaDB-1~trusty-wsrep-log(mariadb.org二进制发行版,wsrep_25.11.r21a2415) 供应商:mariadb ClusterControl UI版本:1.3.0.1393 ClusterControl CMON版本:1.3.0.1242 CMON API版本:1.3.0.183

所有节点都是60GB的RAM,其中一个服务器消耗更多ram使用量,同时其他4个节点正常运行。

maria2-| success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        28G        31G       4.1M       317M        12G
-/+ buffers/cache:        16G        43G
Swap:          19G         0B        19G
Total:         80G        28G        51G

**maria1-** | success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        46G        **13G**       4.0M       312M       7.3G
-/+ buffers/cache:        38G        21G
Swap:          19G         0B        19G
Total:         80G        46G        33G

maria4- | success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        22G        37G       4.0M       284M       6.7G
-/+ buffers/cache:        15G        44G
Swap:          19G         0B        19G
Total:         80G        22G        57G

maria3- | success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        23G        36G       4.0M       314M       7.0G
-/+ buffers/cache:        15G        44G
Swap:          19G         0B        19G
Total:         80G        23G        56G

maria5- | success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        22G        37G       4.0M       284M       6.7G
-/+ buffers/cache:        15G        44G
Swap:          19G         0B        19G
Total:         80G        22G        57G

如何减少mariadb1服务器中的RAM使用量?

请为此提供解决方案。

1 个答案:

答案 0 :(得分:0)

猜测......你有大约20GB的数据+索引; innodb_buffer_pool_size = 40G;并且,由于某种原因,maria1的buffer_pool填写为完整大小,但其余的没有。

在猜测之上的猜测...一个巨大的查询命中mariadb1,做了很多索引更改,重做,撤消等,但随后回滚或者没有发送(通过基于行的复制)所有临时的东西执行查询所花费的时间。

相关问题