Files
kumomta/docs/reference/kumo/set_memory_hard_limit.md
T
Wez Furlong 7cf6b93783 memory: allow setting soft and low memory limit/thresholds
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.
2025-02-20 12:06:12 -07:00

542 B

tags
tags
memory

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)