How do I fix “java.lang.OutOfMemoryError: unable to create new native thread” error”

This is caused when the OS user (mainly Linux) has reached the limit of the processes it is allowed to create.

The number of allowed processes/threads can be managed thr‘ulimit’ setting. One can check the allotted number of processes/threads with ‘ulimit -a’ (the default value is usually 1024).

You should increase this for the Artifactory process in order to resolve the issue.