A
Admincraftβ€’2mo ago
Ethonodon

Out of memory while pregenerating?

I'm currently testing pregenerating on my modded 1.18.2 Forge server, and I'm running into an issue where after about an hour or so of pregeneration, the server runs out of memory. Whenever the memory usage reaches an amount that would force the server to crash, my chunk pregenerator mod automatically saves the world, and then closes it to prevent corruption. Something is prompting this to happen and I am trying to figure out what. My assumption is a memory leak, but I have no clue what could be causing it. Attached is my modpack- are there any mods there that may have a memory leak? And yes there are a few client-only ones there but I do not have those ones installed on the server.
No description
69 Replies
Tamz
Tamzβ€’2mo ago
that mod is fine as well
Cubicake
Cubicakeβ€’2mo ago
How would they be pregenning without chunky?
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
its better to stick to well known mods if you are having an issue
Tamz
Tamzβ€’2mo ago
chunk pregenerator is a Pregen mod as well but that chunk pregen mod is a more Harsh on your system then chunky
Cubicake
Cubicakeβ€’2mo ago
Oh I'm blind I saw the word Chunk in that image and thought it said chunky
Tamz
Tamzβ€’2mo ago
No description
Tamz
Tamzβ€’2mo ago
distant horizons NEVER goes on the server embeddium isnt a server mod
Cubicake
Cubicakeβ€’2mo ago
And yes there are a few client-only ones there but I do not have those ones installed on the server.
Tamz
Tamzβ€’2mo ago
oh
Tamz
Tamzβ€’2mo ago
neat ok
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
so why is he sending his client mods
Cubicake
Cubicakeβ€’2mo ago
Β―\_(ツ)_/Β―
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
when the server is the issue
Tamz
Tamzβ€’2mo ago
whats ur host, how much ram etc crash logs too
Ethonodon
EthonodonOPβ€’2mo ago
a. distant horizons DOES go on the server, as that is a server-side fork of it (that does work) b. as I said I do not have the client-only mods on the server itself Witherhosting, 8gb total and 6.5 allocated and it doesn't do crash logs bc the chunk pregenerator stops it before it actually "crashes"
Tamz
Tamzβ€’2mo ago
why does it go on the server? its such a odd thing to have as a server mod
Ethonodon
EthonodonOPβ€’2mo ago
because it is a server-side fork of the mod that improves its functionality on the server distant horizons is not what I am confused about or having problems with though
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
okay stop using whatever chunk pregenerator and switch to chunky
Tamz
Tamzβ€’2mo ago
no i can assume its not
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
maybe that mod is doing something weird
Ethonodon
EthonodonOPβ€’2mo ago
it's a good chunk pregenerator what's happening is I am pretty sure there is a memory leak
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
seeing how theres an oom issue on their ghub, no.
No description
Tamz
Tamzβ€’2mo ago
have you Tried with chunky, or just kept using chunk pregenerator?
Ethonodon
EthonodonOPβ€’2mo ago
I have tried chunky in the past- it's slower and worse than chunk pregenerator
Ethonodon
EthonodonOPβ€’2mo ago
chunk pregenerator is detecting a memory leak happening and killing the server before it can actually crash
Tamz
Tamzβ€’2mo ago
whats the point of it Killing the server if itll still Crash?? just seems counter intuitive
Ethonodon
EthonodonOPβ€’2mo ago
it doesn't crash because it gets killed by the chunk pregenerator before it does so it's to prevent world corruption
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
doesnt make much sense to me but have you actually tried chunky for this mod pack
Ethonodon
EthonodonOPβ€’2mo ago
yes. chunky is slower and worse. which is why im not using it
Tamz
Tamzβ€’2mo ago
ive run chunky dozens of times and let it crash Never does world corruption when it does crash
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
heres a thought use chunky and send crash report your pregen mod kills the server before a crash, so there is actually less info to analyze whats going on
Ethonodon
EthonodonOPβ€’2mo ago
my question wasn't about chunk pregenerator recommendations it was about if any of those mods are known to cause OOM issues im thinking if any of those have known issues on my version or something I can eliminate that possibility
Ethonodon
EthonodonOPβ€’2mo ago
every single mod on planet earth will have one or two OOM issues from five years ago
Tamz
Tamzβ€’2mo ago
we cant help without a decent amount of prior info like spark reports / some crash logs or etc
Ethonodon
EthonodonOPβ€’2mo ago
I can get spark reports
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
also logs too preferably a crash report but guess we dont get that
Ethonodon
EthonodonOPβ€’2mo ago
I need to give it a bit for the memory to start reaching near the limit of what is allocated, but here's a spark profile for just right after starting: https://spark.lucko.me/NHC8P8CaCL
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Chibi Bot Admincraft
Chibi Bot Admincraftβ€’2mo ago
πŸ“‹ Spark profile attached:
Ethonodon
EthonodonOPβ€’2mo ago
it usually takes it about an hour or so to "crash", so I'll take another profile later closer to then
Tamz
Tamzβ€’2mo ago
why 6.5gb allocated vs 8gb? do you run a vps or something?
Ethonodon
EthonodonOPβ€’2mo ago
because you're supposed to leave like 1-2gb free?
Tamz
Tamzβ€’2mo ago
typically the host provides the overhead at least they Should
Ethonodon
EthonodonOPβ€’2mo ago
I don't think I've ever heard of that being a thing before or at least you're supposed to still provide a bit yourself regardless
Tamz
Tamzβ€’2mo ago
:pepe_shrug: ive always allocated the amount ive been given unless i locally host
Ethonodon
EthonodonOPβ€’2mo ago
I have always been told not to do that
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
yeah, indeed providers should be responsible for overhead
Ethonodon
EthonodonOPβ€’2mo ago
here's another profile: https://spark.lucko.me/Vw7U6fGzSF
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Chibi Bot Admincraft
Chibi Bot Admincraftβ€’2mo ago
πŸ“‹ Spark profile attached:
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
@MrRazamataz do you allocate overheads?
Ethonodon
EthonodonOPβ€’2mo ago
@π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ | Ping for reply some more spark reports: 1 - https://spark.lucko.me/00d8iElZDB 2 - https://spark.lucko.me/qqa1NcyWfP 3- https://spark.lucko.me/GnHR5SaEU0
Chibi Bot Admincraft
Chibi Bot Admincraftβ€’2mo ago
πŸ“‹ Spark profile attached:
Chibi Bot Admincraft
Chibi Bot Admincraftβ€’2mo ago
πŸ“‹ Spark profile attached:
Chibi Bot Admincraft
Chibi Bot Admincraftβ€’2mo ago
πŸ“‹ Spark profile attached:
MrRazamataz
MrRazamatazβ€’2mo ago
We can apply SWAP space if needed.
MrRazamataz
MrRazamatazβ€’2mo ago
By overhead I presume you mean for the JVM? We'd usually make sure the startup commands are set correctly before going further.
Ethonodon
EthonodonOPβ€’2mo ago
What is SWAP space?
Ethonodon
EthonodonOPβ€’2mo ago
also @π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ | Ping for reply here's the latest.log
Chibi Bot Admincraft
Chibi Bot Admincraftβ€’2mo ago
πŸ“‹ Attachment uploaded to: https://mclo.gs/ZTC4cZS
mclo.gs
Forge 1.18.2 Server Log [#ZTC4cZS]
25000 lines | 67 errors
Tamz
Tamzβ€’2mo ago
storage that’s used as ram
Ethonodon
EthonodonOPβ€’2mo ago
alright I found a way to disable chunk pregenerator's auto shutdown when ram usage gets too high, so I'm just going to let it go and see if it properly crashes and then send the crash report if it does
Ethonodon
EthonodonOPβ€’2mo ago
@π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ | Ping for reply @Tamz crash report
qvaras
qvarasβ€’2mo ago
still seems like the "slower and worse" option would have saved you a lot of time here

Did you find this page helpful?