apache / apache/netbeans

Allow for disabling Heapdumps via netbeans.exe

Open Beginner friendly
#9,614 0 comments 0 reactions 0 assignees View on GitHub
kind:feature needs:triage Platform
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Description

Currently (https://github.com/apache/netbeans/blob/915296a97f2327153d3ad87c9fef2d0bc8586fbb/platform/o.n.bootstrap/launcher/unix/nbexec#L219)
the java args ALWAYS contain the HeapDump option at the end

`jargs="$jargs -XX:+HeapDumpOnOutOfMemoryError" `

It would be great to disable this by setting
`-XX:-HeapDumpOnOutOfMemoryError` in the options file.

Setting ` -J-XX:HeapDumpPath=NUL` in the options may work, but this behaviour does not seem consistent and disabling HeapDumps alltogether would be great.

### Use case/motivation

I want to be able to disable heapdumps, we use the Netbeans Platform for a custom product. Our HeapDumps coulde be VERY Large and we don't want them to be created altogether.

### Related issues

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Start with platform/o.n.bootstrap/launcher/unix/nbexec around line 219 and inspect how netbeans.exe and the options file pass Java arguments. Verify that -XX:-HeapDumpOnOutOfMemoryError can override the default setting, and test that launching with this option no longer enables heap dumps.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.