Java Virtual Machine stops responding due to thread stack overflow

[CR #611175] When Replication Agent for an Oracle or UDB, running on an HP-UX 64-bit machine, processes high volume of data with an insufficient thread stack size memory setting, the Java Virtual Machine (JVM) may crash due to a thread stack overflow:

Pid xxxx was killed due to failure in writing to user
register stack - possible stack overflow.

Workaround: Adjust the HP-UX PTHREAD_DEFAULT_STACK_SIZE environment variable to increase the default thread stack size to accommodate Replication Agent. To do this for all instances of Replication Agent, add the following two lines to the $SYBASE/RAX-15_5/bin/ra.sh file and set a proper stack size before running Replication Agent:

PTHREAD_DEFAULT_STACK_SIZE=2048000
export PTHREAD_DEFAULT_STACK_SIZE