When I am trying to write data to excel sheet using apache poi which contains more than 64000 records, where SXSSF is used and I am getting the below error,
The workaround is to add this line before you open the workbook:
ZipSecureFile.setMinInflateRatio(0);