Skip to content

kumo.set_memory_hard_limit(LIMIT)

Since: Dev Builds Only

The functionality described in this section requires a dev build of KumoMTA. You can obtain a dev build by following the instructions in the Installation section.

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)