HPOS 3.5 technical update 14

2 Technical Note
Changing the thread stack size
Solution
1. If large number of applications are running on a production server and the load to HP Output Server is low, you
can decrease the thread stack size of the HP Output Server from the default value. The memory allocated
per-thread stack is modified and the available memory can be used for other process.
2. If the load to HP Output Server is high, the server object may go to an unknown state; you must increase the
stack size to meet the memory requirement.
NOTE: If the stack size is set to lower values than the adequate value, this may cause the
application to crash, client requests may fail or results in unexpected output due to stack
overflow.
Modifying the thread stack size
The thread stack size can be altered to higher or lower value depending on the context using the
server-executable-options attribute.
For example
To change the thread stack size value for a dsm server, use the command:
config_server -u -x"-+server-executable-options \"-s 300\"" dsm
To change the thread stack size value for all the dsm servers, use the command:
config_server -u -x"-+server-executable-options \"-s 300\"" -t dsm
Restart the servers for the modified thread stack size values to take effect.
NOTE: To ensure that the thread stack size is adequate for the components running on the server,
run the load tests on a test server.