kmp_video_mem_limit
The `kmp_video_mem_limit` directive sets a limit on the amount of memory that can be allocated for video processing in the Kaltura Media Framework.
Description
The kmp_video_mem_limit directive is pivotal for managing resource allocation in video processing applications that utilize the Kaltura Media Framework. It allows administrators to specify a precise limit on the amount of memory that can be consumed for handling video streams, which is essential for optimizing performance and preventing resource exhaustion. By setting this limit, users can ensure that their NGINX server maintains stable operation, especially under heavy load when multiple video processing tasks are running concurrently.
This directive takes a single argument that specifies the maximum memory limit, typically expressed in bytes, kilobytes (K), megabytes (M), or gigabytes (G). For instance, if a server is limited to using 512MB for video processing, setting the directive to '512M' would enforce this upper bound. When the video processing tasks attempt to allocate memory beyond this limit, the server will take appropriate actions, such as rejecting requests or throttling performance to stay within the configured memory constraints. This balances system load and helps maintain service availability.
Config Example
kmp_video_mem_limit 512M;
Ensure that the specified memory limit is appropriate for the expected load and available resources on the server to avoid performance degradation.
Exceeding the limit may cause requests to fail or the server to reject streams, so monitor usage to adjust the limit as needed.