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

Re: slapd memory usage



A. Schulze wrote:
> 
> Howard Chu:
> 
>>> Any idea why the memory usage is so different?
>>
>> If the only difference is that you set the open file limit to 1024, then it sounds
>> like whatever your default file limit is is much larger.
> 
> Hello Howard,
> 
> yes, it's unlimited by default. Tons of other daemon also run without this limits here.
> 
> But in contrast: all other daemons don't let explode the memory usage.
> Maybe, it worth to find the difference?

That *is* the difference. slapd allocates an array of connection info, one slot per
file descriptor. Running with "unlimited" files is clearly a bad idea here.

In general, running with larger limits than you actually need is a bad idea. This
is elementary system administration.

-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/