会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
码农在路上
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2022年2月
linux后端服务启动与停止
摘要: 1. 查找Java进程,找关键字: ps -ef | grep java 2. 根据关键字找对应的服务 systemctl list-units | grep <关键字> 3. 停止服务:systemctl stop <服务名> 4. 启动服务:systemctl start <服务名> 参考文章:
阅读全文
posted @ 2022-02-23 11:31 软件匠工
阅读(229)
评论(0)
推荐(0)
2022年1月
spring 配置文件加载原理
摘要: 1. 实现 PropertySourceLocator 接口,比如:NacosPropertySourceLocator 2. 把实现注册到spring 容器 @Bean public NacosPropertySourceLocator nacosPropertySourceLocator(Nac
阅读全文
posted @ 2022-01-13 14:14 软件匠工
阅读(294)
评论(0)
推荐(0)
常用linux 脚本
摘要: 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 软件匠工
阅读(194)
评论(0)
推荐(0)
2021年12月
服务注册发现组件选择
摘要: 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 软件匠工
阅读(32)
评论(0)
推荐(0)
linux工具安装
摘要: 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 软件匠工
阅读(125)
评论(0)
推荐(0)
2021年11月
Jenkins调优实践
摘要: 最近一段时间,Jenkins频繁发生FULL GC,耗时在1分钟左右,导致jenkins在1分钟内无法响应任何请求,影响到用户使用。 现象: 从GC日志看,就是在某段时间出现大量对象,且存活时间较长,导致无法回收掉,内存紧张最终触发了长耗时的FULL GC. 调优过程: 第一轮调优: 扩大内存。原来
阅读全文
posted @ 2021-11-22 13:57 软件匠工
阅读(1014)
评论(0)
推荐(0)
maven 批量更新版本号
摘要: 在maven项目中,多模块开发是比较常见的。各个子模块和父模块的版本号保持一致,那父模块版本号变化后,有没有什么办法能把子模块的版本号一起更新呢? 在Spring Boot中的spring-boot-dependencies中的pluginManagement已经添加了该插件,所以spring bo
阅读全文
posted @ 2021-11-15 19:29 软件匠工
阅读(1152)
评论(0)
推荐(0)
2021年10月
java8 release notes
摘要: 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 软件匠工
阅读(46)
评论(0)
推荐(0)
JFR和JMC
摘要: https://mikeygithub.github.io/2021/05/14/yuque/ligt41/
阅读全文
posted @ 2021-10-28 14:50 软件匠工
阅读(20)
评论(0)
推荐(0)
Shell脚本在指定位置插入行
摘要: 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 软件匠工
阅读(1582)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告