java - 提高 Springboot 中同步 SOAP API 的性能
问题描述
我SYNC SOAP
在 Spring Boot 中有一个基于 API。根据早期呼叫的输出,基本上有 3 个呼叫。我们去计算它可以处理的事务数,tps
对于每秒发送 100 个 5000 个事务的负载,它甚至没有超过 30 个。我正在使用嵌入式 tomcat 容器来处理请求。
我最终找到了以下spring-boot
属性,这些属性有助于将性能提高到 40 以上,但仍然无法与每分钟发送 100 笔交易相提并论。
# Core number of threads. Default is 8
spring.task.execution.pool.core-size=10
# Maximum allowed number of threads. Default is 1
spring.task.scheduling.pool.size=5
- 是否有任何其他 spring-boot 配置可以帮助更有效地处理多个请求?
- 我们能知道如何设置这些值吗
解决方案
推荐阅读
- kotlin - 在 Kotlin 中扩展 2 个具有不同签名的 lambda
- javascript - PHP Laravel如何检查控制器中是否选中了复选框
- excel - 列listobject中非空白单元格的vba变量范围
- excel - 自动搜索所有列
- jquery - 在不删除现有 url 参数的情况下更新或添加 Url 参数
- python - 具有条件的累积和熊猫数据框
- php - 当获取 DatePeriod 日期并遍历它们时,它给了我这个错误“不能使用 DateTime 类型的对象作为数组”
- python - 模型获得正确的输入尺寸,但引发尺寸错误
- powershell - 分组/添加相似对象
- php - MySQL选择多维?