Java fails to start or create thread unexpectedly when launched through xinetd

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.