Help my server network work does not want to start?

Am
- in Servers
15

I have following problem I have a 32 GB root server. And when I turn on BungeeCord and Lobby and then CityBuild then says The error:
[19:59:15] [server thread / ERROR]: Encountered an unexpected exception

java.lang.OutOfMemoryError: unable to create new native thread

at java.lang.Thread.start0 (Native Method) ~ [?: 1.8.0_201]

at java.lang.Thread.start (Thread.java:717) ~ [?: 1.8.0_201]

at java.util.concurrent.ThreadPoolExecutor.addWorker (ThreadPoolExecutor.java:957) ~ [?: 1.8.0_201]

at java.util.concurrent.ThreadPoolExecutor.execute (ThreadPoolExecutor.java:1378) ~ [?: 1.8.0_201]

at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat (CraftScheduler.java:364) ~ [spigot.jar: git-spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.MinecraftServer.B (MinecraftServer.java:723) ~ [spigot.jar: git-spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.DedicatedServer.B (DedicatedServer.java:374) ~ [spigot.jar: git-spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.MinecraftServer.A (MinecraftServer.java:654) ~ [spigot.jar: git-spigot-db6de12-18fbb24]

at net.minecraft.server.v1_8_R3.MinecraftServer.run (MinecraftServer.java:557) [spigot.jar: git-spigot-db6de12-18fbb24]

at java.lang.Thread.run (Thread.java:748) [?: 1.8.0_201]

Who can help me?

Co

Which start parameters are used?
Which Java version is used (32 / 64Bit)?

Me

With which command do you start the server?

See that you have the right Java version:

For Debian 8:

apt install -t jessie-backports openjdk-8-jre-headless -y
For Debian 9:

apt install openjdk-8-jre-headless -y

Am

64 bits

Am

Have the right version for debian 9

Am

So I start with a Start.sh Dat

Co

What is in the Start.sh?

Are you 100% sure that you have 64bit?

java -version

Am

Yes I'm

root @ h2784411: ~ # java -version

java version "1.8.0_201"

Java (TM) SE Runtime Environment (build 1.8.0_201-b09)

Java HotSpot (TM) 64-bit Server VM (build 25.201-b09, mixed mode)

Co

And what is in the start.sh?

and please have the output from: cat / proc / meminfo

Am

Send me later, I have to work now. Hope the problem is solved

Sk

You should also add in Debian 8, how to add the backport repos, otherwise your command does not work.

Po

At the very beginning is the reason:

OutOfMemory

Either the memory on the server is not enough or the heap of the Java VM is set too low.

The free memory you can with you

free -m

Look at. Important is the value under "available".

Am

So the Start.sh file is this:
#! / Bin / sh

while true

do

screen -S CityBuild1 java -Xmx10G -Xms10G -jar spigot.jar

sleep 5

done

And the output of cat / proc / meminfo:
MemTotal: 33554432 kB

MemFree: 33255804 kB

Cached: 66196 kB

Buffers: 0 kB

Active: 106044 kB

Inactive: 126336 kB

Active (anon): 85420 kB

Inactive (anon): 96256 kB

Active (file): 20624 kB

Inactive (file): 30080 kB

Unvictable: 0 kB

Mlocked: 0 kB

SwapTotal: 0 kB

SwapFree: 0 kB

Dirty: 16 kB

Writeback: 0 kB

AnonPages: 181676 kB

Shmem: 15492 kB

Slab: 54652 kB

SReclaimable: 17528 kB

SUnreclaim: 37124 kB

Me

And with what command do you start the server now? Please answer both questions while you're at it.-

And look again that you have accepted the Eula, that may be your problem…

Co

So the citybuild gets in the case 10GB of RAM

What about the other processes?

Am

Bungee has 2 GB and lobby also 2 GB