TIBCO BusinessEvents throws java.lang.OutOfMemoryError: unable to create new native thread.

TIBCO BusinessEvents throws java.lang.OutOfMemoryError: unable to create new native thread.

book

Article ID: KB0090608

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
TIBCO BusinessEvents throws java.lang.OutOfMemoryError: unable to create new native thread.

Environment:
===========
TIBCO BusinessEvents 5.x using AS
All Operating System

Symptoms:
=========
TIBCO BusinessEvents throws "java.lang.OutOfMemoryError: unable to create new native thread" in different threads.

Cause:
=========
There is not enough memory to create a thread. It could be due to the following:

1). The heap/stack size are too large
2). The system has limit resource

Resolution:
=========
The following formula gives out a decent estimate for the number of threads that an application can create:

    (MaxProcessMemory - JVMMemory - ReservedOsMemory) / (ThreadStackSize) = Number of threads

User needs to tune the heap and stack size properly to make it work. Also note that AS is C++ component.  A user will need to leave enough memory for AS to make it work. If all memory resources are allocated to the JVM, it would be good to try the following:

1).  Decreasing the JVM heap size.
2).  Decreasing thread stack size settings in the system. In Linux/Unix, use ulimit -a to check the value.

Issue/Introduction

TIBCO BusinessEvents throws java.lang.OutOfMemoryError: unable to create new native thread.