Server Untracked Memory Issue

After doing some testing for my game, I noticed that the Untracked Memory on the server rises as a player joins or leaves the game. After removing various scripts and checking for anything that is not being removed such as tables that are set upon the player joining, I can’t seem to find the issue. I use various different ProfileStores in my game with ProfileService, but I do not believe that’s the issue. I was able to reduce the spike of untracked memory significantly when removing a VideoFrame from the StarterGui contents, but the spikes still seem to make the untracked memory constantly go up.

Here are some screenshots of the spikes:



In this second image, the first tick up is when the player leaves. Once that same player rejoins, the untracked memory spikes back down which is a very odd observation.

^ Two players joining the game at around the same time.

Is this something that I should worry about in terms of the games performance and the server possibly crashing after the server has been up for a while? After reviewing my scripts multiple times, it doesn’t seem as if something is not being handled right such as tables not being removed, or any connections are not being properly disconnected when needed.

Any feedback would be appreciated.

Thanks,

  • Nick
2 Likes

Could be a memory leak in the scripts possibly because you are not getting rid of redundant data.

After reviewing my scripts various times, I highly doubt this is the issue. My data is all cleaned from tables when the player has left the game. Disabling scripts that involved datastores did not lower this spike much.

Honestly, assuming everything is right it could be roblox using that memory, I don’t know much about what goes in the background except what you get from what roblox gives us info on. I’d recommend to have a script that gets the players to reconnect to another server after like 24 hours of runtime and shut it down to clear any floating errors and unintentional memory leaks that could become real issues after a while.

I think it still could be something you are missing but I can’t tell with nothing than a graph provided. Either way if this becomes a greater issue I’d then be more concerned with it, try testing it with more players and note the data to see if it is a real issue.

1 Like

Appreciate the feedback, I’ll definitely look over my scripts again, although I can’t seem to find any issue. Thanks! :smile:

I honestly don’t think you should worry, many memory leaks or spikes happen like this. the most likely reason this is happening is because of a player. usually taking up memory which could happen, also exploiters may take up the game’s memory. to be safe search for “memory” or “data” in a devfourm post, and see how you could prevent players from losing game time/items.