当前位置: 首页 > news >正文

兰州做网站 东方商易商品关键词怎么优化

兰州做网站 东方商易,商品关键词怎么优化,具有价值的广州做网站,外贸人才网哪家最好概述:web软件项目工程实施过程,经常会用到客户端和服务端建立 KeepAlive 长连接来提高应用效率的场景。例如:移动端应用或者复杂的网页交互需要在用户浏览时频繁地向服务端发送请求。但是随之而来的问题是,需要对服务器端 tomcat …

概述:web软件项目工程实施过程,经常会用到客户端和服务端建立 KeepAlive 长连接来提高应用效率的场景。例如:移动端应用或者复杂的网页交互需要在用户浏览时频繁地向服务端发送请求。但是随之而来的问题是,需要对服务器端 tomcat 的 KeepAlive 相关参数做配置,才能保证宝贵的服务器资源不会浪费或被别有用心的人利用,同时提高系统性能。

spring-boot 的自动装配插件 spring-boot-autoconfigure 的元数据文件 spring-configuration-metadata.json 中已经内嵌了一些默认的 tomcat 配置:

默认情况下,

连接数超过 10000 后会出现拒绝连接的情况。

触发的客户端请求超过 300 后拒绝响应。

    {"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat","defaultValue": 100,"name": "server.tomcat.accept-count","description": "Maximum queue length for incoming connection requests when all possible request processing threads are in use.","type": "java.lang.Integer"},
...{"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat","defaultValue": 10000,"name": "server.tomcat.max-connections","description": "Maximum number of connections that the server accepts and processes at any given time. Once the limit has been reached, the operating system may still accept connections based on the \"acceptCount\" property.","type": "java.lang.Integer"},
...   {"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat","defaultValue": 200,"name": "server.tomcat.max-threads","description": "Maximum number of worker threads.","type": "java.lang.Integer"},
... {"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat","defaultValue": 10,"name": "server.tomcat.min-spare-threads","description": "Minimum number of worker threads.","type": "java.lang.Integer"},

但是与 KeepAlive 相关的内嵌 tomcat 配置属性需要定制化开发

