Stackedup
Stackedup

Reputation: 760

Azure Memory Working Set Vs. Visual Studio Process Memory

I have a web app that is running on Azure and my plan allows up to 1.5 GB for the memory for that app. Now when I go to my web app, under the metrics, and select the Memory Working Set for past 24 hours, I see the following graph:

enter image description here

That is mostly below 95 MB usage. Now when I run the app on local machine in Visual Studio, I see the memory usage is about 1.1 GB:

enter image description here

Now if someone can kindly answer my questions:

  1. Is Memory Working Set, the total memory used by my app (i.e out of that 1.5GB)?
  2. Why are the two so different?
  3. Should I worry about the memory consumption of my app on Azure (i.e. Prod)?

Upvotes: 1

Views: 650

Answers (1)

PerfectlyPanda
PerfectlyPanda

Reputation: 3511

In order to see how your web app is running against the total memory limit you can use the Quotas blade in the portal. This will include any overhead for running your app as well as the memory that the app itself is consuming. Based on the graph you shared your app is probably fine, but the Quotas blade will help you confirm.

enter image description here

As far as your local environment, you can take snapshots of your app running in Visual Studio to diagnose why it is using so much memory. Information about how to do this is in this article.

Upvotes: 0

Related Questions