mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-07 02:58:56 +00:00
If you have a lot of RAM, using only default percentages could potentially leave some RAM unused. These lua functions allow more precise control over the limits.
542 B
542 B
tags
| tags | |
|---|---|
|
kumo.set_memory_hard_limit(LIMIT)
{{since('dev')}}
Set the hard limit for memory utilization. This defaults to the amount of physical RAM in the system.
You typically do not need to modify this value.
See Memory Management for a discussion on how kumomta manages memory usage.
It is recommend to set this during the pre_init event.
The LIMIT is expressed as an integer number of bytes.
kumo.on('pre_init', function()
kumo.set_memory_hard_limit(2 * 1024 * 1024 * 1024)
end)