3 Pivot tables on container instance crash

Shastri, Akash 0 Reputation points
2024-06-10T19:52:14.49+00:00

I have an api that produces excel reports. And when the report has upto 2 pivot tables, it runs fine and produces a report. But adding the 3rd pivot table tab crashes the container.

I have 1 core and 1.5gb memory.

I'm having a hard time debugging it, could it be my container doesn't have enough memory to handle the excel with 3 tabs? What else could it be?
I doubt its a code issue as i've even duplicated the same tab over and it crashes on adding the 3rd tab.

would love any thoughts on this.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
709 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anveshreddy Nimmala 3,545 Reputation points Microsoft Vendor
    2024-06-11T04:23:07.3233333+00:00

    Hello Shastri, Akash,

    Welcome to microsoft Q&A, thankyou for posting your query here.

    container crash could be because of resource constraint, try to increase the memory and CPU allocation for your container.

    please find the related threads for increasing memory and cpu for the container

    https://learn.microsoft.com/en-us/answers/questions/180147/change-cpu-memory-in-azure-container-instances-usi

    https://learn.microsoft.com/en-us/answers/questions/367506/how-to-increase-the-container-memory

    Also you can use docker run command to limit your CPU and Memory

    Docker run -m 3gb <your-container name>

    Docker run --cpus 2 <your-container name

    Docker run --cpus 2 -m 3gb <your-container name>

    Hope this helps you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.