Symptoms: ======== Reducing the stack size value to 128k for a number of bwengines (the system is running around 100 bwengines at once) did not resolve the issue.
A related error was noticed in the Solaris command line shell - the system is sometimes unable to fork a new process. After investigation, it appears that Solaris was running out of kernel pageable memory.
The above statistics from the OS shows that the process is exceeding 2GB (OS default) of kernel pageable memory. The number of Lwps were all seen to be high, at approximately 17000.
Cause: =====
The amount of LWPs depends on the amount of RAM available, more precisely, the size of the segkp (pageble memory). The issue was caused by the default pageble memory size of 2G.
Resolution: ==========
Increase the sigkp(pageble memory) to 8G.
Issue/Introduction
java.lang.OutOfMemoryError: unable to create new native thread on Solaris.