Can anyone help me with server performance?

I'm going to start a modpack server with my friends with a machine that we bought to be our private server, I'm the one running it and I'd love to have some help on how to improve the server performance so it doesn't crash. I'm using Debian, CasaOS into Crafty to use it as my server manager. Machine specs: CPU - AMD Ryzen Pro 4650G RAM - DDR4 16GB SSD - 512GB Right now I'm prerendering the server, since that was one of our main issues in the past, but it seems like the speed ain't the best, I'm rendering at an average 20 chunks per second rn The CPU is being used at it max speed of 3.70GHz, sometimes going to 4.20GHz, but I just really want to understand if it will sustain a maximum of 8 players playing at the same time. Thanks for the help!
105 Replies
Tamz
Tamz3w ago
is this home hosted?
Alvex
AlvexOP3w ago
yes oh, and I forgot, the modpack is ATM 10
Tamz
Tamz3w ago
Rough, ok get a spark report first !spark ahem !spark :ugh: wtf
Alvex
AlvexOP3w ago
akhksajk they don't want to help us huh
Carl-bot
Carl-bot3w ago
Spark Profiler
Spark can be used to see why your server or client is lagging. Users can share a spark report via /spark profiler start --timeout 300 which creates a report after 5 minutes. The spark report is useful in debugging why your server is lagging, so ideally you should always provide one while asking for support. Download | Website | Docs
From An unknown user
Admincraft Canned Responses
Carl-bot
Carl-bot3w ago
Spark Profiler
Spark can be used to see why your server or client is lagging. Users can share a spark report via /spark profiler start --timeout 300 which creates a report after 5 minutes. The spark report is useful in debugging why your server is lagging, so ideally you should always provide one while asking for support. Download | Website | Docs
From An unknown user
Admincraft Canned Responses
Alvex
AlvexOP3w ago
i'm not using the server yet, we will be using it in like two weeks or so (I'll be gone therefore I'm using this time to prerender the chunks)
Tamz
Tamz3w ago
there it is I see, ok use servercore mod for performance helping (make sure to config the mod) Lower view distance to 6~ by default Pregen at least 10k radius thats about all I can say oh and flags
Tamz
Tamz3w ago
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Alvex
AlvexOP3w ago
i'm now rendering some nether chunks, in a radius of 10k i think?
Tamz
Tamz3w ago
Not bad
Alvex
AlvexOP3w ago
when I have the spark report I'll send it here
Tamz
Tamz3w ago
make to pregen the custom dimensions too but like 5k there
Alvex
AlvexOP3w ago
I've already rendered the overworld in a 15k radius
Tamz
Tamz3w ago
thats a lot
Alvex
AlvexOP3w ago
therefore the 20cps that I mentioned in the report about the flags.sh, which file should i change in the server config? actually, is it a file or just the java arguments?
Tamz
Tamz3w ago
the variables.txt if you dont use a panel java args
Alvex
AlvexOP3w ago
atm10 comes with a utix_args.txt file that is used to start the server
Tamz
Tamz3w ago
whatever looks like it uses arguments put it there
Alvex
AlvexOP3w ago
will do! okay 😌😌 and how do I setup the servercore properly?
Tamz
Tamz3w ago
Config file is really simple. tons of comments on what each thing does
Alvex
AlvexOP3w ago
okay, i'll check it out and if I have some more doubts I'll come back to it
Tamz
Tamz3w ago
:thumb:
Alvex
AlvexOP3w ago
I'm just really afraid
Tamz
Tamz3w ago
? 8 players at once is quite hard but 5 and under possible
Alvex
AlvexOP3w ago
because we bought this machine and I did a lot of research of what it should have to play properly and I'm afraid it wont work that well hahaha
Tamz
Tamz3w ago
how much did you pay
Alvex
AlvexOP3w ago
that would be the maximum, I think that the average will be like 5/6? and still then i doubt it a little 230€
Tamz
Tamz3w ago
Yikes you got scammed out on some parts ngl
Alvex
AlvexOP3w ago
i bought it from minisforum
Tamz
Tamz3w ago
oh
Alvex
AlvexOP3w ago
it's a refurbished machine tho
Tamz
Tamz3w ago
Ahhh okok i just checked the cpu its not bad
Alvex
AlvexOP3w ago
oh man fr you just made me sigh irl
Tamz
Tamz3w ago
32gb ram wouldve been perfect for you
Alvex
AlvexOP3w ago
a big oof
Tamz
Tamz3w ago
its Good, but its not Mc good
Alvex
AlvexOP3w ago
i'll try to up it to 24gb/32gb if i can
Tamz
Tamz3w ago
24 would be fine
Alvex
AlvexOP3w ago
😭😭
Tamz
Tamz3w ago
then you can allocate 16gb to mc ngl you wouldve been better off paying for a host for like Annual price :YEP:
Alvex
AlvexOP3w ago
I have like 14gb allocated to mc rn
Tamz
Tamz3w ago
do 12 or 13 14 gives a very light amount of ram to the system maybe also add Swap ram :hmm: if its a m.2 ssd
Alvex
AlvexOP3w ago
it's just because we usually pay once per summer, and we end up paying something like 30€ for 2/3 months and we'd like to have something a little bit more permanent
Tamz
Tamz3w ago
I see
Alvex
AlvexOP3w ago
I asked some stuff about this computer before, and people said it was okay and could run a modpack so yeah :/ even with those requirements I asked before
Tamz
Tamz3w ago
I pay 50 euro a month for a dedicated server off Hetzner 128gb i9 9900k 2tb :extraworried: The modpack can run, atm10 is on the heavier side I've tried to run atm9 and its a bitch :ugh:
Alvex
AlvexOP3w ago
oof
Tamz
Tamz3w ago
on a 5950x Mind you now its a 7950x :YEP:
Alvex
AlvexOP3w ago
well like 3years ago i tried to run a modpack on a i7 4970k with ddr3 12gb was an old pc so i started looking into stuff like this
Tamz
Tamz3w ago
i had a 32gb 4790k :3
Alvex
AlvexOP3w ago
and i really wanted to be able to provide a good server to my friends now ahhaha
Tamz
Tamz3w ago
I get it, also are you behind Cgnat or have a static ip?
Alvex
AlvexOP3w ago
what should i upgrade to be able to make the server run better? like ram I get, but idrk a AM4 socket cpu that would be good
Tamz
Tamz3w ago
the biggest concerns rn is Storage space, and Ram its a laptop cpu. not full size since minisfourm does that iirc
Alvex
AlvexOP3w ago
static i think? for now i've only used a static ip (+ i have no idea what cgnat means i'm sorry :') )
Tamz
Tamz3w ago
cgnat = you Fucked if you are behind it !cgnat fucking bot ok anyways Yeah
Alvex
AlvexOP3w ago
i think it's static, I'm also thinking of portforwarding it, since only friends will be playing on it
Tamz
Tamz3w ago
yeah or playit.gg :pepe_shrug:
Alvex
AlvexOP3w ago
still about this, as far as I've noticed the server doesn't push the CPU that much, at least of what I've noticed I was thinking about it too, but it's a plugin only? and I didn't really want to meddle with that rn where do i find the spark file that the profiler generated?
Tamz
Tamz3w ago
itll give a link if you cant find it run spark profiler open
Alvex
AlvexOP3w ago
okay, i'll get back to you in a few minutes then, it seems like there wasn't one running before
Tamz
Tamz3w ago
ty
Alvex
AlvexOP3w ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Alvex
AlvexOP3w ago
there you go!
Tamz
Tamz3w ago
Yep so far so good, the jvm flags would be a big help Also a small pay to use mod is Performant by someaddons, its a insane game changer for some servers so you might wanna look into it. entry price is like $5 for the mod and support
Alvex
AlvexOP3w ago
oooh okay I'll check it what are the jvm flags?
Tamz
Tamz3w ago
java arguments = jvm flags same thing just 2 diff ways to say
Alvex
AlvexOP3w ago
oh okay, makes sense i can send the args file that the modpack comes with
Alvex
AlvexOP3w ago
this is the args file that I've talked about before
Alvex
AlvexOP3w ago
the jvm flags that I have set up right now are the following
Tamz
Tamz3w ago
Hm
Alvex
AlvexOP3w ago
java -Xms1024M -Xmx14336M @libraries/net/neoforged/neoforge/21.1.133/unix_args.txt nogui
Tamz
Tamz3w ago
Whatever that is, add it there
Alvex
AlvexOP3w ago
this is the main server execution command that the server runs first
Tamz
Tamz3w ago
yep thats where youd add it
Alvex
AlvexOP3w ago
it's already added then!
Tamz
Tamz3w ago
gg
Alvex
AlvexOP3w ago
No description
Alvex
AlvexOP3w ago
I've now cheked that flags.sh website that you've sent, and it shows a WAY different jvm ahahah
Tamz
Tamz3w ago
You have a panel? Crafty ok uhh leave like 1gb overhead for crafty then so xmx is 1gb less then what it is
Alvex
AlvexOP3w ago
i'll lower it to 12gb as you mentioned before
Tamz
Tamz3w ago
yepyep
Alvex
AlvexOP3w ago
about this, the performant is only for forge, not neoforge :/
Tamz
Tamz3w ago
They have neoforge 😉
Tamz
Tamz3w ago
No description
Tamz
Tamz3w ago
it might not say it, but its 100% neo suppoirted
Alvex
AlvexOP3w ago
oh nice I'll check it when I'm back then + thank you for the help fr, you've been really cool and since i've joined this community no one was ever so helping as you've been today :)
Tamz
Tamz3w ago
:thumb: Mods are my jam
Alvex
AlvexOP3w ago
you mind if i add you on discord? or it is a nono for you? :)
Tamz
Tamz3w ago
As long as you dont dm me often for support sure :eyessus:
Alvex
AlvexOP3w ago
i won't do it dw 😌😌
Tamz
Tamz3w ago
thanks 😄
Alvex
AlvexOP3w ago
i'm just kinda worried that this thread closes while I'm gone and i won't be able to have someone to help me ou with stuff like this hahaha if i need some more troubleshooting help I'll open a new thread and hope that you'll see it :D
Tamz
Tamz3w ago
there have been threads open for Years ur fine
Alvex
AlvexOP3w ago
oof thank god then 🙏
Tamz
Tamz3w ago
np
Alvex
AlvexOP3w ago
i've looked a little bit more into it and this one is a full size one! + it can be upgraded in the future to a 5800X3D (i've done some research and this is one of the best single core AM4 cpus)
Tamz
Tamz3w ago
niceeee
Alvex
AlvexOP3w ago
about this, could you help me a little with this when you have time? :))
Tamz
Tamz3w ago
what os are you using
Alvex
AlvexOP3w ago
debian with casaos
Tamz
Tamz3w ago
hm not too sure. try googling it could give a good answer haha….
Alvex
AlvexOP3w ago
hey! just checking up, I've reduced the dedicated ram to 12gb, changed the jvm args to some different ones that were recommended in the atm discord server for a server with 4+ cores and 8/12 dedicated ram, these are named ZGC (i can send them to you if you want to check them) and also installed servercore limiting the view distance to 6 about this, didn't find a good one just searching casaos swap ram, will check later with debian swap ram

Did you find this page helpful?