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

Need to give the JVM more memory to prevent OutOfMemoryError at runtime #50

Open
clivemeister opened this issue Sep 13, 2018 · 2 comments

Comments

@clivemeister
Copy link

I was diff'ing a 2000 line, 25 column spreadsheet and and got:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

I fixed it by altering the excel_cmp.bat file to give the java virtual machine more memory by adding -Xmx1024m to the options passed to the java command:
java -ea -Xmx1024m -cp "%dirname%\dist\*;" com.ka.spreadsheet.diff.SpreadSheetDiffer %*

Can I suggest this is rolled into your next update to cover this problem for others?

@na-ka-na
Copy link
Owner

Current version of ExcelCompare has removed the memory limit. Which version are you using?

@clivemeister
Copy link
Author

Thanks - I downloaded ExcelCompare-0.6.1.zip today, and that's the version I was having this problem with.

If it's relevant, here's what I got from java -version:
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) Client VM (build 25.171-b11, mixed mode, sharing)

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