java-language-server
java-language-server copied to clipboard
causes OOM with remote-ssh (possibly only on very large projects)
Repro:
- Have vscode-remote installed
- use remote-ssh to open a remote directory with the AOSP source code tree
- Open a random java file (for example art/test/1993-fallback-non-structural/src/art/Test1993.java)
- wait
The remote vscode will crash with a OOM error
No configuration of classpath or anything else is required.
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?
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).