解决绿盟漏洞扫描 gateway、nacos、springboot tomcat检测到目标主机可能存在缓慢的HTTP拒绝服务攻击问题

具体参数大小根据自己系统评估。

1、gateway

gateway采用的是netty容器,添加如下配置。

java 复制代码
server:
  netty:
    connection-timeout: 5000
spring:
  cloud:
    gateway:
      httpclient:
        connect-timeout: 5000
        pool:
          # 最大连接数
          max-connections: 200
          # 获取连接的超时时间
          acquire-timeout: 5000
          type: fixed

2、nacos

java 复制代码
server.tomcat.connection-timeout=5000
server.tomcat.max-connections=200
server.tomcat.max-threads=100

3、springboot tomcat

java 复制代码
server:
  tomcat:
    threads:
      max: 200
      min-spare: 30
    max-swallow-size: -1
    acceptCount: 100
    connection-timeout: 5000
    max-connections: 500
相关推荐
>no problem<3 小时前
基于cola5.0的基础设施层的多数据库切换方案思路
数据库·spring boot·mybatisplus·cola5.0·数据库迁移适配
Irissgwe4 小时前
五、应用层协议HTTP
linux·网络·网络协议·http·状态码·url
心之伊始4 小时前
Java 后端接入大模型:从 Token、并发到推理成本的完整估算方法
java·spring boot·性能优化·大模型·llm
曾阿伦5 小时前
Python 搭建简易HTTP服务
开发语言·python·http
Dr_eamboat6 小时前
SpringBoot策略模式+工厂模式实战解析
linux·spring boot·策略模式
☆cwlulu6 小时前
Linux系统调用与C库I/O的底层奥秘
java·spring boot·spring
柏舟飞流7 小时前
Spring Boot 深入实践指南:从入门到工程化落地
spring boot·后端·firefox
橘子海全栈攻城狮7 小时前
【最新源码】鸟博士微信小程序 023
spring boot·后端·web安全·微信小程序·小程序
米丘8 小时前
浏览器 本地存储 (cookie 、sessionStorage、localStorage)
安全·http·浏览器
河阿里8 小时前
Spring Boot:整合Quartz集群部署指南
java·spring boot·后端