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

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceede d #10

Closed
Longshot123 opened this issue Jun 26, 2014 · 3 comments

Comments

@Longshot123
Copy link

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceede
d
at java.util.regex.Matcher.(Unknown Source)
at java.util.regex.Pattern.matcher(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFRichTextString.utfDecode(XSSFRichTe
xtString.java:481)
at org.apache.poi.xssf.usermodel.XSSFRichTextString.getString(XSSFRichTe
xtString.java:297)
at org.apache.poi.xssf.usermodel.XSSFCell.getStringCellValue(XSSFCell.ja
va:247)
at com.ka.spreadsheet.diff.CellExcel.getStringValue(SpreadSheetExcel.jav
a:152)
at com.ka.spreadsheet.diff.CellPos.getStringValue(CellPos.java:34)
at com.ka.spreadsheet.diff.SpreadSheetDiffer.doDiff(SpreadSheetDiffer.ja
va:99)
at com.ka.spreadsheet.diff.SpreadSheetDiffer.doDiff(SpreadSheetDiffer.ja
va:61)
at com.ka.spreadsheet.diff.SpreadSheetDiffer.main(SpreadSheetDiffer.java
:54)

BTW...Each file was 1.74MB in size. Only one cell was different in the row 5 for me to test it. It provided the output difference and then my computer's fan kicked in right before getting this error. Computer has 32GB of RAM.

@pmeier82-zz
Copy link

​You can allocate more ram to the jvm heap with the -Xmx​ toggle.​ It is set to 512MB by default.

@Longshot123
Copy link
Author

Thank you. I had to get it up to 4096 before it quit erroring out, but it fixed the problem.

@na-ka-na
Copy link
Owner

Yes unfortunately it reads in the whole spreadsheets in memory before starting diff. Haven't spent any time to trying to figure out if we can read the files in chunks. With 4GB you must have really large files ?!

@na-ka-na na-ka-na closed this as completed Nov 7, 2014
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