I have a Google Cloud VM instance running Debian and a dockerized Apache httpd inside. I'm trying to count all the http connections in the machine.
I run this:
for i in {1..1000}; do netstat -at | wc -l; sleep 0.2; done
and then I run multiple concurrent http requests, using JMeter, but count doesn't change.
If I execute it inside the Apache container, it works fine because traffic is forwarded to the container. But I would like to see it in the host machine. Is this possible?