Difference between my game old and new server memory, how would I find the source of the memory leak?

Difference between my game old and new server memory, how would I find the source of the memory leak?


By looking at the elements which have increased the most in terms of memory consumption.

Memory leaks most likely happen when you connect lots of events that you use but don’t disconnect them when you don’t need them. So this issue is most likely because of how many events you have connected.

1 Like

I have changed value events for values for players that join the game
player.Data.Coins.Changed:Connect(UpdateCoins)
are these automatically disconnected when the player leaves?

I currently don’t know, but maybe you can look it up!