fwcd / fwcd/kotlin-language-server

java.lang.OutOfMemoryError: Java heap space

Open
#441 14 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
2k
Forks
252
PR merge metrics
No merged PRs in 30d

Description

Hello! I've been trying to get the LSP server working for me in vscode and spacemacs on and off for a bit, but I consistently run into the same OOM error when trying to work in a medium/large-ish repo

Screenshot 2023-03-21 at 10 30 54 AM

I've been following different guides and trying random things like
- implementing the performance improvements from here for emacs https://emacs-lsp.github.io/lsp-mode/page/performance/
- just trying to randomly pass in values to increase memory in jvm/gradle
- tweaking what garbage collector settings I can find, etc.

and was just wondering if there is any actual solution to this?

Some other information:
Screenshot 2023-03-21 at 10 32 56 AM

Any help is appreciated, thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

The report concerns the Kotlin language server used from VS Code and Spacemacs; begin by reproducing the Java heap-space failure in a medium/large repository and reviewing the supplied screenshots and attempted JVM, Gradle, and garbage-collector settings. Done means identifying a reproducible cause and a verified configuration or implementation fix that prevents the out-of-memory failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.