[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapd crashes with ch_realloc of X bytes failed



Am Fri, 23 Nov 2012 18:05:14 +0100
schrieb Meike Stone <meike.stone@googlemail.com>:

> Hello,
> 
> 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
> about 2Gbyte
> 
> Because of the memory messages, I reduced the
> cachesize		1000000
> dncachesize		1000000
> idlcachesize	        3000000
> 
> to
> cachesize		750000
> dncachesize		750000
> idlcachesize	        2250000
> 
> 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).

[...]
> My configuration:
> == DB_CONFIG ==================================
> set_cachesize 2 0 1
> set_lg_regionmax 262144
> set_lg_bsize 2097152
> set_flags DB_LOG_AUTOREMOVE

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

-- 
Dieter KlÃnter | Systemberatung
http://dkluenter.de
GPG Key ID:DA147B05
53Â37'09,95"N
10Â08'02,42"E