Skip to content

java.lang.OutOfMemoryError: Java heap space #16

@nedy13

Description

@nedy13

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions