Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

java.lang.OutOfMemoryError: Java heap space

未关闭
#16 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
java, spring, vscode

调研方向

从报告中提到的扩展设置以及 Apache NetBeans Language Server 的启动路径开始。使用较大的 Maven Spring 项目重现堆耗尽问题,然后验证是否可以通过一个有文档说明或可正常工作的设置为服务器增加堆大小。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
TypeScript
星标
11
派生
13
平均合并
2 天 18 小时
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/netbeans-vscode 的其他 Issue

查看 apache/netbeans-vscode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。