OutOfMemory(OOM) error due to lack of native memory for thread creation

The total amount of native memory that is used by the Gateway daemon increases per thread. In 64-bit Java™ every thread runs in AMODE64 requires at least 3 MB virtual storage above the bar for its stack storage and control blocks.

Symptom

The Gateway daemon stops responding and the JVM writes a java.lang.OutOfMemory exception to the stderr log file or to the Java dump file on thread creation. For example,

"java/lang/OutOfMemoryError" "Failed to create a thread: retVal
-1073741830, errno 132 (0x84), errno2 -1055784930 (0xffffffffc112001e)"                 

Probable cause

THE MEMLIMIT and REGION size that is defined would be lesser than the actual amount required.

Action

Increase the MEMLIMIT and REGION size for CICS® Transaction Gateway as per the configuration.