I need to get 400-500k data in excel output, but in the Worksheet.SaveAs (stream) part, the data takes up 6gb of ram at a time and the application closes when the ram is not enough on the computer. What I want is to get excel output, but even if it cannot do this, I want to at least prevent the application from closing. What should I do for this?
sample excel data: enter image description here
this is the sample code (I can't show it because some parts are private) enter image description here
error enter image description here
This application will run on the server and its current features are 12gb ram 4 core cpu, at least how much do you think we should increase these features?