On 12/24/2010 12:15 AM, mahao wrote:
Hi all,
Fedora-ds was down for some reason,
And I got these logs:
[23/Dec/2010:18:59:32 +0200] - libdb: User-specified malloc function
returned NULL
[23/Dec/2010:18:59:32 +0200] - id2entry error 12
[23/Dec/2010:18:59:32 +0200] - id2entry get error 12
[23/Dec/2010:18:59:32 +0200] - next_search_entry db err 12
[23/Dec/2010:18:59:32 +0200] memory allocator - calloc of 4098 elems
of 4 bytes failed; OS error 12 (Cannot allocate memory)
The server has probably allocated all available virtual memory. To solve
this problem, make more virtual memory available to your server, or reduce
one or more of the following server configuration settings:
nsslapd-cachesize (Database Settings - Maximum entries in cache)
nsslapd-cachememsize (Database Settings - Memory available for
cache)
nsslapd-dbcachesize (LDBM Plug-in Settings - Maximum cache size)
nsslapd-import-cachesize (LDBM Plug-in Settings - Import cache size).
Can't recover; calling exit(1).
It looks like no more available virtual memory to use, so should
I set a lager nsslapd-dbcachesize?
I don't know if it will down again, and please give me some
advice . its important to me. Thanks a lot
What version of fedora-ds or 389-ds-base?
What platform?
This usually means you have run out of memory. The usual thing is to
reduce your cache sizes (as specified above). Start with
nsslapd-dbcachesize as the minimum. Set nsslapd-cachememsize to be
large enough to cache all of your entries, but no larger.
BS
Ma Hao