Allow for disabling Heapdumps via netbeans.exe
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/netbeans
-
LSP
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
kind:bug LSP needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Editor Java kind:feature needs:triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
The main Options dialog window has buttons with OK on the left instead of on the right on Linux Openkind:bug needs:triage os:linux os:macos Platform UI
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
-
kind:bug needs:triage
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100