spring boot 中默认最大线程连接数,线程池数配置查看
2023-04-18 13:15:33 时间
本文为博主原创,转载请注明出处:
可以查看 AbstractEndpoint 源码中的常量的定义:
public abstract class AbstractEndpoint<S, U> { protected static final StringManager sm = StringManager.getManager(AbstractEndpoint.class); protected volatile boolean running = false; protected volatile boolean paused = false; protected volatile boolean internalExecutor = true; private volatile LimitLatch connectionLimitLatch = null; protected final SocketProperties socketProperties = new SocketProperties(); protected Acceptor<U> acceptor; protected SynchronizedStack<SocketProcessorBase<S>> processorCache; private ObjectName oname = null; protected Map<U, SocketWrapperBase<S>> connections = new ConcurrentHashMap(); private String defaultSSLHostConfigName = "_default_"; protected ConcurrentMap<String, SSLHostConfig> sslHostConfigs = new ConcurrentHashMap(); private boolean useSendfile = true; private long executorTerminationTimeoutMillis = 5000L; protected int acceptorThreadCount = 1; protected int acceptorThreadPriority = 5; private int maxConnections = 8192; private Executor executor = null; private ScheduledExecutorService utilityExecutor = null; private int port = -1; private int portOffset = 0; private InetAddress address; private int acceptCount = 100; private boolean bindOnInit = true; private volatile AbstractEndpoint.BindState bindState; private Integer keepAliveTimeout; private boolean SSLEnabled; private int minSpareThreads; private int maxThreads; protected int threadPriority; private int maxKeepAliveRequests; private String name; private String domain; private boolean daemon; private boolean useAsyncIO; protected final List<String> negotiableProtocols; private AbstractEndpoint.Handler<S> handler; protected HashMap<String, Object> attributes; public AbstractEndpoint() { this.bindState = AbstractEndpoint.BindState.UNBOUND; this.keepAliveTimeout = null; this.SSLEnabled = false; this.minSpareThreads = 10; this.maxThreads = 200; this.threadPriority = 5; this.maxKeepAliveRequests = 100; this.name = "TP"; this.daemon = true; this.useAsyncIO = true; this.negotiableProtocols = new ArrayList(); this.handler = null; this.attributes = new HashMap(); }
https://blog.csdn.net/seanxwq/article/details/104055743/
https://www.cnblogs.com/duanxz/p/6084494.html
相关文章
- 【技术种草】cdn+轻量服务器+hugo=让博客“云原生”一下
- CLB运维&运营最佳实践 ---访问日志大洞察
- vnc方式登陆服务器
- 轻松学排序算法:眼睛直观感受几种常用排序算法
- 十二个经典的大数据项目
- 为什么使用 CDN 内容分发网络?
- 大数据——大数据默认端口号列表
- Weld 1.1.5.Final,JSR-299 的框架
- JavaFX 2012:彻底开源
- 提升as3程序性能的十大要点
- 通过凸面几何学进行独立于边际的在线多类学习
- 利用行动影响的规律性和部分已知的模型进行离线强化学习
- ModelLight:基于模型的交通信号控制的元强化学习
- 浅谈Visual Source Safe项目分支
- 基于先验知识的递归卡尔曼滤波的代理人联合状态和输入估计
- 结合网络结构和非线性恢复来提高声誉评估的性能
- 最佳实践丨云开发CloudBase多环境管理实践
- TimeVAE:用于生成多变量时间序列的变异自动编码器
- 具有线性阈值激活的神经网络:结构和算法
- 内网渗透之横向移动 -- 从域外向域内进行密码喷洒攻击