My file is 9MB and I got this error while loading workbook.
XSSFWorkbook workbook = new XSSFWorkbook(excelFilePath);
this
As suggested by others the first thing to do is to increase the heap size.
If that does not help or you expect larger files you should also take a look at this answer: Processing large xlsx file in Java
It gives a few good starting points on what can be done if the standard "read everything" mode is not working for you.