ts_kmp_video_mem_limit
Limits the memory allocation for video streaming processes in the Kaltura Media Framework.
Description
The ts_kmp_video_mem_limit directive sets a boundary on memory usage by video streaming processes, specifically in the context of the Kaltura Media Framework. This directive is crucial in managing system resources effectively to avoid excessive memory consumption that could potentially degrade performance or lead to system crashes. The limit is defined in bytes, allowing for fine-grained control over memory allocation according to the needs of your streaming service.
When the ts_kmp_video_mem_limit directive is configured, any attempts by the Kaltura Media Framework to allocate memory beyond this defined limit will be blocked. If a streaming process requires more memory than specified, it is prevented from proceeding, which protects the stability of the overall server environment. This directive is particularly useful when deploying media services in environments with limited resources or when running multiple services simultaneously on a single server. Administrators can adjust this limit based on monitoring metrics and performance insights.
This directive can be used in both the stream and stream server contexts, enhancing its applicability across different levels of NGINX configurations. Proper tuning of the ts_kmp_video_mem_limit can lead to improved performance by ensuring optimal resource allocation without wasting memory or overloading the system.
Config Example
stream {
server {
ts_kmp_video_mem_limit 256M;
}
}Setting the limit too low may cause streaming processes to fail due to insufficient memory.
Failing to test the configuration after making changes could lead to unexpected streaming interruptions.
If used incorrectly, this directive may inadvertently affect the user experience due to limitations on available resources.