摘要: 1. 查看进程内存占用总和: ps aux | awk '{mem+=$6} END {print mem/1024/1024}' 2. 查看磁盘压力:iostat -d -x 1 3. 查看网络流量:sar -n DEV 3 10 注:3是打印间隔时间 10是总的次数。 IFACE网卡名称,rxp 阅读全文
posted @ 2022-01-04 15:34 软件匠工 阅读(167) 评论(0) 推荐(0) 编辑
摘要: https://developer.aliyun.com/article/599997 https://medium.com/knerd/eureka-why-you-shouldnt-use-zookeeper-for-service-discovery-4932c5c7e764 阅读全文
posted @ 2021-12-23 16:51 软件匠工 阅读(26) 评论(0) 推荐(0) 编辑
摘要: vmstat ,所在包sysstat alpine: apk add sysstat redhad: yum install sysstat pidstat,所在包procps https://cloud.tencent.com/developer/article/1046959 https://c 阅读全文
posted @ 2021-12-19 14:29 软件匠工 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 最近一段时间,Jenkins频繁发生FULL GC,耗时在1分钟左右,导致jenkins在1分钟内无法响应任何请求,影响到用户使用。 现象: 从GC日志看,就是在某段时间出现大量对象,且存活时间较长,导致无法回收掉,内存紧张最终触发了长耗时的FULL GC. 调优过程: 第一轮调优: 扩大内存。原来 阅读全文
posted @ 2021-11-22 13:57 软件匠工 阅读(828) 评论(0) 推荐(0) 编辑
摘要: 在maven项目中,多模块开发是比较常见的。各个子模块和父模块的版本号保持一致,那父模块版本号变化后,有没有什么办法能把子模块的版本号一起更新呢? 在Spring Boot中的spring-boot-dependencies中的pluginManagement已经添加了该插件,所以spring bo 阅读全文
posted @ 2021-11-15 19:29 软件匠工 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: https://www.oracle.com/java/technologies/javase/8u-relnotes.html docker 资源与pod 资源: https://www.cnblogs.com/caoweixiong/p/12427202.html 阅读全文
posted @ 2021-10-29 14:24 软件匠工 阅读(36) 评论(0) 推荐(0) 编辑
摘要: https://mikeygithub.github.io/2021/05/14/yuque/ligt41/ 阅读全文
posted @ 2021-10-28 14:50 软件匠工 阅读(17) 评论(0) 推荐(0) 编辑
摘要: sed -i '<位置> i <内容>' 文件,如: * sed -i '1 i abc' a.txt -> 表示在a.txt文件的第一行插入abc * sed -i '$ i abc' a.txt -> 表示在a.txt文件的最后一行插入abc 阅读全文
posted @ 2021-10-19 11:00 软件匠工 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: 1. 安装ES 官方文档: 下载: https://www.elastic.co/cn/downloads/elasticsearch 安装:https://www.elastic.co/guide/en/elasticsearch/reference/7.14/rpm.html#rpm-repo 阅读全文
posted @ 2021-09-22 14:58 软件匠工 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1. Enable** 系列注解工作原理 2. springboot 自动装配原理 3. springboot starter是什么? 4. spring 事件工作原理 5. spring 的BeanFactory后置处理器 6.BeanFactory和FactoryBean分别是什么? 适用场景是 阅读全文
posted @ 2021-09-10 16:38 软件匠工 阅读(73) 评论(0) 推荐(0) 编辑