#Servers won't start because of Resource temporarily unavailable

13 messages · Page 1 of 1 (latest)

fading idol
#

I have a huge problem and I can't figure out a solution to it. Once I start enough servers (4 in my case), processes in the server that is to start can't start enough threads. It says: Resource temporarily not available. If any other application on my linux server needs another thread at this point, it can't start it as well. For example: if all 4 servers in pterodactyl are started, I can only connect one Sinusbot to my teamspeak server. Once I try to connect the second, the TS client quits with the message "TS>terminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailable". BUT: if I start the sinusbot server first, connect both bots, everything works fine. At this point I have 2 Pterodactyl servers running: Sinusbot, Teamspeak. I can now still start e.g. the Minecraft server, no problem. But if I now start the FiveM server, the FiveM server crashes because threads can't be started. I hope you get the idea of what the problem is.

PLEASE HELP ME!!!! I can't figure out a solution to this...

heavy sedgeBOT
#

Please explain the issue you're experiencing in as much detail as possible. Preferably with error messages in a text format or paste link to logs. Nobody can assist you without information that helps to understand the issue. Help us help you. Messages such as "doesn't work" or "i need help" will most likely be ignored.

stiff verge
#

did u allowed the overallocation of your resources ?

fading idol
#

I don't have to, it is not even close to the max... but yeah, by 5% I think

#

I have 6 cores, 16gb of ram and 500gb ssd, nothing is bottlenecking anything... this is just a software problem with linux I think... ubuntu doesn't seem to allow more than a certain amount of threads (per user?/per process?/on the whole machine???) I already tried raising the limits with ulimit -u unlimited to remove the limit from the max. number of precesses a user can have, nothing changed.

stiff verge
#

i mean here

fading idol
#

Yeah I know what you mean.

#

I just found out that my hoster limits the number of threads I can start on my server.

stiff verge
#

hmm

fading idol
#

in /proc/user_beancounters there is a limit of 700 threads (nproc) set. In my monitoring software I can see that this limit is reached... I need to contact the support of my hoster.

#

Thanks anyways. I've debugged this for a whole day now. Probably this is something that should be taken into FAQ or something like that...

stiff verge
#

some hosters very strange

#

hope u have good week