上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 226 下一页
摘要: 【转载】 https://tech.meituan.com/2019/01/03/spring-boot-native-memory-leak.html 背景 为了更好地实现对项目的管理,我们将组内一个项目迁移到MDP框架(基于Spring Boot),随后我们就发现系统会频繁报出Swap区域使用量 阅读全文
posted @ 2022-01-18 20:33 牧之丨 阅读(128) 评论(0) 推荐(0) 编辑
摘要: RestTemplate是Spring提供的用于访问Rest服务的客户端,提供了多种便捷访问远程Http服务的方法,能够大大提高客户端的编写效率。RestTemplate 默认使用J2SE提供的方式(既java.net包提供的方式)创建底层的Http请求连接(SimpleClientHttpRequ 阅读全文
posted @ 2022-01-17 23:19 牧之丨 阅读(2062) 评论(0) 推荐(0) 编辑
摘要: resttemplate 调用https使用下面代码: @Bean @Primary public RestTemplate restTemplate(ClientHttpRequestFactory httpRequestFactory) { return new RestTemplate(htt 阅读全文
posted @ 2022-01-17 23:17 牧之丨 阅读(719) 评论(0) 推荐(0) 编辑
摘要: • git log --all 查看所有分支的历史• git log --all --graph 查看图形化的 log 地址• git log --oneline 查看单行的简洁历史。• git log --oneline -n4 查看最近的四条简洁历史。• git log --oneline -- 阅读全文
posted @ 2022-01-07 21:05 牧之丨 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 最终解决方案(结论) maxLifeTime参数需要设置为小于min(数据库的wait_timeout,HA代理的超时时间,其他代理的超时时间);也就是说maxLifeTime不仅要像HikariCP官方说的那样小于数据库的wait_timeout,还要小于包括HA代理在内的所有介于数据库和业务应用 阅读全文
posted @ 2022-01-07 14:37 牧之丨 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: 搭建SpringBoot中的验证数据机制时出现的错误 报错代码 java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCa 阅读全文
posted @ 2022-01-07 00:20 牧之丨 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: 目的 监控并管理应用程序监控:让我们去发现和了解程序的运行状况各种指标管理:比如说通过Actuator去做一个shutdown功能,通过访问一个特定的url去操作,默认是不开启的,另外 还可以在运行的过程中 对日志进行调整访问方式 HTTP JMX默认 会把更多的 Actuator 暴露在JMX上面 阅读全文
posted @ 2022-01-06 13:53 牧之丨 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 目录 添加依赖与配置 Actuator监控项 Actuator监控管理 打开或关闭 端口与地址 Actuator是Springboot提供的用来对应用系统进行自省和监控的功能模块,借助于Actuator开发者可以很方便地对应用系统某些监控指标进行查看、统计等。本文将通过示例来对如何在Springbo 阅读全文
posted @ 2022-01-06 13:52 牧之丨 阅读(456) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/35079930/consul-health-check-pass-by-spring-security-filter By default consul from spring-cloud-starter-consul-dis 阅读全文
posted @ 2022-01-06 00:05 牧之丨 阅读(68) 评论(0) 推荐(0) 编辑
摘要: Spring Boot Actuator可以帮助你监控和管理Spring Boot应用,比如健康检查、审计、统计和HTTP追踪等。所有的这些特性可以通过JMX或者HTTP endpoints来获得。 Actuator同时还可以与外部应用监控系统整合,比如 Prometheus, Graphite, 阅读全文
posted @ 2022-01-06 00:02 牧之丨 阅读(385) 评论(0) 推荐(0) 编辑
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 226 下一页