title: apache/mysql generate too many request on amazon centos
body: <p>My issue is, my website open too many connections in mysql server this is hanged my website and also generate many requests on apache. i have installed the apache module mod-evasive and mod-security i have also empty the iptables rules basically i am using amazon ec2 so it gives security ip i have blocked all outbound and inbound i have opened only 443,80 and ssh 22 port only but still when i take netstat it shows</p>
  
  <p>netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n</p>
  
  <pre><code>  4 --0.0.0.0
  
    4 ---119.159.195.199
  
   25 ---54.69.254.252
  
  374 ---
  </code></pre>
  
  <p>on above my question is why my server 374 apache connection on ::1:80 how can block this or reduce this</p>
  
  <p>mysql connection stat are</p>
  
  <p>+-------------------+-------+
  | Variable_name     | Value |
  +-------------------+-------+</p>
  
  <p>| Connections       | 5208  |</p>
  
  <p>| Threads_cached    | 0     |</p>
  
  <p>| Threads_connected | 54    |</p>
  
  <p>| Threads_created   | 5207  |</p>
  
  <p>| Threads_running   | 54    |</p>
  
  <p>+-------------------+-------+
  5 rows in set (0.00 sec)</p>
  
  <p>my second question is why my sql connections is increasing.</p>
  
  <p>Please any one help me i will really appreciated.</p>