1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Perf: Limit the size of object cache pool

This commit is contained in:
winlin 2021-02-27 08:18:08 +08:00
parent 7b3b7381e2
commit a29d6cba68
6 changed files with 72 additions and 48 deletions

View file

@ -503,11 +503,11 @@ rtc_server {
# default: off
enabled off;
# The cache size for rtp packet in MB, each object is about 300B..
# default: 128
pkt_size 128.0;
# default: 64
pkt_size 64.0;
# The cache size for rtp payload in MB, each object is about 40B.
# default: 32
payload_size 32.0;
# default: 16
payload_size 16.0;
}
# For RTP shared message and the large buffer cache.
rtp_msg_cache {
@ -515,11 +515,11 @@ rtc_server {
# default: off
enabled off;
# The cache size for message object in MB, each object is about 40B.
# default: 32
msg_size 32.0;
# default: 16
msg_size 16.0;
# The cache size for message large buffer in MB, each object is about 1500B.
# default: 1024
buffer_size 1024.0;
# default: 512
buffer_size 512.0;
}
# The black-hole to copy packet to, for debugging.
# For example, when debugging Chrome publish stream, the received packets are encrypted cipher,