Try just counting the ESTABLISHED connections:
netstat -anp | grep :80 | grep ESTABLISHED | wc -l
Also, be careful about not using a colon in your port grep statement. Just looking for 80 can lead to erroneous results from pids and other ports that happen to have the characters 80 in their output.
Related Contents:
- What permissions should my website files/folders have on a Linux webserver?
- What’s the best way of handling permissions for Apache 2’s user www-data in /var/www?
- How to list Apache enabled modules?
- What limits the maximum number of connections on a Linux server?
- How do I redirect subdomains to a different port on the same server?
- How to handle relative urls correctly with a reverse proxy
- Apache 2 startup warning: NameVirtualHost *:80 has no VirtualHosts
- best way to debug nginx rewrite rules in config file?
- Apache “Client denied by server configuration”, despite allowing access to directory (vhost configuration)
- What does the suffix .d mean in Linux?
- Can an SSL certificate be on a single line in a file (no line breaks)?
- How to install Apache Benchmark on CentOS?
- How do I get Apache to startup at bootime on Linux?
- Is there a way to install Apache Bench (ab) without installing apache
- Is a central location for authorized_keys a good idea?
- How do you Install PHP5 without installing Apache in ubuntu?
- How to Exclude an URL for Apache Mod_proxy?
- RSA certificate configured for SERVER does NOT include an ID which matches the server name
- Securing PHP webservers
- kworker consuming +90% IO and zero disk write
- Non-interactive creation of SSL certificate requests
- A domain I’ve never heard of resolves to my website [duplicate]
- Apache logs other user read permissions [closed]
- What dir should I deploy Rails apps into?
- Server under DDOS attack – How to find out IPs?
- Subversion error: Repository moved permanently to please relocate
- Turn off error and access logs for one virtual host
- Find out what high CPU usage apache process is actually doing?
- Why would a hosting provider not allow SSL over port 443? [closed]
- How to stress test an apache server running on a linux box
- Cannot access port 80 from remote location but works on local?
- 500 Internal Server Error – Invalid command ‘Header’ in .htaccess
- How to fetch ./configure parameters used at last time?
- How to investigate a memory leak with Apache and PHP?
- Preventing other applications from binding to port 80 and 443
- How do I assign an SELinux label to a symlink with semanage so it persists after a relabel?
- In Ubuntu I make changes to php.ini but nothing happens
- Automatically modify iptables based on Apache log data to block badly behaved clients
- Apache performance degrades dramatically above ~256 simultaneous requests
- Permission denied: /home/.htaccess pcfg_openfile: unable to check htaccess file
- .htaccess RewriteCond for REMOTE_ADDR while behind Load Balancer?
- Apache, suexec, PHP, suPHP
- Apache / httpd not starting automatically on boot
- FTP and Apache permission issues
- How do I know what an apache process is doing?
- Integrated Windows Authentication with Apache HTTP Server on Linux
- Is there a way to delete/truncate a file while a process is writing to it?
- Deleting very large file without webserver freezing
- How can I programmatically create a new cron job?
- Linux: compute a single hash for a given folder & contents?