Wacław The Developer
5 min readJul 19, 2022

--

Limitations

Attempt 1: Writing the server and client

* soft nofile 1000000
* hard nofile 1000000

Attempt 2: After rebooting the RaspberryPi — start the server part again and try to run the client.

sudo sysctl -w kern.maxfiles=1000000
sudo sysctl -w kern.maxfilesperproc=1000000
ulimit -S -n 1000000

Attempt 3: restarting the client part

sysctl -a | grep portrange
sudo sysctl -w net.inet.ip.portrange.first=1024
sudo sysctl -w net.inet.ip.portrange.hifirst=1024

Attempt 4:

Trying to optimize RAM usage

Adding the load

Where the problem can be?

Instead of conclusion

--

--