kmp_cc_out_mem_high_watermark
Sets the high watermark for memory usage in the Kaltura Media Framework during streaming operations.
Description
The kmp_cc_out_mem_high_watermark directive in the Kaltura Media Framework (KMP) module allows administrators to define a memory usage threshold that helps to manage the memory allocated for streaming operations. This directive is crucial for ensuring that memory resources are monitored and controlled, preventing situations where the application might exhaust available memory, leading to performance degradation or crashes.
When a streaming operation is initiated, memory is allocated based on the size of the media being processed. By setting the kmp_cc_out_mem_high_watermark, the system keeps track of its memory usage and will take action (such as pausing or limiting new streams) if the allocated memory approaches this set value. This proactive approach aids in maintaining a stable environment, especially during peak loads when memory consumption can dramatically fluctuate.
The parameter specified for this directive is a single numeric value, which represents the maximum amount of memory (in bytes) that the application is allowed to use. If the high watermark limit is reached, the system can respond according to the configured behavior, such as declining new requests or notifying system administrators about potential issues. This makes proper configuration of this directive essential for optimal performance and reliability of media streaming services.
Config Example
stream {
server {
kmp_cc_out_mem_high_watermark 104857600; # Sets the high watermark to 100MB
}
}Ensure that the value set does not exceed the server's available memory, as this may lead to instability.
Monitor application logs for any memory-related warnings or errors after applying this directive to adjust the value as necessary.