SA常用命令

1.查看Apache的并发请求数及其TCP连接状态:

Linux命令:
    netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

返回结果示例:
  LAST_ACK 5
  SYN_RECV 30
  ESTABLISHED 1597
  FIN_WAIT1 51
  FIN_WAIT2 504
  TIME_WAIT 1057

具体解释参考: http://hi.baidu.com/packetslost/blog/item/ea8bc9c398be9551b219a836.html

你可能感兴趣的:(apache,linux,Blog)