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

Re: [ERROR 80] Unknown error with multiple databases


Ok.  I've been reading:

I created a DB_CONFIG file for each database ( 35 ), then db_recover for each and check that it was using the new configuration using db_stat -m.

       set_cachesize 0 1000000 0
       set_lg_regionmax 262144
       set_lg_bsize 2097152
       set_flags DB_TXN_NOSYNC

Using 2 browsers, went to the page that generates more searches , hit refresh several consecutive times for each one, and then trying to access some of the suffixes with an ldap browser and I kept getting this:
=> bdb_search
bdb_locker_id: err Cannot allocate memory(12)
send_ldap_result: conn=807 op=24 p=3
send_ldap_response: msgid=25 tag=101 err=80
ber_flush: 28 bytes to sd 771

Of course, not all the directories have the same amount of entries, so I went to the bigger one and increased the set_cachesize, ... result.. the same errors after a few searches, this is the a partial result of db_stat -m for that database:

   7MB 157KB 828B  Total cache size.
   1       Number of caches.
   7MB 160KB       Pool individual cache size.
   0       Requested pages mapped into the process' address space.
   135683  Requested pages found in the cache (100%).
   16      Requested pages not found in the cache.
   0       Pages created in the cache.
   16      Pages read into the cache.
   11      Pages written from the cache to the backing file.
   0       Clean pages forced from the cache.
   0       Dirty pages forced from the cache.
   0       Dirty pages written by trickle-sync thread.
   16      Current total page count.
   11      Current clean page count.
   5       Current dirty page count.

I read that the cachesize in slapd.conf is a different one from the bdb, so, I added for each database a cachesize 5000.... and the same errors after a few searches.

What else can I try or where should I be looking?

Thanks again for your help!


Quanah Gibson-Mount wrote:

--On Monday, August 30, 2004 1:07 PM -0600 katarn <katarn@racsa.co.cr> wrote:

I don't have one. The steps were:

1. configure/make/install for BDB
2. configure/make/install for OpenLDAP
3. Run...

I guess I should have done more..., should I ?

Yes, you should read the documentation. :) Specifically those areas about configuration your database backend.


Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html