spring boot 中默认最大线程连接数,线程池数配置查看
本文为博主原创,转载请注明出处:
可以查看 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
spring boot 中默认最大线程连接数,线程池数配置查看的更多相关文章
- Spring Boot中的缓存支持(一)注解配置与EhCache使用
Spring Boot中的缓存支持(一)注解配置与EhCache使用 随着时间的积累,应用的使用用户不断增加,数据规模也越来越大,往往数据库查询操作会成为影响用户使用体验的瓶颈,此时使用缓存往往是解决 ...
- spring boot 中接口参数为枚举时的反序列化配置(总结)
步骤 如果是 GET 请求中需要反序列化枚举值(即 url 中的参数[querystring]),确保以下两点 1.1. 重写 StringToEnumConverterFactory 1.2. 配置 ...
- spring boot中Elasticsearch默认版本问题
这是今天遇上的一个问题. 添加的依赖是7.2.0版本的Elasticsearch,但是其中有两项是6.4.3的,导致我从其他地方移植过来的代码报错. 据大神说,这是因为spring boot中默认的E ...
- springboot(十一):Spring boot中mongodb的使用
mongodb是最早热门非关系数据库的之一,使用也比较普遍,一般会用做离线数据分析来使用,放到内网的居多.由于很多公司使用了云服务,服务器默认都开放了外网地址,导致前一阵子大批 MongoDB 因配置 ...
- (转)Spring Boot(十一):Spring Boot 中 MongoDB 的使用
http://www.ityouknow.com/springboot/2017/05/08/spring-boot-mongodb.html MongoDB 是最早热门非关系数据库的之一,使用也比较 ...
- Spring boot中使用log4j
我们知道,Spring Boot中默认日志工具为logback,但是对于习惯了log4j的开发者,Spring Boot依然可以很好的支持,只是需要做一些小小的配置功能.Spring Boot使用lo ...
- Spring Boot(十一):Spring Boot 中 MongoDB 的使用
MongoDB 是最早热门非关系数据库的之一,使用也比较普遍,一般会用做离线数据分析来使用,放到内网的居多.由于很多公司使用了云服务,服务器默认都开放了外网地址,导致前一阵子大批 MongoDB 因配 ...
- SpringBoot(十一):Spring boot 中 mongodb 的使用
原文出处: 纯洁的微笑 mongodb是最早热门非关系数据库的之一,使用也比较普遍,一般会用做离线数据分析来使用,放到内网的居多.由于很多公司使用了云服务,服务器默认都开放了外网地址,导致前一阵子大批 ...
- Spring boot中使用log4j记录日志
之前在Spring Boot日志管理一文中主要介绍了Spring Boot中默认日志工具(logback)的基本配置内容.对于很多习惯使用log4j的开发者,Spring Boot依然可以很好的支持, ...
- springboot:Spring boot中mongodb的使用(山东数漫江湖)
mongodb是最早热门非关系数据库的之一,使用也比较普遍,一般会用做离线数据分析来使用,放到内网的居多.由于很多公司使用了云服务,服务器默认都开放了外网地址,导致前一阵子大批 MongoDB 因配置 ...
随机推荐
- Google Guava提供的特殊的Table集合
1.Table 是个啥? 是一个特殊的映射,其中两个键可以在组合的方式被指定为单个值.它类似于创建映射的映射. 当你想使用多个键做索引的时候,你可能会用类似 Map<rowKey, Map< ...
- 数字孪生为何需要融合GIS?以智慧城市项目为例说明
数字孪生和地理信息系统(GIS)是两个在现代科技中崭露头角的概念,它们的融合为智慧城市项目带来了革命性的机会.本文将解释数字孪生为何需要融合GIS,并以智慧城市项目为例进行说明. 数字孪生是一种虚拟模 ...
- 使用Mybatis自定义插件实现不侵入业务的公共参数自动追加
背景 后台业务开发的过程中,往往会遇到这种场景:需要记录每条记录产生时间.修改时间.修改人及添加人,在查询时查询出来. 以往的做法通常是手动在每个业务逻辑里耦合上这么一块代码,也有更优雅一点的做法是写 ...
- 不用手动创建数据库,直接导入sql文件,就能生成数据库和数据表
- 谈谈muduo库的销毁连接对象——C++程序内存管理和线程安全的极致体现
前言 网络编程的连接断开一向比连接建立复杂的多,这一点在陈硕写的muduo库中体现的淋漓尽致,同时也充分体现了C++程序在对象生命周期管理上的复杂性,稍有不慎,满盘皆输. 为了纪念自己啃下muduo库 ...
- 10、弹性布局(Flex Expanded)
自定义的IconContainer class IconContainer extends StatelessWidget { Color color; IconData icon; // IconC ...
- 在 K8S 大规模场景下, Service 性能如何优化?
摘要:Kubernetes 原生的 Service 负载均衡基于 Iptables 实现,其规则链会随 Service 的数量呈线性增长,在大规模场景下对 Service 性能影响严重.本文分享了华为 ...
- RDS:一致性处理事务的神器
摘要:RDS关系型数据库是一种基于云计算平台的即开即用.稳定可靠.弹性伸缩.便捷管理的在线关系型数据库服务. 本文分享自华为云社区<一致性处理事务这下还是看RDS的吧[秋招特训]>,作者: ...
- 在openEuler上做开发?这个大赛拿出30万寻找开源的yyds
摘要:为鲲鹏产业生态的一部分,在服务器操作系统层面,开源操作系统openEuler更是令人期待. 本文分享自华为云社区<在openEuler上做开发?这个大赛拿出30万寻找开源的yyds> ...
- Apache HBase MTTR 优化实践:减少恢复时长
摘要:HBase是Hadoop Database的简称,是建立在Hadoop文件系统之上的分布式面向列的数据库,它具有高可靠.高性能.面向列和可伸缩的特性,提供快速随机访问海量数据能力. 本文分享自华 ...