kmp_rtmp_in_mem_limit

Sets the maximum memory limit for Kaltura RTMP input streams.

Syntaxkmp_rtmp_in_mem_limit size;
Defaultnone
Contextstream, stream server
Arguments1

Description

The kmp_rtmp_in_mem_limit directive specifies a memory limit for RTMP input streams processed by the Kaltura Media Framework. When an incoming RTMP stream exceeds this memory limit, the excess data will not be processed, potentially leading to data loss.

This directive can be configured within the stream or stream server contexts, allowing users to set appropriate memory thresholds based on the expected workload. The memory limit is defined in bytes, and it helps manage server resources effectively, preventing excessive memory usage during high-load periods.

Care should be taken when setting this limit; if the value is too low, it may result in interruptions in streaming functionality or quality degradation if important data is discarded. Conversely, a very high value may lead to inefficient resource utilization. Hence, careful monitoring and adjustment of this value in accordance with application requirements and server capabilities are recommended.

Config Example

stream {
    server {
        kmp_rtmp_in_mem_limit 10485760;  # Limit set to 10 MB
    }
}

Setting the memory limit too low can lead to data loss during high loads.

Not adjusting the limit according to actual usage may result in wasted resources or application failures.

← Back to all directives