Hi i run a paper minecraft server

March 16, 2024, 13:17

titslover_

I can run it only on 3 gigs if i have more than that i get an error(in attachment). The starting script i use : #!/bin/bash java -Xmx4096M -Xms4096M -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=8M -XX:G1HeapWastePercent=5 -XX:G1MaxNewSizePercent=40 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1NewSizePercent=30 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:MaxGCPauseMillis=200 -XX:MaxTenuringThreshold=1 -XX:SurvivorRatio=32 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper.jar --nogui

titslover_

I have pi5 and 8 gigs of ram

jannik44

i wouldnt set xms to the same value as xmx, and i would set them to 4G, try that

titslover_

i did it tho

titslover_

dao

titslover_

wouldnt

titslover_

i read it would

titslover_

nevermind

titslover_

so the xmx is max value and xms is min?

jannik44

and try ofc to run it without the extra jvm flags first

jannik44

aand you probably want to run purpur instead of paper

titslover_

in what xm should i give more value

titslover_

the xmx

titslover_

or the xms?

titslover_

i did it

titslover_

same error

titslover_

i read that it could be a problem with java not being 64 bit but idk

jannik44

wait, i assumed you did run a 64-bot OS?

jannik44

looks like you run 32bit

titslover_

i have aarch64bit

titslover_

so i have 64 bit

titslover_

idid

jannik44

what operating system are you running?

titslover_

Raspbian GNU/Linux 12

jannik44

64bit or 32bit version?

titslover_

it says aarch64bit

titslover_

when i check

jannik44

how did you check

titslover_

uname -m

jannik44

then make sure your java version is also 64bit

titslover_

yeah i did tho but it isnt that simple

jannik44

its really simple

titslover_

i doesnt simply say that java is 64bit

titslover_

it says client or sum shit and it supposed to give u an answer

jannik44

how did you install it

titslover_

it came preinstalled i think

titslover_

openjdk version "17.0.9" 2023-10-17 OpenJDK Runtime Environment (build 17.0.9+9-Raspbian-1deb12u1rpt1) OpenJDK Client VM (build 17.0.9+9-Raspbian-1deb12u1rpt1, mixed mode, emulated-client

titslover_

sooo

titslover_

when i try to install java 21 i get something like this java-21-amazon-corretto-jdk:arm64 : Depends: zlib1g:arm64 but it is not installable

titslover_

Does not work either

titslover_

Can’t I just use like a server wrapper

titslover_

Or memory split?

jannik44

have you ever used java to host a minecraft server?

titslover_

Of course i did

titslover_

I host it all the time but I can only do it with 3 gigs….

jannik44

then you arent running a 64bit operating system

titslover_

I did forwarding port and all that sh

titslover_

I told you I am running 64 but

titslover_

And any Java won’t install it either says missing dependencies or I held Broken packages

titslover_

When I try to install 21 with apt get it says missing headless or some sh

jannik44

then gimme your neofetch output

titslover_


titslover_

sooo