• too many open files 服务器句柄数限制排查处理

    现象:springcloudgateway报错too many open files*查看系统和进程限制句柄数查询服务器允许最大句柄数ulimit -a查询此进程允许最大句柄数cat /proc/{pid}/limits查询此进程当前占用句柄数ls /proc/{pid}/fd | wc -l观察o...

    Eureka Server及时剔除已关停服务节点配置

    eureka server#默认自我保护开启#eureka.server.enable-self-preservation=true# 扫描失效服务的间隔时间(单位毫秒,默认是60*1000)即60秒eureka.server.eviction-interval-timer-in-ms=5000#自...

    服务器关闭、启动服务脚本

    shutdown.shport=8094curl -X POST "http://127.0.0.1:$port/actuator/service-registry?status=DOWN" -H 'content-type: application/vnd.spring-boo...

    springboot服务优雅下线

    一般停止服务方式都是先查找端口占用端口,然后kill pid,但是eureka在90s(默认)内不会立即踢出服务actuator提供了接口可进行停止服务操作pom.xml<dependency> <groupId>org.springframework.boot<...