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

Comparing for large number of rows not happening #44

Closed
piyush2903 opened this issue Sep 21, 2017 · 2 comments
Closed

Comparing for large number of rows not happening #44

piyush2903 opened this issue Sep 21, 2017 · 2 comments

Comments

@piyush2903
Copy link

piyush2903 commented Sep 21, 2017

I am trying to compare 2 excel files with 11680 rows and 17 Columns which never happens and after some time it shows OutOfMemoryException.
Please find the stack trace below

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTRowImpl.ge
tCArray(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFRow.(XSSFRow.java:67)
at org.apache.poi.xssf.usermodel.XSSFSheet.initRows(XSSFSheet.java:238)
at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:201)
at org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java
:188)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkboo
k.java:378)
at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:166)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.(XSSFWorkbook.java:2
41)
at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.ja
va:211)
at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.ja
va:188)
at com.ka.spreadsheet.diff.SpreadSheetDiffer.loadSpreadSheet(SpreadSheet
Differ.java:241)
at com.ka.spreadsheet.diff.SpreadSheetDiffer.doDiff(SpreadSheetDiffer.ja
va:133)
at com.ka.spreadsheet.diff.SpreadSheetDiffer.doDiff(SpreadSheetDiffer.ja
va:102)
at com.ka.spreadsheet.diff.SpreadSheetDiffer.main(SpreadSheetDiffer.java
:90)

**

@na-ka-na
Copy link
Owner

Which version of ExcelCompare are you using? The latest version removes memory limit.

@piyush2903
Copy link
Author

Good with the latest version.Closing the issue.

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