I have a service to build a report in JAVA that are using Apache POI, but at this moment i have a problem.
I need allow the report generation with a lot of data (2 millions of rows) and only the map creation with that data spends 4 GB of memory more the memory that spends apache POI to build the report, i need more than 8 GB.
This process is launched manually for somebody, but the person can run the process whenever he wants.
This process will be executed only two or three times per week, then I don't know if having a machine with a lot of memory is the solution, because they are resources that are being spent only for 2 or 3 executions per week.
Or I don't know if exists a tool to help with the memory on demand, like redis or How can I attack this problem without spending so many resources?