spring boot -压测需要关注的参数

141 阅读1分钟

世界上并没有完美的程序,但是我们并不因此而沮丧,因为写程序就是一个不断追求完美的过程。

1. cpu   :top
2. 内存  :free -h
3. io    :iostat -dx
4. 磁盘  :df -h
5. 连接数 :
    1. 系统限制 :ulimit -n
    2. 服务限制 :ls /proc/18423/fd -l | grep socket: | wc -l  
       // 18423是进程ID
       1. spring boot 的内嵌 tomcat 设置 :
           server:
              tomcat:
                threads:
                  max: 200
                max-connections: 20000