Since 2019-04-10, my Java apps are reporting out of memory errors:
Exception in thread "main" java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
or (not so often):
Exception in thread "main" java.lang.OutOfMemoryError: Metaspace.
Such errors happen after the application has been successfully started. These are sometimes preceded by a [6.290s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached. line. Logs are available at /data/project/pbbot/output/*.log.