Skip to content

Allow for disabling Heapdumps via netbeans.exe #9614

Open

Description

@oers

Description

Currently (

jargs="$jargs -XX:+HeapDumpOnOutOfMemoryError"
)
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

Activity

  1. added
    needs:triageRequires attention from one of the committers
    on Sep 11, 2026
  2. added
    Platform[ci] enable platform tests (platform/*)
    on Sep 11, 2026
  3. neilcsmith-net commented on Sep 15, 2026

    @neilcsmith-net
    Member

    I want to be able to disable heapdumps, we use the Netbeans Platform for a custom product.

    In which case you're welcome to open a pull request that allows for this, although it will have to be aligned with the Windows launcher. Or you can patch and use your own platform.

    I'm not sure of the reason why this particular flag is coded into the launchers themselves, but IIRC it's since pre-ASF times. Being able to control this without having to release and vote on the Windows launchers could be a positive anyway.

  4. added
    Contribution welcomeAn issue or feature not currently being worked on, but a contribution would be welcomed!
    and removed
    needs:triageRequires attention from one of the committers
    on Sep 15, 2026
  5. mbien commented on Sep 15, 2026

    @mbien
    Member

    its unfortunate that the hardcoded flag is appended at the tail end of the list. Custom flags should be at the tail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Contribution welcomeAn issue or feature not currently being worked on, but a contribution would be welcomed!Platform[ci] enable platform tests (platform/*)kind:featureA feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions