Ram limit

Discussion in 'Spigot Discussion' started by lambrio, Jul 1, 2021.

  1. I want to make a small hosting and Is there a way To hard limit the ram Like when it reaches 1gb ram that it auto Stops?
     
  2. Yes, the -Xmx JVM argument specifies the maximum memory allocation available for a server.

    In the below example 4GB RAM would be allocated:
    Code (Text):
    java -Xms4G -Xmx4G -XX:+UseG1GC -jar spigot.jar nogui