Saturday, March 24, 2007

java.lang.OutOfMemoryError: unable to create native thread

Grinder really works!!!!
The service no longer locks up due to thread starvation. However, I start seeing this:
java.lang.OutOfMemoryError: unable to create native thread
Google search returns a good link.
Looks like I have to reduce thread usage. Benefit of using shared thread pool is the ease of control over how many threads are used in a JVM. Now, I have multiple thread pools for different classes, I have to be careful not to exceed the maximum OS threads number.

No comments: