Failed to allocate memory error on mac os x - java (xx, xx) malloc: *** mmap (size = XX) failed (error code = 12)

I believe this is a common problem, but if that helps, I run the LucidDB database (0.9.4) on Mac OS X 10.8 with 16 GB of RAM. Database software is written primarily in Java with some parts in C ++. When I increased the size of the buffer pool to 1 GB, I received the following error.

java (669,0xfc621000) malloc: * mmap (size = 16777216) failed (error code = 12) : cannot select region ** set breakpoint in malloc_error_break for debugging

I believe the buffer pool uses shared memory, so I increased the maximum available shared memory (kern.sysv.shmmax, kern.sysv.shmall) to 2 GB. I also increased the java heap size (Xms, Xmx) to 1536 MB. Am I stuck, any hints?

0
source share
1 answer

Whenever I saw this strange low-level error on Linux, I traced it with the absence of any resource, for example, due to a lack of swap or virtual memory reassignment. There should be a utility that gives you a dump of all memory mappings in the current program. I would check if the number of mappings is too large.

+1
source

Source: https://habr.com/ru/post/978835/


All Articles