Urgent help with in-game memory issues

Hey devs,
In-game([NEW] Mystery’s Rage Obby - Roblox) I am experiencing memory problems. I could not test if it was high before, because I didn’t even have any players. Now that I have like 7 ccu, it looks like this, which is not good:


I have no clue what is causing this, but I heard that there are ways to find out?

client crash rate is also absurdly high:


I really do not know what is causing this but I am getting lag spikes aswell when I play the game with other players.
Any help is highly appreciated because I am currently sponsoring this game and this needs to be gone asap!


it rose to 2.3k this is so strange. Is it possible to check which script is actively running and which is causing this?

This actually isn’t that high of memory usage. It should be lower on more constrained devices which have less memory. Crash rates could also be caused by engine bugs.

You can use the LuauHeap tab of the Developer Console

1 Like

it immediately kicked me out of roblox when I clicked create snapshot

If the memory keeps increasing over time, then you probably wouldn’t find anything useful about that in the micro profiler, but about the lag spikes, the micro profiler is your best friend

To read the micro profiler, press ctrl + f6, wait for a lag spike, when when a lag spike occurs, press ctrl + p
At the top of the screen, each frame is represented as a column, with its height representing how long the frame took. Look out for very taller than normal frames. Click on it

By clicking on it, the bottom view moved to that frame. Scrolling left to right moves from earlier in the frame or even earlier frames, to later in the frame, or the later frames. You can see a lot of tasks, that are arranged in a general task (ie RunService.Heartbeat) to more specific tasks (ie accessing the property of a part). Taking the example of Heartbeat, every script that connects to Heartbeat will show under heartbeat, and operations performed by that script will show up under it, etc

Look out for tasks that take up a long time (span a long distance horizontally). If you hover on it, you can see how much time it took in milliseconds (as a reference point 60fps is 16.6ms per frame). Send a screenshot of anything you see for further help

Otherwise, there is a button to create a micro profiler dump, that can then be shared as an html file, somewhere in the menu at the top of the screen. If you send it to me, I can analyze it for you

See this link, for pictures, and more in depth explanations

2 Likes

I will try that out as soon as I have time, thanks! I have like 20 “moving” (animated) r15 statues randomly placed, serving as leaderboard statutes (for example best time/ highest stage/ etc.) I also have a self made script, that handles every single leaderboard data from every single leaderboard and saves it in only one global datastore every 2 minutes). after I added this, the memory was higher than usual. I do not know if this also causes the really high increasing memory, but it could be. Will check that out!

1 Like

You should report that as a bug if you haven’t already. Make sure to check the entire normal Memory tab first to see if anything problematic is visible through that.


I cant do anything :confused:
Is it possible for somebody else to create a snapshot? Im pretty clueless here