question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.

See original GitHub issue

Receiving the following error when opening a Maven project folder:

The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.

Environment
  • Operating System: Windows 10

  • JDK version: both java version “1.8.0_141” AND openjdk version “11.0.1” 2018-10-16

  • Visual Studio Code version: Version: 1.29.1 (user setup) Commit: bc24f98b5f70467bc689abf41cc5550ca637088e Date: 2018-11-15T19:13:36.375Z Electron: 2.0.12 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 Architecture: x64

  • Java extension version: 0.35.0 (November 30th, 2018)

Steps To Reproduce
  1. Install the Language Support for Java™ by Red Hat extension (no other extensions are active)
  2. Create a new Maven project using the quickstart archetype
  3. Open the folder with the new Maven project
  4. See the error

I am unable to attach the Java Language Server log file. I followed the steps here, but when I run the the Java: Open Java Language Server log file command nothing happens.

Current Result
Expected Result
Additional Informations

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:39 (3 by maintainers)

github_iconTop GitHub Comments

72reactions
Pedroteixeirabisognincommented, Apr 21, 2021

Press CTRL + SHIFT + P, and type Java: Clean Java Language Server Workspace. It works for me.

59reactions
scotshallcommented, Dec 12, 2018

Thank you for giving me the “java.jdt.ls.vmargs” setting, I was able to figure out what was going wrong.

I had installed the Lombok Annotations Support for VS Code extension awhile back and decided to remove it. However, the extension added some parameters to the java.jdt.ls.vmargs setting: "-noverify -Xmx1G -XX:+UseG1GC -XX:+UseStringDeduplication -javaagent:\"C:\\Users\\SHall\\.vscode\\extensions\\gabrielbb.vscode-lombok-0.9.7/server/lombok.jar\" -Xbootclasspath/a:\"C:\\Users\\SHall\\.vscode\\extensions\\gabrielbb.vscode-lombok-0.9.7/server/lombok.jar\""

When I removed the extension, the settings were still present but the Language Server was unable to the load the manifest from the lombok.jar file (because it was deleted). This caused the Language Server to fail to start.

After adding the -Dlog.level=ALL parameter to the java.jdt.ls.vmargs setting, I was finally able to see the error in the output view. I’ve put the java.jdt.ls.vmargs setting back to its default value and everything is working properly again.

Thank you for your help! You can close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Language Support for Java server crashed 5 times in the ...
Open the command palette (F1); select Java: Clean the Java Language Server Workspace; select Restart and delete from the confirmation prompt.
Read more >
coc-java The java server crashed 5 times in the last 3 minutes
This happened to me alot, fixed it by doing :CocCommand java.clean.workspace After u do that restart coc and it should work fine, usually...
Read more >
redhat-developer/vscode-java - Gitter
... it stopped working with the message "The Language Support for Java server crashed 5 times in the last 3 minutes. The server...
Read more >
Unable to use intellisense - language server crashed 5 time in ...
cpptools client: couldn't create connection to server. The language server crashed 5 times in the last 3 minutes. It will not be restarted....
Read more >
“The Language Support for Java server crashed“ 问题解决方案
The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted. 经过Google在这里找到了解决方法 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found