Skip to content

BootLanguageServerBootApp class is taking all available cpu continuously #932

Closed

Description

@davidmichaelkarr

I don't know if this belongs in this repository or not. It's not clear to me how to figure out a better one.

I recently noticed that there is a Java process taking as much cpu as possible.

This is the command line for it:

"C:\Program Files\Java\jdk-18.0.2.1\bin\javaw.exe" -cp C:\Users\dk068x\eclipse\java-2022-12\eclipse\..\..\..\.p2\pool\plugins\org.springframework.tooling.boot.ls_1.41.0.202212060707\servers\spring-boot-language-server\BOOT-INF\classes;C:\Users\dk068x\eclipse\java-2022-12\eclipse\..\..\..\.p2\pool\plugins\org.springframework.tooling.boot.ls_1.41.0.202212060707\servers\spring-boot-language-server\BOOT-INF\lib\* -Dsts.lsp.client=eclipse -Dlsp.completions.indentation.enable=true -Xmx1024m -XX:TieredStopAtLevel=1 -Xlog:jni+resolve=off -Dspring.config.location=file:C:\Users\dk068x\eclipse\java-2022-12\eclipse\..\..\..\.p2\pool\plugins\org.springframework.tooling.boot.ls_1.41.0.202212060707\servers\spring-boot-language-server\BOOT-INF\classes\application.properties org.springframework.ide.vscode.boot.app.BootLanguageServerBootApp --languageserver.hover-timeout=225

I recently installed Eclipse 2022-12, with the STS feature. My eclipse.ini sets maxmem to 2048mb. There's nothing obviously significant in the Eclipse error log, but the language server log is filling continuously, and many lines are like this:

java.lang.OutOfMemoryError: Java heap space

I imagine that's hitting the limit of 1024mb as specified in that command line, as opposed to the 2048mb limit in my main Eclipse process.

I'm also looking at other log lines in the language server log. It appears to be scanning all projects continuously. I'm not doing anything but watching all this happen.

Activity

  1. martinlippert commented on Dec 23, 2022

    @martinlippert
    Member

    Hey @davidmichaelkarr , I think you are hitting a combination of these two problems:

    This comment provides a summary of things to deactivate in order to workaround this and get back to a normal state while we are working on a fix for these issues: #922 (comment)

    Let us know if the workaround helps. If so, we can close this issue here as a duplicate of the two mentioned ones.

  2. added this to the 4.17.1.RELEASE milestone on Dec 23, 2022
  3. beatjost commented on Dec 28, 2022

    @beatjost

    Had the same problem after an update of spring tools... Lost a lot of time figure it out. However, the workaround solved the issue. Hope to have a fix of this soon. Will I need to 'undo' the workaround settings after manually again?

  4. martinlippert commented on Dec 28, 2022

    @martinlippert
    Member

    @beatjost Once we released a fixed version, you can undo the workaround settings manually in order to enable the functionality that those workaround settings disabled. But you don't have to switch them back all at once.

  5. martinlippert commented on Jan 1, 2023

    @martinlippert
    Member

    The fix for this is included in the 4.17.1 release that is going to be published asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: eclipsetheme: performancetype: bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions