ApplicationInsights-agent-3.4.12 generate otel-agentXXX/agent.jar files in windows/Temp which consumes all memory
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java, spring-boot
- 領域
- backend, observability
調査の方向性
ソースファイルもテストも指定されていません。まず、Windows 10 上で ApplicationInsights-agent 3.4.12 を使用する Spring Boot バッチプロセスで問題を再現し、その後、windows/Temp で agent.jar がどのように作成され、クリーンアップされるかを調査してください。管理者が保守するバッチプロセスなしで、一時的な 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
- スター
- 327
- フォーク
- 222
- 平均マージ
- 22時間 34分
- マージ済み PR(30日)
- 14
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/ApplicationInsights-Java のほかの issue
-
microsoft/ApplicationInsights-Java#4851 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoft/ApplicationInsights-Java#4817 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
microsoft/ApplicationInsights-Java#4770 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
microsoft/ApplicationInsights-Java#4769 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/ApplicationInsights-Java#4729 · コメント 121 件 ·
microsoft/ApplicationInsights-Java の issue をすべて見る
似ている issue
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/flink-agents#1156 ·
-
[source-shopify] FAILED bulk operation without partialDataUrl is silently treated as successful オープンarea/connectors autoteam community connectors/source/shopify needs-triage team/use type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100