使用jmeter进行测试,
发现进程数到达一定的数量之后就不会在变化了。
[root@localhost ~]# pstree -p 3793 |wc -l
219
[root@localhost ~]# pstree -p 3793 |wc -l
219
[root@localhost ~]# pstree -p 3793 |wc -l
219
[root@localhost ~]# pstree -p 3793 |wc -l
查看spring-configuration-metadata.json文件,查看Tomcat的相关默认配置
{
"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$Accesslog",
"defaultValue": true,
"name": "server.tomcat.accesslog.buffered",
"description": "Whether to buffer output such that it is flushed only periodically.",
"type": "java.lang.Boolean"
},
{
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat$Accesslog",
"defaultValue": "logs",
"name": "server.tomcat.accesslog.directory",
"description": "Directory in which log files are created. Can be absolute or relative to the Tomcat base dir.",
"type": "java.lang.String"
},
{
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat$Accesslog",
"defaultValue": false,
"name": "server.tomcat.accesslog.enabled",
"description": "Enable access log.",
"type": "java.lang.Boolean"
},
{
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat$Accesslog",
"defaultValue": ".yyyy-MM-dd",
"name": "server.tomcat.accesslog.file-date-format",
"description": "Date format to place in the log file name.",
"type": "java.lang.String"
},
{
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat$Accesslog",
"defaultValue": "common",
"name": "server.tomcat.accesslog.pattern",
"description": "Format p