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

Re: Number of lockers



Howard Chu dijo lo siguiente el 16/11/04 13:14:

See the FAQ http://www.openldap.org/faq/data/cache/893.html
and the Sleepycat documentation

Nacho Diaz Asenjo wrote:

 Hi!

I've installed OpenLDAP 2.2.17+BerkeleyDB 4.2.52 in a Compaq Server with 2 processors PIII 350Mhz, and about each two weeks my servers fail due to a Berkeley PANIC that I solve running db_recover.

I want to know, how could I decrease the number of lockers in BerkeleyDB 4.2.52?

If I run db_stat -c over openldap data directory and I obtain this output

# /usr/local/BerkeleyDB-4.2.52/bin/db_stat -c
...
32      Number of current locks.
176     Maximum number of locks at any one time.
229     Number of current lockers.
231     Maximum number of lockers at any one time.
14      Number of current lock objects.
175     Maximum number of lock objects at any one time.
...

229 Number of current lockers ... this value is increansing contianually, and when this value reach the maximum (1000 or 2000) then OpenLDAP crash. I can't get it down.

 Thanks.





Thanks Howard.

I had already put in my DB_CONFIG file this values

set_lk_max_locks 2000
set_lk_max_lockers 2000
set_lk_max_objects 2000

Just double value, by default I've read it was 1000. Do you refer this when you recommend me that page( http://www.openldap.org/faq/data/cache/893.html)?

But number of lockers increase day by day ... now its value is about 250 but in two weeks my OpenLDAP will get 2000 lockers because this value never decrease. And then my OpenLDAP will crash beause of this error "Lock table is out of available locker entries". This force me to run db_recover almost twice a month.

Thanks.

--
+----------------------
Siempre que enseñes, enseña a la vez a dudar de lo que enseñas.
-- José Ortega y Gasset. (1883-1955) Filósofo y ensayista
español. ------------------------------------------------------------------------ '''
(O O) -= CENTRO DE CÁLCULO =- +---oOO----(_)-----------+ [Grupo de Sistemas Centrales] | Ignacio Díaz Asenjo | | | Universidad Carlos III (Leganes)
| nacho@di.uc3m.es | Edificio Betancourt (1.1J02) +------------------oOO---+ Tfno: (91)624-94-81
|__|__|
|| || (gpg-key disponible en: ooO Ooo x-hkp://pgp.rediris.es)