# Mongorestore hangs restoring a MongoDB 2.6 dump to a PS for MongoDB 3.0.8 wiredTiger

**URL:** <https://forums.percona.com/t/mongorestore-hangs-restoring-a-mongodb-2-6-dump-to-a-ps-for-mongodb-3-0-8-wiredtiger/4657>\
**Category:** Percona Server for MongoDB\
**Created:** [January 8, 2016, 5:50pm UTC](https://forums.percona.com/t/mongorestore-hangs-restoring-a-mongodb-2-6-dump-to-a-ps-for-mongodb-3-0-8-wiredtiger/4657 "2016-01-08T17:50:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![i90rr](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@i90rr](https://forums.percona.com/u/i90rr)\
**Post date:** [January 8, 2016, 5:50pm UTC](https://forums.percona.com/t/mongorestore-hangs-restoring-a-mongodb-2-6-dump-to-a-ps-for-mongodb-3-0-8-wiredtiger/4657/1 "2016-01-08T17:50:23Z")

</div>

Hi all,

We are trying to migrate our MongoDB databases but we’re stuck with this issue that seems to occur randomly; some times it hits in an early stage of the restore process, some other times it hits well beyond half of the restore process.

I found someone else posting a similar issue on stackoverflow: [URL=“[mongodb - After Mongodump, calling MongoRestore hangs - Stack Overflow](http://stackoverflow.com/questions/33867354/after-mongodump-calling-mongorestore-hangs)”][http://stackoverflow.com/questions/3...orestore-hangs[/URL]](http://stackoverflow.com/questions/3...orestore-hangs%5B/URL%5D)

OS: CentOS 7 KVM-guest  
My mongod.conf file is as follows:  
# cat /etc/mongod.conf

```auto

# mongod.conf, Percona Server for MongoDB
# for documentation of all options, see:
# http://docs.mongo.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
# engine: mmapv1
# engine: PerconaFT
# engine: rocksdb
engine: wiredTiger

# Storage engine various options
# mmapv1:
wiredTiger:
engineConfig:
cacheSizeGB: 1

# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongo/mongod.log

processManagement:
fork: true
pidFilePath: /var/run/mongod.pid

# network interfaces
net:
port: 27017
bindIp: 127.0.0.1

#security:

#operationProfiling:

#replication:

#sharding:

## Enterprise-Only Options:

#auditLog:

#snmp:

```

As you see the cache is reduced to 1Gb as previously Mongo was crashing back to OS, presumably after getting out of memory.

Finally: they say that sometimes a picture is worth a thousand words so [URL][http://i.imgur.com/p6tk0gL.png[/URL]](http://i.imgur.com/p6tk0gL.png%5B/URL%5D)

---

<div class="post-metadata">

**Author:** ![i90rr](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@i90rr](https://forums.percona.com/u/i90rr)\
**Post date:** [January 11, 2016, 11:15am UTC](https://forums.percona.com/t/mongorestore-hangs-restoring-a-mongodb-2-6-dump-to-a-ps-for-mongodb-3-0-8-wiredtiger/4657/2 "2016-01-11T11:15:23Z")

</div>

Hi all,

I finally could get along with the restore by enlarging the wiredTiger cacheSizeGB to 2gb.  
I’m not sure though that it was strictly an out-of-memory issue because I had a tail -f on the Mongo log file and there was nothing there that could lead me think the cache was getting out of space, so I will keep a close eye on this issue and see how it behaves.

In any case I hope this post can help all of those that may happen to stumble with the same issue.

Cheers.
