Skip to content
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

Set -Xms to the same value as -Xmx #19

Open
totaldowner opened this issue Jan 22, 2018 · 1 comment
Open

Set -Xms to the same value as -Xmx #19

totaldowner opened this issue Jan 22, 2018 · 1 comment
Assignees

Comments

@totaldowner
Copy link

totaldowner commented Jan 22, 2018

java -Xmx${MAX_RAM} ${JAVA_ARGS} -jar forge-${MCVER}-${FORGEVER}-universal.jar nogui

JAVA_ARGS should be modified to reflect this as well.
This should improve GC time.

@OrdinatorStouff OrdinatorStouff self-assigned this Mar 13, 2018
@OrdinatorStouff
Copy link
Contributor

The problem with doing this "by default" is for people that are self-hosting on their personal systems, setting xms to max as well guarantees the host OS can't use the otherwise unused ram

I agree however that it does help JVM optimize GC.... maybe if I can make the script smart enough to perform math on the specific Xmx and have it set to say... half?

I'll look into this -- thanks

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

2 participants