Hi.
When exporting a large number of rows and columns to excel memory keeps getting assigned but never released until it's full and the task gets slower. If you are using POI the SXSSFWorkbook() method can receive the maximum number of rows to keep in memory when creating the excel file. Please look into it.
Cheers