Minecraft server uses more ram than allocated?

je
- in Servers
21

When I use my Minecraft server

java -server -Xmx512M -Xms512M -jar spigot.jar nogui

start he uses over 1 GB of RAM. I use a Linux server. How can you fix the problem?

ja

Java -server -Xmx512M -Xms512M -jar spigot.jar nogui

The 512M stand for the RAM

java -server -Xmx10242M -Xms1024M -jar spigot.jar nogui

No

Stop: WHO uses> 1GB RAM? The MC Server OR the JVM?

je

I no longer want to assign Ram to the server, but "prohibit" it from using more than 512mb.

je

The MC server

No

How do you recognize that? The RAM Likit which the JVM sets is as far as I remember by default on 1GB.

je

What is JVM again? Is that the Linux server?

No

No, this is the Java VM. You need it so that Java programs can be executed.

je

Then I don't know which of the two uses more Ram

je

This is not a server that runs alone. The server is in a bungee cord network.

Sp

How many users do you have on your server?

No

Probably the JVM. And it uses more RAM than the Java program itself gets.

je

That is different. I also have several sub-servers and so far I have had 15 players on one server (which had 1 GB).

je

That means what?

No

If you give the program a limit of 500MB, the JVM will end up using more than the 500MB. Namely 500MB + everything the JVM needs itself.

je

I use several Minecraft servers on one operating system. And each server is assigned 512 mb but each uses just over 1 Gb. Is there no way to reduce that?

Az

I also had this problem. And even if the server ran with 512 RAM, it stuttered and sometimes changed for a very long time. I would really give 1 GB…

je

So can I rent a better server soon?

Az

Uff. So if it involves more costs, then I would also try to solve the problem differently first… Maybe it will work for you… But for me the solution with 512 GB was not really satisfactory…

je

How could you solve it differently?

ja

I assume you bought a root or Vserver?

je

Yes, rented.