redhat-developer / redhat-developer/vscode-java
High CPU remains after building finishes (macOS High Sierra)
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
When the Java autobuild setting is enabled, even after the build finishes, the CPU remains high (2 to 3 cores at 100% on a 8 HT core system) for the java process, even after a few minutes, and without making any code changes (or even touching the VSCode during that period). Disabling auto-build ("java.autobuild.enabled":false) and restarting VSCode, then manually building, the CPU usage returns to close to idle after the build completes (which is what is expected).
Environment
- Operating System: macOD High Sierra 10.13.5 (MacBook Pro retina mid-2012)
- JDK version: 8.0_131
- Visual Studio Code version: 1.25.0
- Java extension version: 0.3.0
Steps To Reproduce
- On a Mac start up VSCode and make sure java.autobuild.enabled:true (default)
- Load up a Maven project
- Let it build automatically; when the build finishes, monitor the CPU usage for the "java" named process.
Current Result
CPU usage remains high and doesn't seem to come down even after a few minutes
Expected Result
CPU usage to come close to idle after build completes
Additional Informations
The only java program running at that time is the plugin:
$ jps -v
18472 Jps -Dapplication.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home -Xms8m
18346 org.eclipse.equinox.launcher_1.5.100.v20180611-1436.jar -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Xverify:none -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず server.log と Process Sample of java.txt を確認し、次に VS Code の Maven プロジェクトで java.autobuild.enabled を有効にして報告内容を再現します。自動ビルド後と手動ビルド後の Java プロセスを比較します。完了の条件は、コードを変更せずに自動ビルドが完了した後、CPU 使用率がアイドル状態に近いレベルまで戻ることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100