I can't run a Teamspeak server at the same time as a Minecraft server on my V-Server.
When the Teamspeak server is running and I want to start the Minecraft server, it outputs the following:
[8,597s] [warning] [os, thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 4k, detached.
[8,617s] [warning] [gc] Failed to create refinement thread 3, no more OS threads
…
[13,186s] [warning] [os, thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
[03:14:38] [main / INFO]: [STDERR]: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process / resource limits reached
…
[03:14:38] [Worker-Main-4 / WARN]: Worker-Main-4 died
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process / resource limits reached
…
[03:14:38] [main / INFO]: [STDERR]: at net.minecraft.server.v1_16_R3.TagDataPack.a (SourceFile: 46)
[13,249s] [warning] [os, thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
[03:14:38] [Worker-Main-4 / ERROR]: Caught exception in thread thread [Worker-Main-4,5, main]
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process / resource limits reached
…
[13,279s] [warning] [os, thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
The output is shortened because the question can only have 3000 characters. I hope I only left out irrelevant things. If necessary, I can post the rest of the whole thing again.
But when I end the teamspeak, the MC server starts normally.
And when I want to start the TS, it doesn't start at all and just says
terminating
Canceled
Does this possibly have a solution?
You don't have enough resources. What is your Vserver's data? So RAM, VCores
Reinstall Teamspeak.
And I couldn't do much with half the error message.
Only use the ir OS as the operating system for the server?
And that you gave the teamspeak too little RAM.
No more OS threads
Your system resources are used up. That means you need a stronger VPS or have to assign fewer threads to Minecraft / Teamspeak. But no idea how to do that with Minecraft / TS 😅
Java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process / resource limits reached
You obviously don't have enough RAM, no SWAP space on the hard drive.