Allow for disabling Heapdumps via netbeans.exe

Open Beginner friendly
#9,614 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

Contribution welcome kind:feature Platform
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

Dominant language
Java
Stars
3.1k
Forks
933
Avg merge
4d 12h
Merged PRs (30d)
22

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/netbeans

All issues in apache/netbeans

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.