So I've noticed that my server memory has been getting higher and higher as the server goes on. Eventually, it crashes the server. This is causing players to lag and everything to just lag. I don't want the server to just crash and people losing their data not save. This would be horrible. So I need to learn about memory leaks and how to avoid them. I've looked around and can't find much information about it. Adding and removing parts can cause high memory, but I haven't done any of that... How do I avoid memory leaks? What can I do with my code to avoid it? How can I identify the problem?
COMMUNITY QUESTION
My server memory goes higher and higher, eventually causing the server to crash? (Memory leak)
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
Are you firing alot of events in a small amount of time?
Can't do much without info on how you scripts look. A post I have saved on the devforum though: https://devforum.roblox.com/t/psa-connections-can-memory-leak-instances/90082
@xPolarium Well, I don't know how they're supposed to look? Like what causes memory leak? I'm not creating tons of instances.
Some stuffs parented to nil and create another one?
created*
Nothing is parented to nil. I don't have a reason to ever do that.