redhat-developer / redhat-developer/vscode-java
High CPU remains after building finishes (macOS High Sierra)
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando server.log e Process Sample of java.txt, quindi riproduci il report con java.autobuild.enabled abilitato in un progetto Maven in VS Code. Confronta il processo Java dopo le build automatiche e manuali; l'attività è completata quando la CPU torna vicina all'inattività al termine della build automatica, senza modifiche al codice.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100