Am Fri, 23 Nov 2012 18:05:14 +0100
schrieb Meike Stone <meike.stone(a)googlemail.com>:
since a short time, my slapd crashes often.
I have two servers running in MM replication.
I use openldap version 2.4.30 (for updates are only dedicated
timeslots...) The loglevel is set to 256
I see some strange messages in my log before the slapd crashes:
"ch_realloc of 986032 bytes failed"
"ch_malloc of 294896 bytes failed"
"bdb(ou=root): txn_checkpoint: failed to flush the buffer cache:
Cannot allocate memory"
"ch_malloc of 34159 bytes failed"
What does they mean, how can I solve this problem
The System has 16GByte RAM, no other service is running there.
The Database size is about 1500000 entires and the size of the ldif is
Because of the memory messages, I reduced the
but the problem exist still again.
I can't believe, that the memory is insufficient. Sysstat is running,
and I see enough cache memory (about 5GByte all time), and the Swap
(2GByte) is almost not used (about 2MByte).
== DB_CONFIG ==================================
set_cachesize 2 0 1
you have a cache of 2GB and about 1.5M entries, you should definitly
increase the cachesize, take the size of id2entry, add the size of all
index files and allow additional 20 % for growth.
Additional I see messages like:
"bdb_idl_delete_key: c_del id failed: DB_LOCK_DEADLOCK: Locker killed
to resolve a deadlock (-30995)"
Should I care about it?
probably due to heavy write operations and insufficient cache.
Dieter Klünter | Systemberatung
GPG Key ID:DA147B05