Crashlog. GarbageCollection seems to not run

mclo.gs
Purpur 1.19.4 Server Log [#f7bMRkD]
6184 lines | 71 errors | 2 problems automatically detected
59 Replies
Had2FlushTwice (@ Me With Reply)
Hi there, as the title says it seems that GarbageCollection is not running on my server for some reason. Any ideas to fix this?
Discount Milk
Discount Milk2y ago
What makes you think your server isn't doing garbage collection?
Snow Kit
Snow Kit2y ago
include a spark profile? It tells you if it is
Had2FlushTwice (@ Me With Reply)
I will let the profiler run for a bit and return once i have more information. Appreciate the quick respons
itsmerioooo
itsmerioooo2y ago
/spark profiler open
Snow Kit
Snow Kit2y ago
you don't have to let it run for GC stats, from my understanding GC stats are always logged, regaurdless of if the profiler is running
Had2FlushTwice (@ Me With Reply)
where do i find the logs for spark?
Snow Kit
Snow Kit2y ago
just when you type /spark profiler open
Had2FlushTwice (@ Me With Reply)
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Snow Kit
Snow Kit2y ago
yeah, that's normal
Had2FlushTwice (@ Me With Reply)
It also for some reason seems to only detect 5gigs of ram when 12 is assigned
Snow Kit
Snow Kit2y ago
g1 old should be ideally less frequent
Had2FlushTwice (@ Me With Reply)
whats MSPT?
Snow Kit
Snow Kit2y ago
millisecond per tick
Snow Kit
Snow Kit2y ago
Using the viewer | spark docs
Once you have created a profile using the /spark profiler command, your profile will be automatically uploaded to the viewer and you will be presented with a link.
Had2FlushTwice (@ Me With Reply)
Do you see any issues from the profiler?
Snow Kit
Snow Kit2y ago
you're not using the right flags to start your server https://flags.sh
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Had2FlushTwice (@ Me With Reply)
Ive been told multiple times from Iris discord that these flags are outdated and generally bad to use and also incompatible with Iris world generator which I'm using is that a false statement?
Had2FlushTwice (@ Me With Reply)
Polymart
Iris - Dimension Engine
A Beautiful, Incredibly fast, fully customizable world generator. Create your own dimensions!
Snow Kit
Snow Kit2y ago
I mean, you can ask them what the preferred flags are ¯\_(ツ)_/¯
Had2FlushTwice (@ Me With Reply)
they just say to only use these: -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar
Discount Milk
Discount Milk2y ago
I don't understand how it can be the case :FrogeBIGEYES:
Had2FlushTwice (@ Me With Reply)
plus your xmx and xms flags of course
Snow Kit
Snow Kit2y ago
but if you're concerned about gc running, then changing your startup flags is what will change when GC runs
Had2FlushTwice (@ Me With Reply)
about the flags?
Discount Milk
Discount Milk2y ago
Yes
Had2FlushTwice (@ Me With Reply)
Not sure. Just made the changes i was told from the staff at Iris Discord Tho i have a feeling that what they are saying may not necessarily be true but rather just a statement they use to get out of fixing whatever is going with their plugin and world gen while using the flags. They also claim their plugin is Highly Optimized tho i have yet to see anything to back that op. Matter of fact i have only seen evidence of the opposite.
Snow Kit
Snow Kit2y ago
Everything that aikar's flags do should improve garbage collection and make g1 old occur less frequently (taking it from once every 45 seconds all the way up to once every 2 hours or such) You also only had 2 players on, which will also make GC less frequent in general, as less stuff is going on
Had2FlushTwice (@ Me With Reply)
So GC may not be the issue at all?
Snow Kit
Snow Kit2y ago
this is because only 5gb was allocated (think about how much memory shows in top/task manager) I see no issues. If you're complaining about a lag spike every minute, then that'll be g1 old and the solution is aikar's flags
Had2FlushTwice (@ Me With Reply)
12 has been allocated since day one of this server instance. Any idea why spark only seems to detect 5? Performance generally is 10/10 tho the server will crash with a "out of memory" error everytime all the allocated ram is used
No description
No description
Snow Kit
Snow Kit2y ago
When setting the Xms and Xmx values, if your host says you have 8000M memory, DO NOT USE 8000M! Minecraft (and Java) needs additional memory on top of that Xmx parameter. It is recommended to reduce your Xmx/Xms by about 1000-1500M to avoid running out of memory or "OOMKiller" hitting your server. This also leaves room for the Operating System to use memory too. Have 8000M memory? Use 6500M for safety.
When setting the Xms and Xmx values, if your host says you have 8000M memory, DO NOT USE 8000M! Minecraft (and Java) needs additional memory on top of that Xmx parameter. It is recommended to reduce your Xmx/Xms by about 1000-1500M to avoid running out of memory or "OOMKiller" hitting your server. This also leaves room for the Operating System to use memory too. Have 8000M memory? Use 6500M for safety.
ProGamingDk
ProGamingDk2y ago
panel shows and acts on reserved ram not actual usage having xmx the same as what you have given it on pterodactyl will lead to OOM issues change it to 10-11G
Had2FlushTwice (@ Me With Reply)
Im running a Dedi with 64GB So changing the xmx or assigning additional ram should fix the issue?
Snow Kit
Snow Kit2y ago
also, you should apparently remove -XX:+AlwaysPreTouch when using pterodactyl/docker/shared hosts
ProGamingDk
ProGamingDk2y ago
he aint using aikar flags unless he changed to it now?
Snow Kit
Snow Kit2y ago
you should also assign like 2gb of swap if you can
ProGamingDk
ProGamingDk2y ago
assign it 14 and keep xmx at what it is at now and do remove alwayspretouch if u end up using aikar's flags
Had2FlushTwice (@ Me With Reply)
like this? or do i assign an additional 2 gigs if i wanna use swap?
ProGamingDk
ProGamingDk2y ago
have u enabled docker swap in general?
Had2FlushTwice (@ Me With Reply)
ill run without Akair flags for now as evidentally it messes up the Iris plugin im using is that something i need to enable elsewhere?
Snow Kit
Snow Kit2y ago
(type docker info), it'll have a warning if you haven't
Had2FlushTwice (@ Me With Reply)
all good here?
Snow Kit
Snow Kit2y ago
it would look like this at the very bottom
No description
Had2FlushTwice (@ Me With Reply)
live restore is false on my end
Snow Kit
Snow Kit2y ago
oh that's fine, you'd never use it only care about the swap warning
Had2FlushTwice (@ Me With Reply)
i dont see any warnings Should i assign additional ram if i want to use Swap? assigned: 14 xmx: 12 swap: 2
Snow Kit
Snow Kit2y ago
yeah, probably best to
Had2FlushTwice (@ Me With Reply)
so set assigned to 16?
Snow Kit
Snow Kit2y ago
you only want to enable swap to ensure it won't crash
ProGamingDk
ProGamingDk2y ago
^^
Snow Kit
Snow Kit2y ago
you shouldn't rely on it
ProGamingDk
ProGamingDk2y ago
swap heap is not good
Had2FlushTwice (@ Me With Reply)
so what should i set my settings to?
Snow Kit
Snow Kit2y ago
I would do xmx: 10 pterodactyl: 12 swap: 2
Had2FlushTwice (@ Me With Reply)
aight Ill run with those then. Appreciate the help lads 😄

Did you find this page helpful?