luobing2211

1.springboot配置线程

1.1 springboot默认启动线程

server.port=9000
#配置编码
server.tomcat.uri-encoding=UTF-8
#最大并发数
server.tomcat.max-threads=1000 
#接受和处理的最大连接数
server.tomcat.max-connections=9
#初始化时创建的线程数
server.tomcat.min-SpareThreads=6
#可以放到处理队列中的请求数
server.tomcat.acceptCount=10
# session最大超时时间(分钟),默认为30分钟
server.session-timeout=60

1.2 接受和处理的最大连接数

 

每个线程占用的内存和cpu的:所以创建线程是有代价的

 

 

 

 

 

分类:

技术点:

相关文章:

  • 2021-10-27
  • 2021-06-18
  • 2021-04-01
  • 2021-04-11
  • 2021-10-12
  • 2021-12-19
  • 2021-11-25
猜你喜欢
  • 2021-11-26
  • 2022-01-18
  • 2021-11-22
  • 2021-04-10
  • 2021-03-31
  • 2021-11-22
  • 2021-09-27
相关资源
相似解决方案