ApplicationInsights-agent-3.4.12 generate otel-agentXXX/agent.jar files in windows/Temp which consumes all memory
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java, spring-boot
- 领域
- backend, observability
调研方向
未指定源文件或测试。首先使用 Windows 10 上的 ApplicationInsights-agent 3.4.12,通过 Spring Boot 批处理进程重现该问题,然后检查 agent.jar 如何在 windows/Temp 中创建和清理。完成标准是:无需管理员维护的批处理进程,即可自动删除临时的 otel-agent 目录和 agent.jar 文件。
由索引模型根据 Issue 内容生成。
描述
Expected behavior
temp generated agent.jar file in windows/Temp folder should be removed automatically because the programmer did not write or program to create the jar file.
Actual behavior
The file agent.jar in windows/Temp/otel-agentXXXXXXXXXX/agent.jar is not getting deleted. It creates an out-of-memory issue on the server. Admin is not supposed to write batch process to write windows based another batch script to delete these files
To Reproduce
any spring boot-based batch process using application-insights lib 3.4.12 will reproduce the same issue
System information
Please provide the following information:
- SDK Version: java 1.8-351
- OS type and version: windows 10
- Application Server type and version (if applicable):
- Using spring-boot? yes
- Additional relevant libraries (with version, if applicable):
Logs
logs are just file but in windows/Temp/otel-agentXXXXXXXX/agent.jar files are creating pollution. there is a well-known issue of Windows OS java can not delete jar file bugs.openjdk.org/browse/JDK-8219681. but using RandomAccessFile class of standard jdk lib it must be possible to delete the file. RunTime.getRuntime.addShutdownHook() or deleteonExit() definitely should work. Or ApplicationInsights-agent lib has to manage this without creating an agent.jar file
Screenshots
Not possible to bring screenshots here
- 主要语言
- Java
- 星标
- 326
- 派生
- 223
- 平均合并
- 23 小时 6 分钟
- 30 天内合并 PR
- 13
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/ApplicationInsights-Java 的其他 Issue
-
Java 25 native-access warning from bundled Netty requires broad ALL-UNNAMED permission可能已有人在做 @rajkumar-rangaraj 于 19 天前认领。 未关闭
microsoft/ApplicationInsights-Java#4851 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
microsoft/ApplicationInsights-Java#4770 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
microsoft/ApplicationInsights-Java#4769 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
microsoft/ApplicationInsights-Java#4729 · 134 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
microsoft/ApplicationInsights-Java#4712 ·
维护者通常 1 天内回复
查看 microsoft/ApplicationInsights-Java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
jenkinsci/gitlab-plugin#1950 ·
-
It's not necessary to copy the memory block in the readWrite() of org.h2.store.fs.mem.FileMemData未关闭
难度 2/5 1-3 小时 新手友好度 78/100
h2database/h2database#4435 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
micronaut-projects/micronaut-core#13717 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ADORSYS-GIS/token-status-link#145 ·
维护者通常 3 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 88/100
helidon-io/helidon#12721 ·
维护者通常 1 天内回复