Kieker无侵入监控基于jar包发布的java项目

共 526字,需浏览 2分钟

 ·

2025-12-13 21:44

1、程序添加kieker插件

1)、kieker的jar包放到G:\test\kieker-1.15-aspectj.jar文件夹下

2)、程序VM options 中设置:-javaagent:G:\test\kieker-1.15-aspectj.jar

3)、程序resources文件夹下增加META-INF文件夹以存放kieker的两个配置文件:aop.xml、kieker.monitoring.properties

4)、aop.xml文件中修改 <include within="org.springframework.samples.petclinic..*"/>

5)、kieker.monitoring.properties文件中修改kieker日志存放位置: kieker.monitoring.writer.filesystem.FileWriter.customStoragePath=G:\\test

2、程序打成jar包:your.jar 在linux启动:nohup java -javaagent:G:\test\kieker-1.15-aspectj.jar -jar  your.jar &

浏览 2
点赞
评论
收藏
分享

手机扫一扫分享

分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

分享
举报