Issue 540 - ldapadd problems...slapd crashes ...
Summary: ldapadd problems...slapd crashes ...
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-05-19 17:15 UTC by VIGNAUX Eric
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description VIGNAUX Eric 2000-05-19 17:15:28 UTC
I am running openldap v 1.2.10 on a linux redhat 6.0,
and I really experience a lot of problems...
Indeed, the ldapserver crashes with the same message 

calloc of 57672698 elems of 4 bytes failed

(i launch slapd with the -1debug level) 

This occurs when I try to insert such person objects :

cn=vignaux eric, ou=DR AMIENS, o=sacem, c=fr

I don t know what to do now, because i tried to upgrade my 
version of ldap, compile it without thread support...

The only thing i can do is re generating the database with an ldif file, at
this point, it works ok,
but one later, problems occur 

Any idea ?

thank s and apologize for my english,
eric vignaux
Comment 1 Kurt Zeilenga 2000-05-21 14:53:17 UTC
At 05:16 PM 5/19/00 GMT, eric.vignaux@sacem.fr wrote:
>calloc of 57672698 elems of 4 bytes failed

Make sure you have enough virtual memory available
to your process to allocate configured caches.  Since
calloc() is failing, allocate more virtual memory
to your process and/or reduce cache sizes.  See
cachesize and dbcachesize slapd.conf(5) directives.

Comment 2 VIGNAUX Eric 2000-05-23 07:56:21 UTC
My swap partition had been fixed at 128 MB at the installation, and i 
have just reduced cachesize (1000 entries) and dbcachesize (100000 b) in my
slapd.conf.
But problems continue to occur.
Could it be a ldbm backend problem ?

Do you have any idea ? 
> -----Message d'origine-----
> De:	Kurt@OpenLDAP.org [SMTP:Kurt@OpenLDAP.org]
> Date:	dimanche 21 mai 2000 16:54
> À:	openldap-its@OpenLDAP.org
> Objet:	Re: ldapadd problems...slapd crashes ... (ITS#540)
> 
> At 05:16 PM 5/19/00 GMT, eric.vignaux@sacem.fr wrote:
> >calloc of 57672698 elems of 4 bytes failed
> 
> Make sure you have enough virtual memory available
> to your process to allocate configured caches.  Since
> calloc() is failing, allocate more virtual memory
> to your process and/or reduce cache sizes.  See
> cachesize and dbcachesize slapd.conf(5) directives.
> 
Comment 3 Kurt Zeilenga 2000-05-25 16:14:41 UTC
changed notes
changed state Open to Feedback
Comment 4 Kurt Zeilenga 2000-05-25 23:07:59 UTC
At 07:56 AM 5/23/00 GMT, eric.vignaux@sacem.fr wrote:
>But problems continue to occur.

You are likely still exceeding the virtual memory available
to the process.  You should allow the process to allocate
more virtual memory (which could be a matter of changing
soft or hard limits or system resources) or further decrease
cache settings.  You might also have to reduce the number
of indices maintained.

>Could it be a ldbm backend problem ?

It could be a number of things.  However, the problem is
likely due to resource limitations.

>Do you have any idea ? 

% limit

(check process limits)
Comment 5 Kurt Zeilenga 2000-05-27 15:17:36 UTC
changed state Feedback to Closed
Comment 6 OpenLDAP project 2014-08-01 21:06:10 UTC
resource limitation?