The max tcp connection for one ip should be around 30K, I used 2 clients (one is in China, one is in Taiwan), to fire ab test. I got the same result. Could you tell me the linux command that can show I run out of tcp connections?
thanks.
I am using go 1.10.1
Do you suggest I use prometheus to monitor my simple api server? I have alibab cloud monitor tool and some linux command. Are there some specific parameters that I have to watch?
I don’t have an error message about “nf_conntrack”, but I have this one “request_sock_TCP: Possible SYN flooding on port 7000. Sending cookies”.
My /etc/sysctl.conf is following:
vm.swappiness = 0
net.ipv4.neigh.default.gc_stale_time=120
Prometheus is cool, you could find many information once you start tracking metrics. We use it to monitor our http clients so this is from another side. Even if you do not track anything special, Prometheus will show some preset metrics and then you may add more custom stuff. Can if be that some firewall limits your connections or something else? I mean at Alibaba infrastructure, they must have such things.