mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

639
comptes actifs

#symfony

16 messages10 participants1 message aujourd’hui

How do you usually deal with memory leaks in PHP (Symfony)? I juggle in an isolated process with a massive number of data sets that I load in batches via Doctrine, process, and then detach via the entity manager using `clear`, including a call to `gc_collect_cycles`, after unsetting the result array. There aren't any variables that have a reference anymore. The units of work from the entity manager are also empty. But the memory usage keeps going up.

UPDATE: found the leak in a third party API client 😄

#php#Doctrine#symfony

🎤 Speaker announcement!
Pimcore Community Dev Days

We are thrilled to announce that Stefan Priebsch will be joining us on stage at the Pimcore Community Dev Days on 13 November! In his talk, 'Why Clean Code Matters', Stefan will explore the key principles of creating sustainable, maintainable and scalable software. There'll be no fluff – just real before-and-after examples and insights that you can apply immediately. Whether you’re building with Pimcore, @symfony or any other modern PHP stack, this session will hone your skills and mindset.

📍 Frankfurt am Main
📅 13 November 2025

ℹ️ Find out more 🔗 t1p.de/exsej
🎟️ Get your ticket 🔗 t1p.de/hlbkj