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
Admincraft Meta
Admincraft Meta2mo ago
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
Admincraft Meta
Admincraft Meta2mo ago
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
Syrena
SyrenaOP2mo ago
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
MrDadone
MrDadone2mo ago
No description
MrDadone
MrDadone2mo ago
you can probably try to lower the xmx, so it doesn't get killed by the panel, also did you preload chunks?
Syrena
SyrenaOP2mo ago
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
MrDadone
MrDadone2mo ago
!chunky
Carl-bot
Carl-bot2mo ago
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
MrDadone
MrDadone2mo ago
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?
Syrena
SyrenaOP2mo ago
panel i think would be pterodactyl? this shows in the startup tab but i'm not able to edit anything in that spot
No description
MrDadone
MrDadone2mo ago
Is that your panel or from a provider?
Syrena
SyrenaOP2mo ago
provider
MrDadone
MrDadone2mo ago
well using default pterodactyl theme :es_stare:, still try making a ticket and ask them to change xmx to 8000M that should be enough
MrDadone
MrDadone2mo ago
some provide it, some not :es_pepeyessir:, it's fine just means that you need to wait for them.
No description
Syrena
SyrenaOP2mo ago
would that be in either of these? also what what provider is that if you don't mind me asking :o it's pretty
No description
MrDadone
MrDadone2mo ago
: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)
Blstmo
Blstmo2mo ago
yeah as its there own company they are not allow to say in here
MrDadone
MrDadone2mo ago
:sadcry: yep
Syrena
SyrenaOP2mo ago
ohh makes sense
MrDadone
MrDadone2mo ago
No advertisements on questions or anywhere really :toyota:
Syrena
SyrenaOP2mo ago
fair yeah
Syrena
SyrenaOP2mo ago
i switched the memory from 9gb to 10gb here to see what it does with that startup (flags they're called?) thing
No description
MrDadone
MrDadone2mo ago
is this a splitter?
Syrena
SyrenaOP2mo ago
and it switched it here too
No description
Syrena
SyrenaOP2mo ago
yeah
MrDadone
MrDadone2mo ago
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)
Syrena
SyrenaOP2mo ago
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?
MrDadone
MrDadone2mo ago
it won't get killed by the panel, it will be harder to go over the 10gb limit
ProGamingDk
ProGamingDk2mo ago
I would do 1.5-2 gb overhead tbh 1 might not be enough
MrDadone
MrDadone2mo ago
:thinking: probably, yea consider 2gb
Syrena
SyrenaOP2mo ago
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
MrDadone
MrDadone2mo ago
it's fine if you pregenerate and change that, it will help
Syrena
SyrenaOP2mo ago
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:
MrDadone
MrDadone2mo ago
:thinking: well for now i would do those 2 changes, if it's still not enough, than will see
Syrena
SyrenaOP2mo ago
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?
MrDadone
MrDadone2mo ago
the world border will make people not explore chunks not already generated (and yes you can expand it later on)
Syrena
SyrenaOP2mo ago
if that makes any sense i got some real fancy things when i tweaked biome gen in the previous world
MrDadone
MrDadone2mo ago
usually people pregenerate 10k in radius,
Syrena
SyrenaOP2mo ago
that is blocks? or chunks
MrDadone
MrDadone2mo ago
yes. blocks
Syrena
SyrenaOP2mo ago
what happens if we end up wanting to go larger?
MrDadone
MrDadone2mo ago
more time to pregen :thinking:
Syrena
SyrenaOP2mo ago
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
MrDadone
MrDadone2mo ago
it won't affect biome generation. it just puts a barrier for players to not go further
Syrena
SyrenaOP2mo ago
ooo ok yeah that sounds good then honestly only concern is uhhh (lemme see if i can find a pretty picture)
Syrena
SyrenaOP2mo ago
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)
No description
No description
No description
Syrena
SyrenaOP2mo ago
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
MrDadone
MrDadone2mo ago
Well what matters is the cpu type Look for something fast single thread A ryzen 9000 series or 7000
Syrena
SyrenaOP2mo ago
Ryzen 9-- yea just says ryzen 9 so that is the same right? so extra cores aren't necessary?
MrDadone
MrDadone2mo ago
no
Syrena
SyrenaOP2mo ago
my browser ai seems to think cores and threads are the same thing so it ... is confu sing
MrDadone
MrDadone2mo ago
1 core - 2 threads ryzen 9 ok, but it's important to know the series
Syrena
SyrenaOP2mo ago
'Ryzen 9 7900X and DDR5 ram' but they're upgrading to 9000 series atm
MrDadone
MrDadone2mo ago
sounds good last thing that you would need to check, is the panel as that's really important too
Syrena
SyrenaOP2mo ago
erm what parts?
MrDadone
MrDadone2mo ago
:thinking: well the features that it has, not sure what provider you are looking at
Syrena
SyrenaOP2mo ago
is it okay for me to dm you? totally good either way
MrDadone
MrDadone2mo ago
sure idm
Snow Kit
Snow Kit2mo ago
yeah and AI told people to eat rocks and put glue on pizza
Syrena
SyrenaOP2mo ago
:woah: :goodyes:
Snow Kit
Snow Kit2mo ago
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
Syrena
SyrenaOP2mo ago
:mogdizzy:

Did you find this page helpful?