Rumah > Soal Jawab > teks badan
,经过编译生成的mongodb,文件超过2GB提示错误
rs0:PRIMARY> db.Data.insert({"name":"test"})
WriteResult({
"nInserted" : 0,
"writeError" : {
"code" : 10085,
"errmsg" : "insertDocument :: caused by :: 10085 can't map file memory"
}
})
巴扎黑2017-04-27 09:03:56
Menurut dokumen rasmi, parameter sistem sedang dilaraskan:
redis dipasang padanya
MEM 32GB,
vm.overcommit_memory = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
vi /etc/profile
ulimit -f tanpa had
ulimit -t tanpa had
ulimit -v tanpa had
ulimit -n 64000
ulimit -m tanpa had
ulimit -u 64000
sumber /etc/profile
saiz fail teras (blok, -c) 1
saiz seg data (kbait, -d) tidak terhad
keutamaan penjadualan (-e) 0
saiz fail (blok, -f) tidak terhad
isyarat belum selesai (-i) 256821
memori terkunci maksimum (kbait, -l) 64
saiz memori maksimum (kbait, -m) tanpa had
buka fail (-n) 64000
saiz paip (512 bait, -p) 8
Barisan mesej POSIX (bait, -q) 819200
keutamaan masa nyata (-r) 0
saiz tindanan (kbait, -s) 1024
masa cpu (saat, -t) tidak terhad
proses pengguna maks (-u) 64000
memori maya (kbait, -v) tidak terhad
kunci fail (-x) tanpa had
#
Memulakan semula pangkalan data dan sisipan kembali normal buat sementara waktu