symfony / swiftmailer-bundle

Symfony Swiftmailer Bundle
https://symfony.com/swiftmailer-bundle
MIT License
1.56k stars 151 forks source link

Logging enabled creates memory leaks in long-living apps/commands #303

Closed proArtex closed 4 years ago

proArtex commented 4 years ago

As per doc, "logging" is set to %kernel.debug% by default, which creates memory leaks in consumers and long-living commands with debug enabled. The leakage itself is in MessageLogger plugin that only appends messages. The details are here. I wonder if there is any solution already? We could find a way to distinguish a long living process/command and set "logging" from a variable.

fabpot commented 4 years ago

Closing as the issue is in Swiftmailer itself.