diff --git a/scripts/start_server.py b/scripts/start_server.py index c92841a..bf84b06 100644 --- a/scripts/start_server.py +++ b/scripts/start_server.py @@ -1,6 +1,8 @@ import os import gen +MIN_RAM="1024M" +MAX_RAM="2048M" JVM_DEBUG_PORT = 25577 @@ -8,4 +10,4 @@ if (os.getcwd().endswith("scripts/")): os.chdir("../") os.chdir(gen.DEV_SERVER_PATH) -os.system("java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address={port} -jar spigot.jar".format(port = JVM_DEBUG_PORT)) \ No newline at end of file +os.system("java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address={port} -Xms{minram} -Xmx{maxram} -jar spigot.jar".format(port = JVM_DEBUG_PORT, minram = MIN_RAM, maxram = MAX_RAM)) \ No newline at end of file