In Java I am trying to write the Excel workbook which contain 27 sheets and in each sheet near about 500 to 600 columns are there, But when i run the program, it is giving me GC Overhead error.
This is the Exception I got.
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.apache.xmlbeans.impl.store.Cur$Locations.<init>(Cur.java:495)
at org.apache.xmlbeans.impl.store.Locale.<init>(Locale.java:168)
at org.apache.xmlbeans.impl.store.Locale.getLocale(Locale.java:235)
at org.apache.xmlbeans.impl.store.Locale.newInstance(Locale.java:586)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.newInstance(SchemaTypeLoaderBase.java:198)
at org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCell$Factory.newInstance(Unknown Source)
at org.apache.poi.xssf.usermodel.XSSFCell.setBlank(XSSFCell.java:696)
at org.apache.poi.xssf.usermodel.XSSFCell.setCellType(XSSFCell.java:737)
at org.apache.poi.xssf.usermodel.XSSFCell.setCellValue(XSSFCell.java:328)
at org.apache.poi.xssf.usermodel.XSSFCell.setCellValue(XSSFCell.java:315)