Skip to content

Consumes 744MB on Ubuntu 18.04 #1090

Closed
Closed

Description

@tivrfoa

[provide a description of the issue]
It consumes a lot of memory

Environment
  • Operating System: Ubuntu 18.04.3
  • JDK version: 11.0.4
  • Visual Studio Code version: 1.38.1
  • Java extension version: 0.50.0 (October 1st, 2019)
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[attach a sample project reproducing the error]
attach logs

Current Result
Expected Result
Additional Informations

Activity

  1. fbricon commented on Oct 21, 2019

    @fbricon
    Collaborator

    The language server is configured to run with 1GB of heap by default. Depending on your use case, you might be able to reduce that size by overriding the Xmx1G value in the java.jdt.ls.vmargs preference, to say Xmx512m. Be aware this might make the Java server much slower, unresponsive or crash as it could run out of memory.

  2. rgrunber commented on Jul 7, 2021

    @rgrunber
    Member

    Looks like this was more of a question/call for performance improvement that had an acceptable workaround for then.

    In #1262 we did improve performance by encouraging the language server to perform garbage collection more frequently. This would have especially improved cases where initial project import consumed a lot of memory, and freed it very relucantly, leading to the OOM issues.

    Also, we're looking at catching, reporting, and handling OOM issues more gracefully on #1959 .

    Marking this as a duplicate of that for now.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions