I'm running an Ubuntu 17.10 server on the VDS. I'm running a 3proxy on it.
The problem is that VDS somehow does not allow running more than 5000 threads per process, as I think. I think so because the 3proxy process never exceed 5000 threads.
EDIT: the error I see in the logs is:
pthread_create():_Resource_temporarily_unavailable
So I want to check if I am right about it by checking the real thread-per-process limit. My idea is to create a script, which will start as many threads as system will allow, and check the result of how many will it be.
And my problem is that I don't know how to create such a script