ts_kmp_audio_mem_limit
The 'ts_kmp_audio_mem_limit' directive sets a memory limit for Kaltura Media Protocol (KMP) audio streams in NGINX.
Description
The 'ts_kmp_audio_mem_limit' directive is a configuration parameter within the Kaltura Media Framework Common NGINX Module that specifically designates a memory limit allocated for handling audio streams processed through Kaltura Media Protocol (KMP). By specifying this memory limit, administrators can control the amount of server memory that is reserved for audio streams, thereby optimizing resource allocation and preventing memory overload issues. This is particularly useful in scenarios with numerous concurrent audio streams where memory utilization can peak and adversely affect server performance.
The directive functions by expecting a single argument that denotes the maximum amount of memory (in bytes) that should be allocated for audio processing. If the allocated memory exceeds this set limit, Kaltura media components may automatically adjust their processing behavior or throttle requests to maintain stability. This dynamic memory management ensures that even under load, the server can handle audio streams efficiently without incurring performance degradation or crashes due to excessive memory usage.
Config Example
stream {
server {
ts_kmp_audio_mem_limit 104857600; # Limit set to 100MB
}
}If not configured properly, it can lead to audio dropouts if the memory limit is too low.
Needs to be set according to the overall server capacity and expected audio streaming load.