The config monitor task is a long-lived task that runs inside the same lua context for its entire lifetime. That task obtains a reference to the current shaping data every 30 seconds to decide whether it needs to synthesize an update to the config epoch. Lua's memory management cannot see the total amount of ram consumed by the shaping data because the shaping data is a userdata type whose ram is managed externally. That means that lua things that this task is generally not using many resources (~ a handful of pointers per loop iteration) and gc doesn't kick in very aggressively. For sites with large TSA shaping overrides, or otherwise with very large shaping data, this can result in an accumulation of stale shaping data in that long-lived lua context. This commit adds an explicit gc trigger before the task sleeps on each iteration so that we can release those references.
KumoMTA
KumoMTA is an open-source Message Transfer Agent (MTA) designed for high-performance outbound email functionality, similar to commercial enterprise MTAs such as Momentum, PowerMTA, and Halon.
The KumoMTA project was founded by a group of email industry veterans with decades of experience building and managing high-performance On-Prem MTAs and is supported by a community of some of the largest senders in the world.
Because it is designed for high-performance sending environments, KumoMTA is for experienced email operations professionals who are accustomed to high-performance sending environments and familiar with DevOps practices.
Learn more in our FAQ and at https://kumomta.com/.
Documentation
You can learn more about KumoMTA from the Documentation.
Community
Real-time discussion is available on Our Discord.
Developers
If you are interested in contributing/extending KumoMTA, take a look at DEVELOPERS.md. The #devel channel on Our Discord is for contributors to discuss KumoMTA development.
Reporting Bugs
See How to Report Bugs.
Getting Help
See How to Get Help. For paid support see https://kumomta.com/support.
Getting Updates
You can subscribe to updates at https://kumomta.com/subscribe, we send updates periodically and will never sell nor share your information.
Talk to Us
We're available to talk about the project, book us at https://cal.com/team/kumomta/talk-with-kumomta.