MongoDB and PHP - Out of memory -
i know, there couple of articles mongodb , memory, non of these me.
i have quite big database of around 40gb. server ubuntu 16.04 32gb ram , ssd disk.
now, following messages when try insert new document:
mongodb\driver\exception\bulkwriteexception [ error ]: file /var/lib/mongodb/databasename.35 open/create failed in createprivatemap (look in log more information)
and in logfiles found this:
2017-07-25t18:20:58.154+0200 network [conn22] received client metadata 127.0.0.1:46124 conn22: { driver: { name: "mongoc / ext-mongodb:php", version: "1.5.5 / 1.2.9" }, os: { type: "linux", name: "ubuntu", version: "16.04", architecture: "x86_64" }, platform: "cfg=0x30c9 posix=200809 stdc=201112 cc=gcc 5.4.0 20160609 cflags="-g -o2" ldflags="" / php 5.6.30" } 2017-07-25t18:20:58.189+0200 e control [conn22] mmap private failed out of memory. (64 bit build) 2017-07-25t18:20:58.189+0200 - [conn22] assertion: 13636:file /var/lib/mongodb/database_name.35 open/create failed in createprivatemap (look in log more information) src/mongo/db/storage/mmap_v1/durable_mapped_file.cpp 271 2017-07-25t18:20:58.205+0200 control [conn22]
i have enough diskspace:
filesystem size used avail use% mounted on /dev/ploop42094p1 799g 299g 468g 40% / devtmpfs 16g 0 16g 0% /dev tmpfs 16g 0 16g 0% /dev/shm tmpfs 16g 578m 16g 4% /run tmpfs 5.0m 20k 5.0m 1% /run/lock tmpfs 16g 0 16g 0% /sys/fs/cgroup none 16g 0 16g 0% /run/shm
and think memory well:
free -m total used free shared buff/cache available mem: 32768 1235 7659 840 23873 31268 swap: 1024 945 78
any ideas how fix this?
Comments
Post a Comment