JBoss log has java.lang.OutOfMemoryError "unable to create new native thread" on SUSE
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.1.5
- running as Linux service
- SUSE Linux
- 12-SP2
Issue
- java.lang.OutOfMemoryError "unable to create new native thread" were found in JBoss log when using default JBoss io configuration, but all the OS limits are fine, what is the cause of the issue? in addition, no issue when running the same configuration for JBoss on RHEL.
Resolution
Increase value for DefaultTaskMax for JBoss service, to 4915 for example.
Root Cause
DefaultTaskMax is default to 512 on SUSE, see Content from www.suse.com is not included.SUSE release note, this is not enough for JBoss to run, hence the OOM Error.
Diagnostic Steps
- Check value for DefaultTasksMax
systemctl show --property DefaultTasksMax - Check open files to see if same jar is opened 511 times
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.