How to configure ndsd thread stack size

  • 3292730
  • 28-Aug-2007
  • 26-Apr-2012

Environment


Novell eDirectory 8.7.3.9 ftf3 and later for Linux/Unix platforms

Situation

Beginning in eDirectory 8.7.3.9 ftf3, the stack size for ndsd threads can be configured.

Prior to this release, the stack size for ndsd threads was hard coded to 4 MB.

In some cases where larger amounts of threads were necessary in the ndsd thread pool, the increased amount of memory consumed by the large number of threads could push ndsd to the limit for that amount of memory that could be allocated to ndsd. The ability to configure the stack size for ndsd threads, allows some memory to be freed to allow for higher numbers of threads, JVM heap size , dib cache and to keep ndsd within the memory limits.

Valid settings are now 1, 2, 3 or 4 MB.

Resolution

The setting:

n4u.server.thread-stack-size

has been added to allow the configuration of the ndsd thread stack size.

To apply the setting using ndsconfig:

ndsconfig set n4u.server.thread-stack-size=#
(where # is 1,2,3 or 4)

To apply the setting manually, add to the /etc/nds.conf:

n4u.server.thread-stack-size=#
(where # is 1,2,3 or 4)

ndsd must be restarted for the change to take effect.

Restart ndsd by running:

/etc/init.d/ndsd restart
or on OES
rcndsd restart

To verify the configuration change, run:

ndsconfig get

Additional Information

NOTE:  If the server is running cluster services,it may be necessary to first fail the resources hosted on the server over to another node before restarting ndsd.