Skip to content

Question: Why is -XX:MaxDirectMemorySize set to 10M by default? #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
postalservice14 opened this issue Jan 2, 2024 · 1 comment
Closed

Comments

@postalservice14
Copy link

postalservice14 commented Jan 2, 2024

Just curious the reasoning behind setting -XX:MaxDirectMemorySize to 10M by default? It seems the Java default is to set it to max memory. 10M as a default is quite a bit different than max memory.

A couple references:

JDK https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/jdk/internal/misc/VM.java#L262

@postalservice14
Copy link
Author

Closing this question in favor of the discussion over here: https://github.com/orgs/paketo-buildpacks/discussions/241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant