On 12/9/2019 2:23 PM, Joe Obernberger wrote:
Getting this error on some of the nodes in a solr cloud during heavy indexing:
<snip>
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
Java was not able to start a new thread. Most likely this is caused by the operating system imposing limits on the number of processes or threads that a user is allowed to start.
On Linux, the default limit is usually 1024 processes. It doesn't take much for a Solr install to need more threads than that.
How to increase the limit will depend on what OS you're running on. Typically on Linux, this is controlled by /etc/security/limits.conf. If you're not on Linux, then you'll need to research how to increase the process limit.
As long as you're fiddling with limits, you'll probably also want to increase the open file limit.
Thanks, Shawn