Java fails to start or create thread unexpectedly when launched through xinetd
Issue
- We launch multiple JVMs through xinetd. When multiple JVMs are running, additional JVMs fail to launch, crashing during start due to
java.lang.OutOfMemoryError "Cannot create GC thread. Out of system resources" - Our JVm starts throwing
java java.lang.OutOfMemoryError "unable to create new native thread"errors. We increase our process ulimit, but it seems to have no impact to allow more threads.
Environment
- Red Hat Enterprise Linux (RHEL)
- Java
- xinetd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.