Don't hold unecessary data. Clear unneeded entries and/or properties. If you're dealing with player related properties then You're better using Session class and do ::create ::close Read this article, hope it helps:https://scoutapm.com/blog/php-memory-leaks-how-to-find-and-fix-them