help with optimizing/leakings? forge 1.20.1
i am working on a modpack for a small group of lovely friends, and am having some struggles with optimizing. learning java things doesn't come naturally to me (i'm trying!), so i'm hoping for advice, any help is really appreciated
not sure what info to start with, so here is a '/spark profiler stop' link
https://spark.lucko.me/e15ZPV0Eu5
(pls be gentle, i am a little self conscious about being a novice compared to the huge skillz energy in this server)
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
62 Replies
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by muppetenergy
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by muppetenergy#0
what
idunno what happened with the link(?) but basically the ram in the console steadily increases when a couple folks are in the server playtesting, until there's an out of memory crash.
i've removed some mods (saw posted in a couple other discord servers that dungeons arise and integrated villages/dungeons mods can tend to be leaky), tried performance mods that i saw recommended in the modded minecraft discord, but i'm up for overhauling them.
had crashing last night that looked like tetra+yung's caves aren't compatible, so i removed yung's caves
had crashing last night that looked like tetra+yung's caves aren't compatible, so i removed yung's caves
you can probably try to lower the xmx, so it doesn't get killed by the panel, also did you preload chunks?
how do i lower the xmx?
also no, i admittedly don't know how to preload chunks but i saw there are a few mods to do that
!chunky
Plugin: Chunky
Chunky is a plugin that will load chunks in a defined radius into server memory, making it easier, and less performance impacting on your server when a player loads those chunks.
If you've setup a worldborder, start with by typing
/chunky worldborder
. Otherwise, you can set a radius using /chunky radius #
. Then run /chunky start
.
It is a good idea to let this run with no players online. If your server does crash, just start it back up and /chunky resume
and it should pick back up where it left off.
Once it tells you that the task is finished, you may remove the chunky plugin folder and the Chunky .jar from your server.Admincraft Canned Responses
and for lower xmx some panels (not sure what provider you use) should allow to change the xmx, if not make a ticket and ask them to lower it to i guess 8gb?
panel i think would be pterodactyl?
this shows in the startup tab but i'm not able to edit anything in that spot
Is that your panel or from a provider?
provider
well using default pterodactyl theme :es_stare:, still try making a ticket and ask them to change xmx to 8000M that should be enough
some provide it, some not :es_pepeyessir:, it's fine just means that you need to wait for them.
would that be in either of these?
also what what provider is that if you don't mind me asking :o it's pretty
:thinking: don't check my bio, also no, you need to ask your provider to change the startup command to 8000M or 7500M if you want to be safe (lowerking the max ram % makes it harder to get killed by the panel)
yeah as its there own company they are not allow to say in here
:sadcry: yep
ohh makes sense
No advertisements on questions or anywhere really
:toyota:
fair yeah
i switched the memory from 9gb to 10gb here to see what it does with that startup (flags they're called?) thing
is this a splitter?
and it switched it here too
yeah
no it still won't do what you need.
you need to give overhead to the panel, so you have to get someone to manually change it
1gb should be enough
(also make sure to pregenerate chunks with chunky, that will help a lot too)
huh
is it normal for it to not automatically do that? give the overhead
i am ...guessing it uh
so if i have the server set to 10, and the xmx set to 9, what happens when it creeps(or skyrockets) up to 9?
it won't get killed by the panel, it will be harder to go over the 10gb limit
I would do 1.5-2 gb overhead tbh
1 might not be enough
:thinking: probably, yea consider 2gb
i think max players we will have on at any given time will be 7 but usually more cozy like 2-4
and possibly too many mods
it's fine
if you pregenerate and change that, it will help
on it!
do you have any recommendations for performance mods n things?
everywhere i've looked has an entirely different group of them that people seem to swear by
:mogdizzy:
:thinking: well for now i would do those 2 changes, if it's still not enough, than will see
that is such a good emoji
also yes ty you're right ...i don't wanna get overwhelmed
about chunky...
if i set a world border (or maybe that isn't related to chunky?) and then find out way in the future that i might wanna expand it
basically will world border or chunky settings expansions cause like, jarring lines in biome changes?
the world border will make people not explore chunks not already generated (and yes you can expand it later on)
if that makes any sense
i got some real fancy things when i tweaked biome gen in the previous world
usually people pregenerate 10k in radius,
that is blocks?
or chunks
yes.
blocks
what happens if we end up wanting to go larger?
more time to pregen
:thinking:
lol
with the world border, if i set it to 10k, and then ended up wanting larger
would that be weird land/boime gen in the new areas? or would it gracefully smooth over like the boundary was never there
it won't affect biome generation.
it just puts a barrier for players to not go further
ooo ok
yeah that sounds good then
honestly only concern is uhhh
(lemme see if i can find a pretty picture)
well, i think you know what i mean
couldn't find any of the jarring biome changes but i did find some of the previous world that completely baffled me, it was so ..................... UP a lot of the time (using entirely different biome mods this time around)
tbh i think everyone on the server liked it other than me lol
RELATED
i am actually aiming to switch to a different host and have no idea how many cores i'd need
any recommendations for cores? i don't understand what they benefit and i know they're hardware so different than threads
Well what matters is the cpu type
Look for something fast single thread
A ryzen 9000 series or 7000
Ryzen 9--
yea just says ryzen 9 so that is the same right?
so extra cores aren't necessary?
no
my browser ai seems to think cores and threads are the same thing so it ... is confu
sing
1 core - 2 threads
ryzen 9 ok, but it's important to know the series
'Ryzen 9 7900X and DDR5 ram' but they're upgrading to 9000 series atm
sounds good
last thing that you would need to check, is the panel as that's really important too
erm
what parts?
:thinking:
well the features that it has, not sure what provider you are looking at
is it okay for me to dm you? totally good either way
sure idm
:woah: :goodyes:
tl;dr, cpus are much faster than memory, so typically each core will have 2 threads, so the core can keep executing instructions while the other thread is waiting on the memory
with that being said, if the application uses a relatively small amount of memory, that'll end up in the processor's cache and hyperthreading will have less of an impact on performance, as the two threads share the core
a good example of this is minecraft's chunk generation. If you're running something like paper where chunk generation can utilize multiple cores, you'll notice almost no difference in chunk generation speed if you go from 6 workers to 12 workers when using a 12t/6c CPU
:mogdizzy: