Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to fix java.lang.OutOfMemoryError: unable to create new native thread in Java [Solution]

How To Fix Java.lang.OutOfMemoryError: Unable To Create New Native Thread In Java [Solution]
It's been a long time since I write any Java Error or Exception troubleshooting tutorial so here we are. In this post, we will take a look at the "java.lang.OutOfMemoryError: unable to create new native thread" error which is a rate but quite possible in multithreading Java applications. This is another Java OutOfMemoryError that comes when JVM hits the native thread limitation allowed to be open by one process and not able to create any more new threads. Since each Java thread is associated with the OS thread, when OS refuses to provide a new thread, JVM throws OutOfMemoryError. It's rarely you will see common Java applications throwing this error but it's common when multiple application is using the same Java process e.g. WebServer Tomcat and a significant number of threads are allocated due to high load.


This post first appeared on Javarevisited: Blog About Java Programmin, please read the originial post: here

Share the post

How to fix java.lang.OutOfMemoryError: unable to create new native thread in Java [Solution]

×

Subscribe to Javarevisited: Blog About Java Programmin

Get updates delivered right to your inbox!

Thank you for your subscription

×