balena-minecraft-server icon indicating copy to clipboard operation
balena-minecraft-server copied to clipboard

1GB of ram

Open PickleWarrior151 opened this issue 6 years ago • 12 comments

Hi so it says my server has a max of only 1GB and I am running on a raspberry pi 4 with 4GBs of ram. If you could help me fix this that would be great.

PickleWarrior151 avatar Oct 27 '20 14:10 PickleWarrior151

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

issue-label-bot[bot] avatar Oct 27 '20 14:10 issue-label-bot[bot]

I don't see a issue here. You can set more ram through the RAM variable.

AlexProgrammerDE avatar Oct 29 '20 06:10 AlexProgrammerDE

I don't see a issue here. You can set more ram through the RAM variable.

Ok what should I set the name and value to and I'm guessing the service is mc-server?

PickleWarrior151 avatar Oct 29 '20 13:10 PickleWarrior151

I don't see a issue here. You can set more ram through the RAM variable.

Ok what should I set the name and value to and I'm guessing the service is mc-server?

RAM, as an example 2G and yes

AlexProgrammerDE avatar Oct 29 '20 14:10 AlexProgrammerDE

I don't see a issue here. You can set more ram through the RAM variable.

Ok what should I set the name and value to and I'm guessing the service is mc-server?

RAM, as an example 2G and yes

So would it be service: mc-server Name: 2g value: yes

PickleWarrior151 avatar Oct 29 '20 18:10 PickleWarrior151

@PickleWarrior151 It would be like this image

EvilNick2 avatar Oct 29 '20 23:10 EvilNick2

Ok I'm running my server on paper on Minecraft version 1.16.3 and paper version 247. Is this how you would so it for paper? image

PickleWarrior151 avatar Oct 30 '20 01:10 PickleWarrior151

It should have to be all capitals so it would be RAM 6G instead of ram 6g

EvilNick2 avatar Oct 30 '20 03:10 EvilNick2

It should have to be all capitals so it would be RAM 6G instead of ram 6g

Ok so it starts with 2GBs of RAM but then I get this error with the Jar_file variable Error: Unable to access jarfile paper-1.16.3-247

Oh wait do I even need that?

PickleWarrior151 avatar Oct 30 '20 18:10 PickleWarrior151

No you shouldn't need that, the default jar file that the server will run is paper.jar so all you need to do is rename the file you downloaded from paper-1.16.3-247.jar to paper.jar and it should work. All though if you do ever want to use forge or something other than paper to run your server you would need to have to have it as "JAR_FILE" and the variable always has to have .jar at the end so to fix what you current have in your dashboard it would be JAR_FILE paper-1.16.3-247.jar

EvilNick2 avatar Oct 31 '20 00:10 EvilNick2

No you shouldn't need that, the default jar file that the server will run is paper.jar so all you need to do is rename the file you downloaded from paper-1.16.3-247.jar to paper.jar and it should work. All though if you do ever want to use forge or something other than paper to run your server you would need to have to have it as "JAR_FILE" and the variable always has to have .jar at the end so to fix what you current have in your dashboard it would be JAR_FILE paper-1.16.3-247.jar

OK thanks

PickleWarrior151 avatar Nov 02 '20 14:11 PickleWarrior151

Why is this reopened? You cannot set the variable to 4G or higher because your PI needs RAM for system processes. If your PI has a max of 4GB you can realistically only use 2G. 3G might be pushing it. If you want to change the the RAM default. Edit ./mc-server/start.sh and change line 12 to "2G" in all caps. Then run balena push <AppName> image

christian4423 avatar Nov 03 '20 16:11 christian4423