Kbase P104932: AppServer broker receives OutOfMemoryError and hangs after spawning 85 AppServers
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  07/02/2009 |
|
Status: Verified
SYMPTOM(s):
AppServer broker receives OutOfMemoryError and hangs after spawning 85 AppServers
Unhandled exception caught in S-0083. (8419)
java.lang.OutOfMemoryError: unable to create new native thread
Two AppServer brokers can spawn 85 AppServers each
All current AppServer processes needed to be killed before new connections were allowed
FACT(s) (Environment):
RedHat Enterprise Linux AS 3.0
Progress 9.1D
9.1D09
CAUSE:
Red Hat AS 3.0 Kernel, 2.4.21-4, defaults to the Native Threading Posix Library (NTPL). The NTPL library, however, has a lower limit of threads per process. The old LinuxThreads library had a limit of 1024 threads per process, and the AppServer Broker spawns multiple AppServer processes, each a thread.
FIX:
Set and export the variable LD_ASSUME_KERNEL=2.4.19, prior to any other executables being run, thus using the old Linux Threads library.
This variable setting allowed 335 AppServers to be spawned.