(Client) Ram keeps hitting 100 and freezing. Any help

I have the spark report withe threshold of 170 ticks https://spark.lucko.me/Y66Fm0TWif
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
135 Replies
Admincraft Meta
Admincraft Meta7mo 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 sp1d3rman20
Admincraft Meta
Admincraft Meta7mo 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 sp1d3rman20#0
Sp1derman20
Sp1derman20OP7mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta7mo 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 sp1d3rman20
Skullians
Skullians7mo ago
server is spending a lot of time saving chunks
Sp1derman20
Sp1derman20OP7mo ago
what should i fo
𝒟𝑜𝓂𝒾𝓃𝒾𝒸
you using a 5200 hdd? @Sp1derman20
Sp1derman20
Sp1derman20OP7mo ago
im using a 2tb ssd
Skullians
Skullians7mo ago
set sync chunk writes to false in server.properties if you’re self hosting this on a pc you also use it won’t help Make sure you’re not running out of space
Sp1derman20
Sp1derman20OP7mo ago
noe its on a server
Skullians
Skullians7mo ago
okay this
Sp1derman20
Sp1derman20OP7mo ago
its not in there, do i just add sync-chunk-writes=false and save? its for modded minecraft 1.12.2
Skullians
Skullians7mo ago
oh :/ guess it’s not a 1.12.2 feature what perf mods do you have?
Sp1derman20
Sp1derman20OP7mo ago
texfix,ae2 unofficial lite, better biome blend, betterfps, chunk pregenerator,clumps, entitie culling, fastfurnace,particle culling, performant, phosphor, phosphor crash fix, stackie, universal tweaks, and vintage fix. I tried to use vanilla fix but iwould get spammed with errors onvolving the midnight mod so i took it out
Skullians
Skullians7mo ago
check out AI improvements Alfheim lighting engine
Sp1derman20
Sp1derman20OP7mo ago
i tried alfheim lighting engine i would keep gettin gthe mixin booter dependency missing
Skullians
Skullians7mo ago
ah Try censoredASM
Sp1derman20
Sp1derman20OP7mo ago
i tried censored asm
Skullians
Skullians7mo ago
for clients, things like entity culling Fast workbench
Sp1derman20
Sp1derman20OP7mo ago
it would launch but the menue screen would say an error and to go to s text file
Skullians
Skullians7mo ago
tried universal tweaks?
Sp1derman20
Sp1derman20OP7mo ago
its in
Skullians
Skullians7mo ago
ah you’ve got basically all the mods possible how much ram have you given?
Sp1derman20
Sp1derman20OP7mo ago
12 gb
Skullians
Skullians7mo ago
how much ram on the entire machine?
Sp1derman20
Sp1derman20OP7mo ago
32 gb
Skullians
Skullians7mo ago
using Aikar flags?
Sp1derman20
Sp1derman20OP7mo ago
i should
Skullians
Skullians7mo ago
so you don’t atm?
Sp1derman20
Sp1derman20OP7mo ago
i thinkn i did is what i mean
Skullians
Skullians7mo ago
check
Sp1derman20
Sp1derman20OP7mo ago
i copied the hava rguments and out it in the run bat
Skullians
Skullians7mo ago
make sure you have but you say it hits 12GB really quickly?
Sp1derman20
Sp1derman20OP7mo ago
you mean put them in my java arguments
Skullians
Skullians7mo ago
yeah
Sp1derman20
Sp1derman20OP7mo ago
what happens is when join the server i start at 55% and then it will slowly climb up and stop at 77% for a while and eventually the games hits 100% and then freeze five second normal and freeze sometimes it varies from 30 mins to 2 hours also im using graalvm java 8
Skullians
Skullians7mo ago
you should consider doing /spark heapdump when you get close to filling up your RAM then use eclipse memory analyser to look at the heapdump and it should give you a idea of what’s using all the ram if you want you can send me the heapdump and I take a look at it when I can
Sp1derman20
Sp1derman20OP7mo ago
should i do the heapdump when i am experiencing the lag spike
Skullians
Skullians7mo ago
I would do it once you see your ram is close to being 100% full
Sp1derman20
Sp1derman20OP7mo ago
ok then
Skullians
Skullians7mo ago
(note, the heapdump file will be like 10GB in size)
Sp1derman20
Sp1derman20OP7mo ago
got it i was able to make a heapsummary
Sp1derman20
Sp1derman20OP7mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta7mo 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 sp1d3rman20
Sp1derman20
Sp1derman20OP7mo ago
looking for the heapdump file
Skullians
Skullians7mo ago
Should be in the spark config folder Do you happen to have a lot of entities? item entities*
Sp1derman20
Sp1derman20OP7mo ago
during f3 o usually see 4/90 ish entities where do i upload the heapdump file
Skullians
Skullians7mo ago
you can either analyse it yourself by installing eclipse memory analyse or you can upload it to mediafire or whatever and send me the link and I’d take a look when I can
Sp1derman20
Sp1derman20OP7mo ago
its 3.5 gb so im going to try uploading it to mega i cant launch the eclipse memory analyzer i get error could not create java virtual machine
Skullians
Skullians7mo ago
you need to use a later version of java
Sp1derman20
Sp1derman20OP7mo ago
? which one
Skullians
Skullians7mo ago
17 or higher
Sp1derman20
Sp1derman20OP7mo ago
it says an internal error occured during: parsing heap dumo java heap sapce
Skullians
Skullians7mo ago
open the .ini file that’s in the same folder as the exe files there should be a flag in the text, an Xmx flag bump that up do maybe 7000mb
Sp1derman20
Sp1derman20OP7mo ago
leak suspects report, component report reopen previously run reprots
Skullians
Skullians7mo ago
leak suspects
Sp1derman20
Sp1derman20OP7mo ago
No description
Sp1derman20
Sp1derman20OP7mo ago
No description
Sp1derman20
Sp1derman20OP7mo ago
No description
Skullians
Skullians7mo ago
Have you pregenerated?
Sp1derman20
Sp1derman20OP7mo ago
what do you mean
Skullians
Skullians7mo ago
You have chunk pregenerator Have you actually used it
Sp1derman20
Sp1derman20OP7mo ago
no i thought it did its own thing
Skullians
Skullians7mo ago
you should use it no you have to set it up yourself and run it yourself
Sp1derman20
Sp1derman20OP7mo ago
i see
Skullians
Skullians7mo ago
pregenerating is where you generate all the chunks within a specified radius this removes all lag when it comes to generating chunks because they are already generated so the server only has to load and unload them rather than do that and also generate them a good pregen point is 5-10k depending on how many players you have If you’ve gone, let’s say, 11k blocks out, pregen 11k or more blocks then set a worldborder to stop you or anyone else going further pregenerating takes LONG time by the way
Sp1derman20
Sp1derman20OP7mo ago
huh so how would i do that i se the pregen command
Skullians
Skullians7mo ago
How far do you want to pregen
Sp1derman20
Sp1derman20OP7mo ago
we usually dont leave the base for sometimes so liek 30 chunks ish
Skullians
Skullians7mo ago
30 chunks? you know that’s only 480 blocks right
Sp1derman20
Sp1derman20OP7mo ago
i dont know what a good measurment is
Skullians
Skullians7mo ago
5k blocks (512 chunks) is often a good start and fine for small servers
Sp1derman20
Sp1derman20OP7mo ago
/pregen start gen radius word SQUARE
Skullians
Skullians7mo ago
/pregen gen startradius square 0 0 512 execute this while in the overworld
Sp1derman20
Sp1derman20OP7mo ago
thank you
Sp1derman20
Sp1derman20OP7mo ago
5
No description
ProGamingDk
ProGamingDk7mo ago
thats 512 blocks
Skullians
Skullians7mo ago
chunk pregenerator does it in chunks
ProGamingDk
ProGamingDk7mo ago
look at his screenshot
Skullians
Skullians7mo ago
what about it it says 250 / 701k chunks
ProGamingDk
ProGamingDk7mo ago
No description
Skullians
Skullians7mo ago
are you sure that’s not just it doing it in parts
ProGamingDk
ProGamingDk7mo ago
no not at all
Skullians
Skullians7mo ago
so the wiki lied to me
Sp1derman20
Sp1derman20OP7mo ago
No description
Skullians
Skullians7mo ago
/pregen gen startradius square 0 0 100 - Generates everything within 100 Chunks radius in the Senders Dimension (Server = Overworld, Player = The Dimension the Player is in) see @ProGamingDk
ProGamingDk
ProGamingDk7mo ago
ah
Sp1derman20
Sp1derman20OP7mo ago
is this going to hlep with the ram maxing out
Skullians
Skullians7mo ago
hopefully yes it should
Sp1derman20
Sp1derman20OP7mo ago
i see its been a couple of hours and its still chunkloading and i still hit 100
Sp1derman20
Sp1derman20OP7mo ago
No description
Sp1derman20
Sp1derman20OP7mo ago
No description
Skullians
Skullians7mo ago
Yeah pregenerating is quite ram hungry
Snow Kit
Snow Kit7mo ago
Btw @Sp1derman20, if you’re using sponge or a hybrid server software, please use the sponge or bukkit versions of spark. The 1.12 forge version of spark hasn’t been updated in ages I’m not saying to use sponge or hybrid softwares if you currently don’t, but if you’re using one of them, then use the other version of spark
Sp1derman20
Sp1derman20OP7mo ago
I’m using a normal for 1.12 server jar Will switching cause any sort of problems
Snow Kit
Snow Kit7mo ago
Sponge has some incompatibles with some performance mods And hybrid softwares cause a lot of issues
Sp1derman20
Sp1derman20OP7mo ago
i tried using sponge and the server crashes
Snow Kit
Snow Kit7mo ago
It will. Sponge needs config changes for on optimizations mods for it to work. It isn’t that important though if your issue is a memory leak
Sp1derman20
Sp1derman20OP7mo ago
after the pregenerating my ram was consistently at 55% and randomly it jumped to 100%
Sp1derman20
Sp1derman20OP7mo ago
No description
Sp1derman20
Sp1derman20OP7mo ago
No description
Sp1derman20
Sp1derman20OP7mo ago
seems to be the sae probelmsm
Skullians
Skullians7mo ago
when you’re pregenerating you’ll likely run into the same problem because from what I can tell the issue you’re encountering is when you’re generating new chunk / structures
Sp1derman20
Sp1derman20OP7mo ago
but i was just in my base the whole time
Skullians
Skullians7mo ago
yeah well the pregenerator is generating new chunks wait Are you saying that’s after the pregen? Is this during or after the pregen
Sp1derman20
Sp1derman20OP7mo ago
yeas the pregen isnt on my screen anymore
ProGamingDk
ProGamingDk7mo ago
did you restart after?
Skullians
Skullians7mo ago
it’s possible the Pregeneration is still going
Sp1derman20
Sp1derman20OP7mo ago
my game yes
ProGamingDk
ProGamingDk7mo ago
the server not the game
Sp1derman20
Sp1derman20OP7mo ago
yes it seems my ram is maxing out faster than before
Skullians
Skullians7mo ago
yes because you’re likely still pregenerating just the pregenerator gui doesn’t show /pregen info ShowTaskList
Sp1derman20
Sp1derman20OP7mo ago
it shos me this /pregen info listen the choices are listen auto listen and unlisten
Skullians
Skullians7mo ago
auto
Sp1derman20
Sp1derman20OP7mo ago
Sp1derman20 is ignoring tasks is wha tit said
Snow Kit
Snow Kit7mo ago
@Sp1derman20 how much memory does your server have, what are you doing to check the memory usage, is the server crashing (either with or without a crash log generated) and what is the server’s render distance in server.properties (plus player count) Is this a specific modpack or did you make it
Skullians
Skullians7mo ago
they have 12GB
Snow Kit
Snow Kit7mo ago
Oh, also what are the launch flags
Skullians
Skullians7mo ago
they haven’t shown them but they think they’re using Aikar flags (they said they should be)
Sp1derman20
Sp1derman20OP7mo ago
java -Xms8192M -Xmx8192M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar
Aikar's Thoughts
JVM Tuning: Optimized G1GC for Minecraft - Aikar's Thoughts
Learn more about my In depth study on tuning the G1GC garbage collector to be optimized for how Minecraft servers run, and keep low pause efficient usage.
Sp1derman20
Sp1derman20OP7mo ago
ther server doesnt crash
Skullians
Skullians7mo ago
how are you measuring the ram usage
Sp1derman20
Sp1derman20OP7mo ago
its thec client( me and my friends whos ram maxes out and we have to relaunce so we dont keep freezing
Sp1derman20
Sp1derman20OP7mo ago
No description
Skullians
Skullians7mo ago
… this WHOLE time we’ve been working under the impression that the server is the one running out of ram
Game_Time
Game_Time7mo ago
💀 Bro there is no way
Sp1derman20
Sp1derman20OP7mo ago
i said that the clients were runniong out of ram i lied but yes our problem is that the clients ram will reach 100 and freeze which forces us to relaunch to have a normal xperioence somehow the server runs fun even though it has the same mdos
Sp1derman20
Sp1derman20OP7mo ago
i thought i clarified it but that must have bean in a different thread my bad
Skullians
Skullians7mo ago
How much ram are you allocating to each client?
Sp1derman20
Sp1derman20OP7mo ago
Around 10-12 gb 2 of us use 12 gb one of us uses 10gb
Snow Kit
Snow Kit7mo ago
Did you allocate too much RAM? If you hit f3 at the top right does it show 100% RAM usage there? Are you using Bobby (or another view distance extending mod)?
Sp1derman20
Sp1derman20OP7mo ago
I don’t if too much ram is the issue. And yes when i press f3 it shows 100% memory usage and allocated climbing from 80 to 100 causing a freeze
Sp1derman20
Sp1derman20OP7mo ago
Im playing on the latest insanecraft modpack on minecraft 1.12.2. on curseforge and I added these mods to make it smoother: Texfix V-12-4.0 , stackie 1.12.2-1.3.5 , renderilib 1.12.2 1.3.5, phosphor 1.12.2-0.2.7, phosphor crashfix 1.12.2-1.0.0, particle culling 1.12.2 v1.4.3, lunatrius core 1.12.2-1.2.0.42, entity culling 1.12.2-6.4.3, chunk-pregenerator 1.12.2-4.4.8, carbonconfig 1.12.2-1.2.4. betterbiomeblend 1.12.2-1.1.7, ae2-uel v0.56.6, !configanytime-3.0, vintagefix 0.5.1, universal tweaks 1.12.2-1.11.0, [MixinCompat-1.1-1.12.2] !mixinbooter-8.0 (if i use the later versions universal tweaks stops working) and Mixinbootsrap-1.1.0. (I also added Vanilla fix but i would get midnight dimension errors and crashes saying the midnight was the reason so i took out vanillafix. I don't know why but any if dont move for 30 minutes my ram reaches 100% and i start freezing i have a profiler for this freeze here:https://spark.lucko.me/M3Mn7c9xNV. But another time is after about 4 hours of playing my ram maxes out and I start freezing as well i have this profiler here:https://spark.lucko.me/NFU6Gbp40J. If anybody has any insight or can help that would be wonderful Thanks in advance. Im using graalvm Java and I have these arguments:-XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSConcurrentMTEnabled -XX:parallelGCThreads=4 -Dsun.rmi.dgc.server.gcInterval=1800000 -XX:+UnlockExperimentalVMOptions -XX:+ExplicitGCInvokesConcurrent -XX:MaxGCPauseMillis=50 -XX:+AlwaysPreTouch -XX:+UseStringDeduplication -Dfml.ignorePatchDiscrepancies=true -Dfml.ignoreInvalidMinecraftCertificates=true -XX:-OmitStackTraceInFastThrow -XX:+OptimizeStringConcat -XX:+UseAdaptiveGCBoundary -XX:NewRatio=3 -Dfml.readTimeout=90 -XX:+UseFastAccessorMethods
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Skullians
Skullians7mo ago
sparks are useless because you’re running such an old ver

Did you find this page helpful?