I have a vServer (16GB RAM, 6 vCores) running Ubuntu Server (Linux 4.15.0) with a few docker containers.
A few days ago, I deployed a new container, and it would simply refuse to start with weird native crashdumps from docker-compose, most including these error message:
fork/exec /usr/bin/containerd-shim-runc-v2: resource temporarily unavailable: unknown
runtime/cgo: pthread_create failed: Resource temporarily unavailable SIGABRT:
failed to create new OS thread (have 5 already; errno=11) runtime: may need to increase max user processes (ulimit -u)
After that, this happened with many previously working containers as well. However, I restarted dockerd and all my containers, and the problem seemed to go away.
Today, I wanted to start up my Minecraft server (Forge modded 1.16 on Java 11 without docker) and the problem is back:
[136,281s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
And the weirdest thing so far, it cannot open the TTY device?:
java.io.IOException: Cannot run program "stty": error=11, Resource temporarily unavailable
After these messages, the SSH session just locked up, and a second terminal showed me that I haven't reached a single limit of ulimit -a
, and with Minecraft running I still have 9GB of RAM free. htop
shows 90 tasks running. I've been working with Linux servers for years now, never seen errors like these - what could be the cause for this?
I know errors like these have been asked before on SF, but not a single one of the answers changed something for me.