I am trying to make a Minecraft Java Edition server on Debian 12 with mods
by ultimate_kidd from LinuxQuestions.org on (#6K0G1)
I have been working on making a swap file because every time I use the terminal to use the following option:
java -Xmx2G -Xms1G -jar server.jar
to start the server, it crashes. I have tried multiple different options for how much ram I should allocate but every time it crashes.
When I use the following command
sudo mkswap /swapfile
To check if it's enabled or not, I get an error saying:
swapon: /swapfile: swapon failed: Device or resource busy
Does anybody know a fix to this?
I am only 14 so if you can sum up your text any easier to make it more understandable that would be very nice of you
java -Xmx2G -Xms1G -jar server.jar
to start the server, it crashes. I have tried multiple different options for how much ram I should allocate but every time it crashes.
When I use the following command
sudo mkswap /swapfile
To check if it's enabled or not, I get an error saying:
swapon: /swapfile: swapon failed: Device or resource busy
Does anybody know a fix to this?
I am only 14 so if you can sum up your text any easier to make it more understandable that would be very nice of you