VS Code Studio: ServerLauncher process using high CPU
smunir opened this issue · comments
Opending JDL file in VS Code Studio launches ServerLauncher process which consumes almost 100% CPU.
To Reproduce
Steps to reproduce the behavior:
- Install Jhipster extension in VS Code
- Open JDL file
- Check activity monitor for ServerLauncher process
- Check that ServerLauncher process is consuming high CPU
Expected behavior
ServerLauncher should not consume this much CPU.
Desktop (please complete the following information):
- OS: macOS Big Sur
- Version: 11.2.1
It kinda gets stuck and doesn't start in my machine and keeps taking 101% CPU. I need to work on a JDL and my Mac is getting too hot because of this :-(
Any workaround would be great
I am using https://sdkman.io for managing JDK Installations and had value your pointed and java.home in settings.json set to /Users/shahzad/.sdkman/candidates/java/current. I updated this to /Users/shahzad/.sdkman/candidates/java/11.0.2-open and now I can't see ServerLauncher process in activity monitor. Even setting it back to /Users/shahzad/.sdkman/candidates/java/current didn't make any difference. Looks like just modifying settings.json solved this issue. I can see JDK Language Server started! in status bar, suggestions/templates are working fine, not sure what issues I could face but CPU and fan are happy now. Should I close the issue if we don't need to investigate absence of ServerLauncher in processes list?
It started a few hours ago again with same CPU percentage. As you suggested I switched to AdoptOpenJDK / 11.0.10.hs-adpt and now it's started taking only 0.2% CPU. We can conclude that this was because of Open JDK. Thanks for your help.