Linux Shell Network layer monitoring scripts (monitoring includes: number of connections, number of handles, and analysis based on monitoring feedback results)

Source: Internet
Author: User

Script monitoring:

The process that gets the maximum number of handles:

Link Analysis:

Script fragment:

Case"$handle" inch2) echo"The handle of the process:"Echo" "Handle| Awk'{print $ "\ n" \ n "\ $7" \ n " $9" \ n "$11" \ n "}'>Temp forIinch' Cat temp ' do PS-ef | grep $i | Awk'{print "{" $ "}" ":" "{" $8 "}" ":" "{" $ "}"}'|grep $i Done RM-RF Temp echo"after 5 Seconds of waiting, the previous page is automatically adjusted. To exit, press CTRL + C:"Sleep5            ;; 1) echo" Analysis"Echo" "                               if[$closewait-ge" -"] then echo"close_wait: $closewait"Echo"a large number of close_wait have not been released for a long time, resulting in slower system responsiveness and recommended modifications to the Linux kernel parameters http://cnblogs.com/javame"fi

Script Download:

http://download.csdn.net/detail/yiyu1/7369159

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.