๐คธโโ๏ธTips & Tricks
Ensure the best performance from your bot
Windows connection port increase
$KeyPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"
Set-ItemProperty -Path $KeyPath -Name "MaxUserPort" -Value 65534
netsh int ipv4 set dynamicport tcp start=10000 num=50000 #not required, do this if you have TCP errorLinux file descriptor limit increase & buffer size increase
# ulimits
echo "fs.file-max = 999999" >> /etc/sysctl.conf
sysctl -w net.core.rmem_max=2500000
sysctl -p
echo "* hard nofile 999999" >> /etc/security/limits.conf
echo "* soft nofile 999999" >> /etc/security/limits.conf
echo "root hard nofile 999999" >> /etc/security/limits.conf
echo "root soft nofile 999999" >> /etc/security/limits.confLast updated