java-language-server icon indicating copy to clipboard operation
java-language-server copied to clipboard

causes OOM with remote-ssh (possibly only on very large projects)

Open allight opened this issue 5 years ago • 2 comments

Repro:

  1. Have vscode-remote installed
  2. use remote-ssh to open a remote directory with the AOSP source code tree
  3. Open a random java file (for example art/test/1993-fallback-non-structural/src/art/Test1993.java)
  4. wait

The remote vscode will crash with a OOM error

No configuration of classpath or anything else is required.

allight avatar Nov 25 '19 16:11 allight

This is surprising, the memory utilization should be around 370 MB, even for huge projects. Are you sure you're using java-language-server, not the Microsoft Java extension, which runs eclipse in the background?

georgewfraser avatar Dec 07 '19 03:12 georgewfraser

Yes. I specifically disabled the MS java extension because it would complain incessantly about not being able to find maven build files and didn't do any completion without them. This did give me basic BCP completions which was all I really needed (I'm mostly doing C/C++ dev and only need to use java to write small self-contained tests usually).

allight avatar Dec 10 '19 00:12 allight