Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Checking network connections in a server  (Read 4528 times)

0 Members and 1 Guest are viewing this topic.

rohitj

  • Guest
Checking network connections in a server
« on: November 16, 2013, 09:59:53 pm »
Checking network connections in a server

In order to view all the current connections and the IP

-----------
netstat -anp | grep 80 | awk ‘{print $5}’ | cut -f1 -d: | sort | uniq -c | sort -n
-----------

To detect syn flood attack

-----------
netstat -plan | grep :80 | grep SYN_RECV | wc -l
-----------

Max child process size can be determined using the command :

--------
ps -ylC httpd –sort:rss
---------

The total memory usage for the webserver can be determined using the command :

----------
ps -ylC httpd –sort:rss | awk ‘{a+=$8}END{print a}’
----------