Not the same category, but also an issue of growing server memory usage as server lifetime increases. The notable categories are System, CoreMemory:Total and System, PlaceMemory:Gui I’m not sure for how long this issue has been here because I really wasn’t paying enough attention to it until the past few days, but I’ve been working through my code. While I was originally finding some real leaks, I’ve hit a dead end. I can’t find anything else.
I joined this server with high memory usage to take a look, and have done so with many servers the past few days.
LuauHeap doesn’t reveal really any UI objects, which is confusing because I supposedly have a lot of GuiMemory in use.
There’s also only 31.8MB of data being taken up by LuauHeap, so this obviously isn’t the direction to look. I took a look at many existing objects across all areas of the game using a script, and everything reported back normal. There was nothing getting out of hand or any lingering objects. So I’m not holding references to things that need to go in scripts, but they’re also not in the DataModel, which as far as I know means they should be garbage collected.





CoreMemory and PlaceMemory are clearly the categories suffering from memory use, which is expected after seeing the graph. Somehow UntrackedMemory is actually negative?

According to the documentation, CoreMemory is not something I have control over. Yet it’s growing in size, which is disheartening because I would really like to get ahead of this memory leak and fix it. For the sake of reporting though, I’ll post the two worst subcategories of CoreMemory.


Besides those two, the rest of them aren’t really noteworthy. They are all just small pieces making up the rest of the memory usage. But then we can look at PlaceMemory, because the documentation says I do have control over that.

This is pretty much the entire memory usage. The next highest is Instances, which is only at 202 MB. But why would Gui take up so much memory? I already audited all GUI objects in this live server. There are no Player objects or PlayerGui left leaking in memory. There are no GUI objects themselves leaking. And when auditing the amount of GUI objects in the game, it’s all normal amounts that I expect. Yet this memory just grows and grows, despite my GUI count in the place not actually growing with it.
So what’s going on? Do I actually have control over it like the documentation says, or is there a leak in PlaceMemory that I can’t control? I really hope this can be addressed soon.
Edit: I actually do have the reported animation memory bug here, but it’s not as noticeable in my case as player deaths are not common.