摘要: arthas中文文档 https://github.com/alibaba/arthas/blob/master/README_CN.md 1、下载并启动 curl -O https://arthas.aliyun.com/arthas-boot.jarjava -jar arthas-boot.j 阅读全文
posted @ 2024-05-13 19:03 使用D 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 阿里云 1、sls增加机器组 机器组为k8s下的多个不同应用 日志地址:建议/admin/log/{应用名称}/application.log 2、sls中指定日志位置 /admin/log/*/application.log 阅读全文
posted @ 2024-05-13 17:23 使用D 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 要在Log4j 2中启用异步日志收集,以防止日志打印操作阻塞应用线程。 可以通过配置文件来实现这一功能。 Log4j 2本身就支持异步日志记录,下面是使用Log4j 2配置文件(通常是log4j2.xml)来开启异步日志记录的一个示例: <?xml version="1.0" encoding="U 阅读全文
posted @ 2024-05-13 17:05 使用D 阅读(52) 评论(0) 推荐(0) 编辑
摘要: ps -ef|grep javajstat -gcutil 54649 500 10jstat -gcnew 54649 500 10 jstat -gcclass 54649jstat -class 54649jstat -printcompilation 54649jstat -compiler 阅读全文
posted @ 2024-05-13 16:14 使用D 阅读(1) 评论(0) 推荐(0) 编辑