Translated message

A translation of this page exists in English.

如何减少 TIME WAIT 套接字的数量?

Solution In Progress - Updated -

Issue

  • 如何减少 TIME WAIT 套接字的数量?
  • 服务器上有大量的 TIME WAIT 套接字。如何减少它们?
    - netstatnetstat -an 命令显示几千个处于 TIME_WAIT 状态的连接,如下所示:

    tcp        0      0 ::ffff:10.0.0.1:53261  ::ffff:10.0.0.6:50000  TIME_WAIT
    tcp        0      0 ::ffff:10.0.0.1:52216  ::ffff:10.0.0.6:50000  TIME_WAIT
    tcp        0      0 ::ffff:10.0.0.1:51684  ::ffff:10.0.0.6:50000  TIME_WAIT
    tcp        0      0 ::ffff:10.0.0.1:50044  ::ffff:10.0.0.6:50000  TIME_WAIT
    .......
    
  • 运行 http、SQL、数据库、OSE 或任何其他 TCP 负载测试时的高 TIME WAIT

Environment

  • Red Hat Enterprise Linux
  • TCP 网络连接

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content