Closed ryanstout closed 6 years ago
I've bumped into the same "cannot map pages in arena address space" error message running under 32bit windows. I think the overall memory limit for golang on win32 is 2GB, but I didn't think I'd be hitting anything near that... more like 100-200MB. I'm wondering if there's some stuff being kept around in memory longer than it needs to be...
Sorry, not really anything useful here, but just wanted to add another voice :- )
A snippet from my panic:
goroutine 1 [running, locked to thread]:
runtime.systemstack_switch()
c:/go/src/runtime/asm_386.s:222 fp=0x136cb204 sp=0x136cb200
runtime.mallocgc(0x74181b, 0x884b40, 0x1, 0x121372ec)
c:/go/src/runtime/malloc.go:635 +0x77f fp=0x136cb26c sp=0x136cb204
runtime.newarray(0x884b40, 0x74181b, 0x28d2d140)
c:/go/src/runtime/malloc.go:777 +0xbc fp=0x136cb290 sp=0x136cb26c
runtime.makeslice(0x879440, 0x736722, 0x0, 0x74181b, 0x0, 0x0, 0x0, 0x0)
c:/go/src/runtime/slice.go:32 +0x180 fp=0x136cb2d0 sp=0x136cb290
github.com/syndtr/goleveldb/leveldb.(*Batch).grow(0x1a220360, 0x12)
c:/Users/ben/mygo/src/github.com/syndtr/goleveldb/leveldb/batch.go:64 +0x150 fp=0x136cb320 sp=0x136cb2d0
github.com/syndtr/goleveldb/leveldb.(*Batch).appendRec(0x1a220360, 0x0, 0x27748000, 0xc, 0x655e, 0x0, 0x0, 0x0)
c:/Users/ben/mygo/src/github.com/syndtr/goleveldb/leveldb/batch.go:75 +0x48 fp=0x136cb37c sp=0x136cb320
github.com/syndtr/goleveldb/leveldb.(*Batch).Delete(0x1a220360, 0x27748000, 0xc, 0x655e)
c:/Users/ben/mygo/src/github.com/syndtr/goleveldb/leveldb/batch.go:103 +0x4f fp=0x136cb3a0 sp=0x136cb37c
The heap size is limited to ~500 MB on 32 bit Windows, and this is the limit you're hitting.
I'm cross compiling a project to run on an ARM7 system, which has the page size modified to 64k (for various reasons). I'm seeing the following error. Any help would be greatly appreciated. Thanks!