Operating System - HP-UX
1832298 Members
1703 Online
110041 Solutions
New Discussion

Netscape Directory server V6.21

 
Netscape Directory serv
Occasional Contributor

Netscape Directory server V6.21

Hi,

I am adding,modifying and deleting some entry on directory server through extended operation on directory server.But sometimes server crashes while adding/modifying/deleting entry just before pb=slapi_add_internal or pb=slapi_delete_internal. Please help me in this regard.

Thanks,
Sandy
3 REPLIES 3
Peter Godron
Honored Contributor

Re: Netscape Directory server V6.21

Sandy,
What is the data in SLAPI_PLUGIN_INTOP_RESULT ?

According to the 6.1 documentation:
"slapi_add_internal_pb()

Returns
This function returns one of the following values:
â ¢ 0 if successful.
â ¢ -1 if an error occurs. If -1 is returned, the SLAPI_PLUGIN_INTOP_RESULT field of
the parameter block should be consulted to determine the precise LDAP result
code.

Description
The function performs an internal add operation based on a parameter block. The
parameter block should be initialized by calling slapi_add_internal_set_pb()
or slapi_add_entry_internal_set_pb().

Memory Concerns
None of the parameters that are passed slapi_add_internal_set_pb() are
altered or consumed by this function. The entry parameter that is passed to
slapi_add_entry_internal_set_pb() is consumed by a successful call to this
function."

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
Netscape Directory serv
Occasional Contributor

Re: Netscape Directory server V6.21

Hi,
But my server is crashing after few operaions just before slapi_add_internal or slapi_delete_internal. Whether memory is the concern.

One more thing How i can set these variables:
nsslapd-cachesize,nsslapd-cachememsize, nsslapd-dbcachesize and nsslapd-import-cachesize.


thanks,
sandy
Weltman, Ulf
Valued Contributor

Re: Netscape Directory server V6.21

Hello Sandy. Please describe the plugin you're using that handles your extended operations. Plugins are loaded into ns-slapd's process space and certainly are capable of corrupting memory; freeing something it shouldn't, clobbering structures it doesn't own, etc.

Regarding configuring the DB, nsslapd-dbcachesize and nsslapd-import-cachesize are in the database plugin configuration entry:
cn=config,cn=ldbm database,cn=plugins,cn=config

Entrycache is controlled per backend in the backend specific entries. For example, for the userRoot backend:
cn=userRoot,cn=ldbm database,cn=plugins,cn=config

You can modify them via LDAP, using the admin GUI, or if the server is shut down in the backing dse.ldif file.