apache / apache/netbeans-vscode
java.lang.OutOfMemoryError: Java heap space
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 13
- Avg merge
- 15h 34m
- Merged PRs (30d)
- 1
Description
### Apache NetBeans VSCode version
Apache NetBeans VSCode 26
### What happened
I uninstalled all Red hat related Java extentions und installed Netbeans Extensions. I want to try to use it, but no project is found or navigating though code also not working. I left my computer, because I though that the workspace is somehow processed. After I came back, I show this error message.
```
Launching Apache NetBeans Language Server with /usr/lib/jvm/java-21-openjdk and userdir /home/nedy/.config/Code/User/workspaceStorage/ca9462698bc94135ae08ec9c23ef74ae/asf.apache-netbeans-java
Language Client: Starting
LSP server launching: 47896
LSP server user directory: /home/nedy/.config/Code/User/workspaceStorage/ca9462698bc94135ae08ec9c23ef74ae/asf.apache-netbeans-java
Java Debug Server Adapter listening at port 36875
Language Client: Ready
Launch: client OK
java.lang.OutOfMemoryError: Java heap space
Dumping heap to /home/nedy/.config/Code/User/workspaceStorage/ca9462698bc94135ae08ec9c23ef74ae/asf.apache-netbeans-java/userdir/var/log/heapdump.hprof ...
Heap dump file created [1282069728 bytes in 2,040 secs]
```
I know there are some VM options available in the settings, but I think these are for running the Java application itself, right?
How can I set the VM options to increase the Heap for the language server itself?
### Language / Project Type / NetBeans Component
Java maven Spring Application
### How to reproduce
I use an existing maven project which is larger.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Arch Linux
### JDK
OpenJDK 64-Bit Server VM (build 21.0.9+10, mixed mode, sharing)
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start with the extension settings mentioned in the report and the launch path for the Apache NetBeans Language Server. Reproduce the heap exhaustion using the larger Maven Spring project, then verify that the server can be given increased heap through a documented or working setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, vscode
- Domain
- developer-experience, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100