# unexpected high memory usage using ndbmtd MySQL Cluster ndbcluster

**URL:** <https://forums.percona.com/t/unexpected-high-memory-usage-using-ndbmtd-mysql-cluster-ndbcluster/4210>\
**Category:** Other MySQL® Questions\
**Created:** [May 7, 2015, 12:23pm UTC](https://forums.percona.com/t/unexpected-high-memory-usage-using-ndbmtd-mysql-cluster-ndbcluster/4210 "2015-05-07T12:23:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jl3128](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jl3128/32/1069_2.png) [@jl3128](https://forums.percona.com/u/jl3128)\
**Post date:** [May 7, 2015, 12:23pm UTC](https://forums.percona.com/t/unexpected-high-memory-usage-using-ndbmtd-mysql-cluster-ndbcluster/4210/1 "2015-05-07T12:23:48Z")

</div>

Hello,  
I am experiencing higher system memory usage than expected when using ndbmtd instead of ndbd. By my count from config.ini each node should be using around 13GB of memory, but looking at the ndbmtd parent process it has consumed around 36GB instead. I know that the RedoBuffer is a “per LDM” value and that each LDM thread is using the value from RedoBuffer, but are there other values that this is true for? It’s consuming more than twice what I expect. I’ve used ndb\_config to make sure that the “actual live” values match config.ini values. Perhaps it has something to do with my ThreadConfig and extra threads consuming memory? Please school me!

version: mysql-5.6.24 ndb-7.4.6

# ps aux |grep ndbmtd

root 2031 28.1 47.4 38620704 35290504 ? Sl May06 253:19 /usr/bin/ndbmtd --ndb-nodeid=11

# free

total used free shared buffers cached  
Mem: 74377352 38038176 36339176 604 216968 1508032  
-/+ buffers/cache: 36313176 38064176  
Swap: 3997692 0 3997692

from config.ini

NoOfReplicas = 2  
DataMemory = 6G  
IndexMemory = 1G  
SharedGlobalMemory = 2G  
DiskPageBufferMemory = 2G  
RedoBuffer = 512M  
FragmentLogFileSize = 64M  
NoOfFragmentLogFiles = 128  
ThreadConfig=ldm={count=4,cpubind=1,2,3,4},main={count=1,cpuset=5,13},io={count=1,cpuset=5,13},rep={count=1,cpuset=5,13},tc={count=2,cpuset=6,7,14,15},send={count=1,cpuset=6,7,14,15},recv={count=1,cpuset=6,7,14,15}
