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
Hi there, as the title says it seems that GarbageCollection is not running on my server for some reason. Any ideas to fix this?
What makes you think your server isn't doing garbage collection?
include a spark profile? It tells you if it is
I will let the profiler run for a bit and return once i have more information. Appreciate the quick respons
/spark profiler open
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
where do i find the logs for spark?
just when you type
/spark profiler open
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
yeah, that's normal
It also for some reason seems to only detect 5gigs of ram when 12 is assigned
g1 old should be ideally less frequent
whats MSPT?
millisecond per tick
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.
Do you see any issues from the profiler?
you're not using the right flags to start your server
https://flags.sh
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?
Link to Iris in case it is relevant: https://polymart.org/resource/iris-dimension-engine.3623
Polymart
Iris - Dimension Engine
A Beautiful, Incredibly fast, fully customizable world generator. Create your own dimensions!
I mean, you can ask them what the preferred flags are
¯\_(ツ)_/¯
they just say to only use these:
-Dterminal.jline=false -Dterminal.ansi=true -jar server.jar
I don't understand how it can be the case :FrogeBIGEYES:
plus your xmx and xms flags of course
but if you're concerned about gc running, then changing your startup flags is what will change when GC runs
about the flags?
Yes
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.
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
So GC may not be the issue at all?
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
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
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
Im running a Dedi with 64GB
So changing the xmx or assigning additional ram should fix the issue?
also, you should apparently remove
-XX:+AlwaysPreTouch
when using pterodactyl/docker/shared hostshe aint using aikar flags
unless he changed to it now?
you should also assign like 2gb of swap if you can
assign it 14 and keep xmx at what it is at now
and do remove alwayspretouch if u end up using aikar's flags
like this? or do i assign an additional 2 gigs if i wanna use swap?
have u enabled docker swap in general?
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?
(type
docker info
), it'll have a warning if you haven'tall good here?
it would look like this at the very bottom
live restore is false on my end
oh that's fine, you'd never use it
only care about the swap warning
i dont see any warnings
Should i assign additional ram if i want to use Swap?
assigned: 14
xmx: 12
swap: 2
yeah, probably best to
so set assigned to 16?
you only want to enable swap to ensure it won't crash
^^
you shouldn't rely on it
swap heap is not good
so what should i set my settings to?
I would do
xmx: 10
pterodactyl: 12
swap: 2
aight Ill run with those then. Appreciate the help lads 😄