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

Java memory heap error on running decompile task #66

Closed
aksource opened this issue Feb 13, 2014 · 4 comments
Closed

Java memory heap error on running decompile task #66

aksource opened this issue Feb 13, 2014 · 4 comments

Comments

@aksource
Copy link

From yesterday, I can't run successfully setupDecompWorkspace with gradlew.
I checked gradle.log and I saw the problem was occurred form decompile task.
Then, I ran decompile task with --debug option.
I saw gradle log and found a error log below:

Error occurred during initialization of VM
Could not reserve enough space for object heap

I set DEFAULT_JVM_OPTS of gradlew.bat -Xms512m -Xmx512m.
But, this error was not solved.

I check commits of ForgeGradle and I think this problem is happened from this commit:
bb1e035
because my PC is 32 bit OS and has 3.2GB memory.

JAVA_OPTS on my PC is only set -Dfile.encoding=utf8

What's solution of this problem?

@GUIpsp
Copy link

GUIpsp commented Feb 13, 2014

set it to even higher.

@aksource
Copy link
Author

I don't think it solve this problem.
I downloaded this repository and changed max heap space from 2G to 512M.
Then I built ForgeGradle in local and ran decompile task successfully.

I know the best solution of this problem is to buy new PC that is 64bit OS and has more than 4GB memory but I can't.

Please erase setMaxHeapSize or replace more customizable one.

@LexManos
Copy link
Member

I changed it to 512M yesterday, feel free to make a PR to make it customizeable if you want.

@aksource
Copy link
Author

I checked it and finished decompile task successfully.
Thanks LexManos.
I don't have an idea to make it customizable.
If I have it, I'll send a PR.

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

3 participants