Configuring server stack size

Your EJB Server has a stack size property that determines the amount of memory reserved for the call stack associated with each thread created by the server. EJB Server runs each client request on a different thread, so the stack size is the dominant factor in determining how many client requests can be served simultaneously.

The default stack size is 256 K. This is appropriate for almost all situations, and provides adequate reserve memory for the worst case loads that have been tested by Sybase engineering and customers.

For production servers that see heavy use from large numbers of clients, you may wish to decrease the stack size from the default value. However, you must ensure that the stack size is adequate for the components running on the server. If the stack size is too small, your server may experience thread stack overflow errors (these are recorded in the server log).

WARNING! Under no circumstances should you reduce the stack size below 64K. If you reduce the stack size, test your server thoroughly under worst-case client loads and check the log for stack overflow errors.

StepsConfiguring stack size for servers

  1. Highlight the icon for the EJB Server and select File | Server Properties.

  2. Display the All Properties tab. Scroll down if necessary to the com.sybase.jaguar.server.stacksize property. Server properties are listed in alphabetical order.

  3. Enter a stack size in the Value field, specified in bytes as a decimal number. (The field will display with no value if you have not specified a value before. This means the default setting is in effect.)

  4. Stop and restart the EJB Server.