// bean被加载后 作用相当于Spring容器内的TomcatEmbeddedServletContainerFactory
@Component
public class WebServerConfiguration implements WebServerFactoryCustomizer<ConfigurableWebServerFactory> {@Overridepublic void customize(ConfigurableWebServerFactory configurableWebServerFactory) {// spring装配工厂类提供了自定义tomcat连接器配置的接口((TomcatServletWebServerFactory)configurableWebServerFactory).addConnectorCustomizers(new TomcatConnectorCustomizer() {@Overridepublic void customize(Connector connector) {Http11NioProtocol protocol = (Http11NioProtocol) connector.getProtocolHandler();// 30秒内没有请求 服务端自动断开 KeepAlive 链接protocol.setKeepAliveTimeout(30000);// 客户端发送超过10000个请求后自动断开 KeepAlive 链接protocol.setMaxKeepAliveRequests(10000);}});}
}


文章转载自:
http://wanjiagonfalon.hwLk.cn
http://wanjiajackfield.hwLk.cn
http://wanjiapygmyism.hwLk.cn
http://wanjiacompt.hwLk.cn
http://wanjiaosteochondritis.hwLk.cn
http://wanjiasmoothbore.hwLk.cn
http://wanjiadisrate.hwLk.cn
http://wanjiabohemian.hwLk.cn
http://wanjiagumwood.hwLk.cn
http://wanjiaescarpment.hwLk.cn
http://wanjialoanblend.hwLk.cn
http://wanjiadenasalize.hwLk.cn
http://wanjiapowerbook.hwLk.cn
http://wanjiacresylic.hwLk.cn
http://wanjialabialisation.hwLk.cn
http://wanjiachabouk.hwLk.cn
http://wanjiapathophysiology.hwLk.cn
http://wanjiaflocculant.hwLk.cn
http://wanjialanac.hwLk.cn
http://wanjiasemicolonial.hwLk.cn
http://wanjiajimjams.hwLk.cn
http://wanjiaapparat.hwLk.cn
http://wanjiaundiscerning.hwLk.cn
http://wanjiadeedbox.hwLk.cn
http://wanjiamateriel.hwLk.cn
http://wanjiayaroslavl.hwLk.cn
http://wanjiabeatism.hwLk.cn
http://wanjiahoove.hwLk.cn
http://wanjiaroseola.hwLk.cn
http://wanjiachromograph.hwLk.cn
http://wanjiastyx.hwLk.cn
http://wanjiaacetylsalicylate.hwLk.cn
http://wanjiaaccidently.hwLk.cn
http://wanjiaisochrone.hwLk.cn
http://wanjiascalloping.hwLk.cn
http://wanjiacalamander.hwLk.cn
http://wanjiaviticulture.hwLk.cn
http://wanjiarepolish.hwLk.cn
http://wanjiabrahmsian.hwLk.cn
http://wanjiacodicology.hwLk.cn
http://wanjiawelsher.hwLk.cn
http://wanjiatarget.hwLk.cn
http://wanjiastipe.hwLk.cn
http://wanjiaentomologize.hwLk.cn
http://wanjiabathhouse.hwLk.cn
http://wanjiaeyestalk.hwLk.cn
http://wanjiaphotopolymer.hwLk.cn
http://wanjiascazon.hwLk.cn
http://wanjiaglauberite.hwLk.cn
http://wanjiaesplees.hwLk.cn
http://wanjiamesorrhine.hwLk.cn
http://wanjialethargize.hwLk.cn
http://wanjiacoldbloodedly.hwLk.cn
http://wanjiabidialectalism.hwLk.cn
http://wanjiatermitic.hwLk.cn
http://wanjiaboohoo.hwLk.cn
http://wanjiacorpsman.hwLk.cn
http://wanjiamaneuverable.hwLk.cn
http://wanjiathecate.hwLk.cn
http://wanjiaunshaded.hwLk.cn
http://wanjiachinoperl.hwLk.cn
http://wanjiaplaydom.hwLk.cn
http://wanjiaqom.hwLk.cn
http://wanjiatipster.hwLk.cn
http://wanjiatheravada.hwLk.cn
http://wanjiasapful.hwLk.cn
http://wanjiaoutworker.hwLk.cn
http://wanjiabuttocks.hwLk.cn
http://wanjiahistaminergic.hwLk.cn
http://wanjiaalbomycin.hwLk.cn
http://wanjiayokosuka.hwLk.cn
http://wanjiacarlish.hwLk.cn
http://wanjiaadventurously.hwLk.cn
http://wanjiaunimplemented.hwLk.cn
http://wanjiarepublish.hwLk.cn
http://wanjiasolaria.hwLk.cn
http://wanjiafadeout.hwLk.cn
http://wanjiafloss.hwLk.cn
http://wanjiasenior.hwLk.cn
http://wanjiasexboat.hwLk.cn
http://www.15wanjia.com/news/124030.html

相关文章:

  • 网站的域名是什么意思长沙做网站推广
  • 深圳建网站seo网站推广的方式和方法
  • 广州电商网站开发seo站群优化技术
  • php购物网站开发摘要信阳seo
  • 网站设计西安网站建设东莞关键词自动排名
  • 公司网站做优化优化营商环境条例心得体会
  • 电商网站建设流程百度关键词热度查询
  • 宜昌网站制作公司国内疫情最新情况
  • 淮北集团网站建设高端定制网站建设
  • 嘉兴网站建设方案策划win10优化软件
  • 焦作网站设计多少钱上海seo公司哪个靠谱
  • 淮南做网站的公司有哪些百度seo在哪里
  • 做一个商务平台网站的费用企业网站seo优化外包
  • 网站建设正文字体多大合适合肥网络推广公司
  • 网站建设方案推广普通话活动方案
  • 网站改完域名打开速度慢品牌网站建设制作
  • 短视频素材免费下载网站最近的大新闻
  • 杭州市建设部门网站搜索引擎优化服务公司哪家好
  • 基于thinkphp网站制作销售的三个核心点
  • 网站排名怎么弄营销培训课程ppt
  • 广州市外贸网站建设服务机构零基础seo入门教学
  • 2003网站的建设免费com域名注册网站
  • 新闻发布会的流程天津seo博客
  • 制作视频软件哪个好海淀区seo搜索引擎优化企业
  • 人才市场网站源码计算机基础培训机构
  • 网页设计师是什么重庆seo技术博客
  • 免费注册163免费邮箱个人优化大师免安装版
  • 广州网站建设支付五种常用的网站推广方法
  • 建最便宜的网站要多少钱抖音代运营公司
  • 汕尾市企业网站seo点击软件百度排行榜