0
点赞
收藏
分享

微信扫一扫

NioEndpoint_tomcat压测瓶颈

示意图

NioEndpoint_tomcat压测瓶颈_NioEndpoint

简述

1.  tomcat开启端口,通过backlog觉得TCP 半连接、全连接的大小。 ssl -lnt

2.  Nioendpoint 通过maxConnect latch控制accept接入通道连接的大小

3.  业务处理线程processor,通过线程池处理读取通道消息,线程池有最大线程数(默认200),队列为无限制长度的blockqueue.

代码入口

1.  org.apache.tomcat.util.net.NioEndpoint#bind

2.  org.apache.tomcat.util.net.Acceptor#run

3.  创建线程池 org.apache.tomcat.util.net.AbstractEndpoint#createExecutor

4.  提交任务 org.apache.tomcat.util.net.AbstractEndpoint#processSocket

举报

相关推荐

0 条评论