java.lang.OutOfMemoryError: Unable to create new native thread when auto deploying a REST crud app

I have deployed a simple JEE app on my openshift app but when I take a look to server.log I found that a “java.lang.OutOfMemoryError: Unable to create new native thread” is avoiding wildfly from starting. I have deployed the same app locally (on a wildfly 8.1) and it works fine.

Any suggestions on how to solve the pb or how to diagnose it ?

Thanks

Answer

If you are using the Wildfly cartridge take a look at:

https://github.com/openshift-cartridges/openshift-wildfly-cartridge/issues/32

It seems to be an issue with that cartridge on small gears, removing JMS might do the trick.

Attribution
Source : Link , Question Author : ElArbi , Answer Author : El Demian

Leave a Comment