Not enough threads or processes : "thread create failed"
Posted 2014.04.10 — Rennes, France
I started running into a weird problem that I didn’t immediately identify. Some programs just started failing: libreoffice, chrome, chromium, firefox, eclipse, …
It was quite undeterministic and depended on the system ressources being fairly well used. I thought it was a RAM issue, not having enough memory would cause programs to fail. I have somewhat agressive ram settings, but, I also have 16 GB of RAM on my computer. Well, it wasn’t a memory issue, I was able to reproduce the issue with loads of memory still left over.
Here’s some of the messages I was getting.
Libreoffice: (similar bug here)
osl::Thread::create failed
Java:
java.lang.OutOfMemoryError: unable to create new native thread.
Chrome and Chromium:
pthread_create error: Resource temporarily unavailable