Skip to content

Ant Media Server Optimization

Murat Ugur Eminoglu edited this page May 17, 2022 · 6 revisions

Attention: We have migrated our documentation to our new platform, Ant Media Resources. Please follow this link for the latest and up-to-date documentation.

1. Kernel Network Tuning Parameters

  • To set UDP Buffer size to 25Mb, run the below lines.
sysctl -w net.core.rmem_max=26214400
sysctl -w net.core.wmem_max=26214400
sysctl -w net.core.rmem_default=26214400
sysctl -w net.core.wmem_default=26214400
  • if your Linux server needs lots of outgoing network connections, you can increase the local port range.
sysctl -w net.ipv4.ip_local_port_range = 1024 65000
  • If the maximum File Descriptors is low, you can increase it with the following command.
cat /proc/sys/fs/file-max
sysctl -w fs.file-max = 1496257

2. You can change the maximum number of processes (nproc) and the maximum number of open file descriptors (nofile) limits by running the following command.

cat << EOF >> /etc/security/limits.conf
	root soft     nproc          65535    
	root hard     nproc          65535   
	root soft     nofile         65535   
	root hard     nofile         65535

	antmedia soft     nproc          65535
	antmedia hard     nproc          65535
	antmedia soft     nofile         65535
	antmedia hard     nofile         65535
EOF

User Guide

Reference

Troubleshooting

Draft

Proposals

Clone this wiki locally