From 66c5bd587a6d536255c49f70934906a9ddf67588 Mon Sep 17 00:00:00 2001 From: godot Date: Mon, 15 Jul 2024 21:46:26 +0200 Subject: [PATCH] new horizons --- README.md | 4 +++- script.sh | 2 +- user_jvm_args.txt | 9 +++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 user_jvm_args.txt diff --git a/README.md b/README.md index 6458fbb..358d4ac 100644 --- a/README.md +++ b/README.md @@ -16,4 +16,6 @@ To switch user use: # To be nice - [x] do not hardcode soma variables -- [x] BASH script ??? +- [x] BASH script +- [ ] manual set up of min/max RAM + diff --git a/script.sh b/script.sh index a9f8ec7..4243c44 100755 --- a/script.sh +++ b/script.sh @@ -80,7 +80,7 @@ java -Xms512M -Xmx2048M -jar Forge-1.20.1.jar --installServer cd - -mv eula.txt server-icon.png server.properties run.sh /opt/minecraft/ +mv eula.txt server-icon.png server.properties run.sh user_jm_args.txt /opt/minecraft/ mkdir /opt/minecraft/mods diff --git a/user_jvm_args.txt b/user_jvm_args.txt new file mode 100644 index 0000000..c1fcdc5 --- /dev/null +++ b/user_jvm_args.txt @@ -0,0 +1,9 @@ +# Xmx and Xms set the maximum and minimum RAM usage, respectively. +# They can take any number, followed by an M or a G. +# M means Megabyte, G means Gigabyte. +# For example, to set the maximum to 3GB: -Xmx3G +# To set the minimum to 2.5GB: -Xms2500M + +# A good default for a modded server is 4GB. +# Uncomment the next line to set it. +# -Xmx4G