Changing the Stack Size To address the high memory usage requirements of TIBCO API Exchange Gateway server, it is recommended to set a smaller stack size, for example 256 KB. This can be done in the following ways You must have super user privileges to change the stack size. To Permanently Change the Stack Size 1. Open the following file for editing: /etc/security/limits.conf 2. Add the following lines (example values shown): * soft stacksize 256 * hard stacksize 256 Refer to your Operating System’s manual for details and set the appropriate values. To Temporarily Change the Stack Size You can change the stack size for the current session at the command line. To do so type a command like the following at a command prompt: ulimit -s 256 The above command sets the stack size to 256 KB for the current session only.