# Crash during index building (out of mem)

**URL:** <https://forums.percona.com/t/crash-during-index-building-out-of-mem/4798>\
**Category:** Percona Server for MongoDB\
**Created:** [March 21, 2016, 9:18am UTC](https://forums.percona.com/t/crash-during-index-building-out-of-mem/4798 "2016-03-21T09:18:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miseas](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Miseas](https://forums.percona.com/u/Miseas)\
**Post date:** [March 21, 2016, 9:18am UTC](https://forums.percona.com/t/crash-during-index-building-out-of-mem/4798/1 "2016-03-21T09:18:52Z")

</div>

Hi,  
I’m trying to update from tokumx to PSMDB (3.0.9-1.4) and when I try to create an index, during the process mongod begin to use more and more memory, until it run out of memory and crash. I tried several times with the same result. Could you please help me?. :(.  
Running on Linux dedicated server with 8gb mem.  
Thank you in advance.  
Best,  
Matias

---

<div class="post-metadata">

**Author:** ![Miseas](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Miseas](https://forums.percona.com/u/Miseas)\
**Post date:** [March 22, 2016, 1:02pm UTC](https://forums.percona.com/t/crash-during-index-building-out-of-mem/4798/2 "2016-03-22T13:02:34Z")

</div>

Hi,  
I just made it work by restarting mongo with:  
mongod --config /etc/mongod.conf --PerconaFTEngineCacheSize=1073741824  
Instead of using default value, I set 1GB for the size of the engine cache.  
Matias
