I have problem in my game, the server memory slowly increase by the time and reach to a very insane amount of memory it can reach up to 6.2gb but I don’t know how to spot and stop memory leak
To find the source, one method I like to use is disabling everything one by one until it stops happening. Once you find the source, look for any kind of variables or connections that might not be getting cleaned up.
How you gonna know that when it need like 30 mins+ to get the amount of memory? I can’t just disable all and wait 30 min for each script to check it out if it happens or no
In that case, you might want to see what actions causes it to happen. If it just happens over time while you do nothing, then it comes from code that is running independent from player input. Try to narrow it down based on what triggers it.