kmp_rtmp_out_mem_limit
The `kmp_rtmp_out_mem_limit` directive sets a memory limit for outgoing RTMP streams in the Kaltura Media Framework.
Description
The kmp_rtmp_out_mem_limit directive is utilized within the Kaltura Media Framework to control the memory usage of outgoing Real-Time Messaging Protocol (RTMP) streams. This is particularly important in environments where resources are limited or where multiple streams are being handled simultaneously. By defining this limit, administrators can prevent excessive memory consumption by the RTMP streaming process, thereby ensuring that the server remains stable and responsive under load.
The parameter for this directive is a single value which specifies the maximum amount of memory (in bytes) that can be allocated for these outgoing streams. If the memory usage exceeds the specified limit, the behavior of the streaming process (such as buffering or stream termination) may be influenced according to the internal handling mechanisms of the Kaltura Media Framework. This helps maintain quality performance while serving streams to viewers, especially in peak usage scenarios.
To use this directive effectively, system administrators should analyze their streaming requirements and available server resources. It's recommended to monitor the memory usage of the streams to determine an appropriate limit that balances performance with resource availability. Misconfiguration could lead to stalling or dropped streams if set too low, or could unnecessarily constrain memory if set too high.
Config Example
stream {
kmp_rtmp_out_mem_limit 104857600; # Limit outgoing RTMP stream memory to 100MB
}Setting the limit too low can cause streams to drop or stall during high load.
If not set, the default behavior might result in unbounded memory usage, leading to server instability.