#Excessive memory usage

32 messages · Page 1 of 1 (latest)

lapis zealot
#

Im not 100% sure if this is Geyser of Floodgate issue, but i have the following problem.

Whenever a bedrock player tried to join the server, RAM usage increases for around 700MB for a couple of seconds.

This has caused OOMs on server with 8GB allocated RAM.

https://dump.geysermc.org/kGXvUrddAGTzW9wiepvjzGZjiWDNHNG5

Ill append screenshots under this message.

lunar ledgeBOT
lapis zealot
#

After increasing RAM to 10 Gigs (before connecting bedrock client)

#

while bedrock client is connecting

#

and then it falls down again, with increase of ~0.015GB

#

this is example of OOM when bedrock client tried to connect (before increasing to 10GB RAM)

#

The upgrade helped from instant OOM, to OOM every 20 ish bedrock connection attempts now

verbal cloud
#

Java will allocate all the memory you give it, if this memory isn't in use it doesn't give it to the os again, so having high memory usage is normal, the OOM error isn't however

lapis zealot
#

Hi, thank you for response.

Is there anything i can provide to try and track down the problem?

lunar ledgeBOT
verbal cloud
#

!!spark Spark report would be good

lunar ledgeBOT
# verbal cloud !!spark Spark report would be good

Spark is a plugin that helps you monitor performance for you server.
https://spark.lucko.me/download

To record performance on your server use:
/spark profiler --thread * --timeout 60. This will run for 60 seconds then it will automatically stop.
(On Velocity, replace /spark with /sparkv; on BungeeCord, replace with sparkb)
It'll probably lag the server a good deal but it'll give us a link we might be able to process.

verbal cloud
#

It's built-in to Paper and Purpur fyi, no need to download it

lapis zealot
#

personally cant find much from the profiler data up there, but i did do an "online" profiler and watched memory while bedrock account was joining the server

verbal cloud
#

I can't see too much from the spark reports

#

Just a question, does the OOM error happen without any bedrock players online?

lapis zealot
#

no

#

techincally

#

it happens on bedrock join, doesnt matter who is online

#

the short period of time, while bedrock is connecting

verbal cloud
#

Could you try recreate this with just Geyser and floodgate?

lapis zealot
#

Ill make a test server, might take a while

verbal cloud
#

that's not a problem

lapis zealot
#

Created a copy of server - same purpur version, geyser, floodgate and viaversion (it was required), seems completly fine, no OOM on 2GB allocated RAM

#

this is gonna be fun to debug which plugin has the leak

#

thank you for your help, ill try to figure out which plugin is being stupid

elder cliff
lapis zealot
#

no luck so far

lapis zealot
#

okay, so we found a temp patch for pterodactyl

lunar ledgeBOT