Azure web job out of memory exception

Vivek Kumar 1 Reputation point
2021-02-19T11:02:14.21+00:00

Hi,

I created a web job to generate a excel with OpenXml SAX approach.
While creating the excel I am facing an "out of memory exception in writer.WriteStartElement(new Cell(), attributes)" on 130,000th row with 32 columns each. As per the logs I didn't used more than 40% of the available memory but still I am facing this issue.

Plan : Isolated 2 with 7gb RAM
App service : .net version : core 3.1, Platform : 64 bit.
App Service : memory working set (Max) = 1.1 GB
App service plan memory consumption percentage : always less than 40%

69987-capture.jpg

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,829 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rafael Sanchez de la Paz 1 Reputation point
    2021-04-05T15:30:26.837+00:00

    Issue can be related with a known issue in Open-XML SDK with SAX and Net Core:

    https://github.com/OfficeDev/Open-XML-SDK/issues/807

    0 comments No comments