知识卡片

问题卡 · 2630.g

慢客户端耗尽工作线程

理解等级:中级

部分客户端网络慢时,服务向它们读写可能长时间阻塞工作线程,即使请求速率不大,可用于其他用户的线程也逐步减少,吞吐不断恶化。这不是单纯CPU不够。通过线程状态、I/O等待与连接行为分析才能识别;全非阻塞处理能缓解该类占线程问题,但不会取消连接、缓冲区和其他资源的限制。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 构建稳定系统 · 查看原书依据

      In this case, some clients talking to the system were behind a slow network (mobile phone), and reading from and writing to those clients blocked worker threads in the ESB, effectively reducing the number of effective threads in the ESB.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第12章《Building Stable Systems》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch12.xhtml) - 结论依据:摘录说明部分客户端网络慢时,服务向它们读写可能长时间阻塞工作线程,即使请求速率不大,可用于其他用户的线程也逐步减少,吞吐不断恶化。其余条件结合本章相邻例子与取舍说明,数字示例不作当前性能承诺。 - 原始内容:In this case, some clients talking to the system were behind a slow network (mobile phone), and reading from and writing to those clients blocked worker threads in the ESB, effectively reducing the number of effective threads in the ESB.