Not really a network guy so please bear with me.
I'm currently hosting a web application that sends UDP to all IP addresses in it's subnet periodically. That's 2048 IPs. My problem is it throws No buffer space available
after sometime.
I adjusted some values using sysctl
namely:
net.ipv4.neigh.default.gc_thresh1 = 2048
net.ipv4.neigh.default.gc_thresh2 = 4096
net.ipv4.neigh.default.gc_thresh3 = 8192
And it worked, but severely slows down the response time of the server. It's written in Java
and running in a fit-pc2 (1.1ghz, 1gb of RAM, SD card) Oh the horror.
Given the limited resources, how do I optimize the server/kernel parameters to address the No buffer space available
problem?