killall Command
This command is used to kill all the processes ( parent process and child process ).
Example:
root@server [~]$ killall -9 httpd
Checking the number of connection's to the server [ netstat, mysqladmin processlist ]
netstat
This command is used to find the number of connections to the server. " netstat " command will list all the connections using httpd, exim, ftp etc. You can grep the needed port and find the number of connections to a particular port. You can find the Local Address, Foreign Address, State, port etc of all the connections.
Example:
root@server [~]$ netstat -plan
or
root@server [~]$ netstat -plan | grep ":80"
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 15496/httpd
tcp 0 0 65.254.34.21:80 165.21.14.92:42469 SYN_RECV -
tcp 0 0 65.254.34.21:80 71.7.8.253:3922 SYN_RECV -
tcp 0 0 65.254.34.21:80 165.21.154.10:28343 SYN_RECV -
tcp 0 0 65.254.34.21:80 85.100.25.208:2157 TIME_WAIT -
This command is used to kill all the processes ( parent process and child process ).
Example:
root@server [~]$ killall -9 httpd
Checking the number of connection's to the server [ netstat, mysqladmin processlist ]
netstat
This command is used to find the number of connections to the server. " netstat " command will list all the connections using httpd, exim, ftp etc. You can grep the needed port and find the number of connections to a particular port. You can find the Local Address, Foreign Address, State, port etc of all the connections.
Example:
root@server [~]$ netstat -plan
or
root@server [~]$ netstat -plan | grep ":80"
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 15496/httpd
tcp 0 0 65.254.34.21:80 165.21.14.92:42469 SYN_RECV -
tcp 0 0 65.254.34.21:80 71.7.8.253:3922 SYN_RECV -
tcp 0 0 65.254.34.21:80 165.21.154.10:28343 SYN_RECV -
tcp 0 0 65.254.34.21:80 85.100.25.208:2157 TIME_WAIT -