Azure中的平均内存工作集和内存工作集 [英] Average Memory working set and Memory working set in Azure

查看:75
本文介绍了Azure中的平均内存工作集和内存工作集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure中有一个应用程序服务.它显示了两个度量标准,分别称为Average Memory Working SetMemory Working Set.现在,Memory Working Set定义为进程中的线程最近接触的一组内存页面.门户中显示的这两个图形如下:

I have an app service in Azure. It shows two metrics called Average Memory Working Set and Memory Working Set. Now, Memory Working Set is defined as the set of memory pages touched recently by the threads in the process. The graph for these two as shown in the portal are as below:

现在,我有三个问题:

  1. 如何找出我的服务具有的专用最大内存是多少?达到限制后会发生什么?
  2. 内存工作集是进程中的线程最近接触的内存页面数.我认为这意味着只有在我的代码存在内存泄漏,导致其他页面加载到内存等情况下,内存工作集才会增加.我要问的问题是,诸如请求数之类的外部因素是否会对内存请求产生任何影响?内存工作集,即如果请求从200增加到500,内存工作集会增加吗?如果是,为什么?

  1. How do I find out what is the dedicated maximum memory my service has? What will happen once the limit is reached?
  2. Memory Working Set is the number of memory pages touched recently by the threads in the process. I think that this means that the memory working set will only increase if my code has some memory leak, causes other pages to be loaded in memory etc. The question that I have is whether any external factors like number of requests have any effect on the Memory Working Set i.e. if the requests went up from 200 to 500, will the Memory Working Set increase? If yes, why?

平均内存工作集如何计算?它是随着时间推移而计算的吗?查看该图,我发现平均内存工作集和内存工作集具有几乎相似的值.

How is Average Memory Working Set calculated? Is it calculated over time? Looking at the graph I see that the Average Memory Working Set and Memory Working Set have almost similar values.

推荐答案

让我尝试尽可能多地回答:

Let me try to answer as much as I can:

1.a要了解专用的最大内存,应检查该进程的专用工作集".我想您可以在任务管理器中或在KUDU(在Azure中)的帮助下找到此信息.做一些谷歌,你会很容易找到它.

1.a To know dedicated maximum memory, you should check "private working set" for the process. I guess you can find this information in task manager or with help of KUDU(in Azure). Do some google, you'll find it easily.

1.b一旦达到限制,流程将访问共享工作集.

1.b Once the limit is reached process will access Shared working set.

2.a内存工作集是应用程序在MiB中使用的当前内存量".

2.a Memory working set is 'Current amount of memory used by the app in MiBs'.

2.b如果请求是引用的2.5倍,则内存工作集很可能会随着创建新对象而增加,前提是可以分配可共享的物理内存.

2.b If request went up by 2.5x times as you quoted, then Memory working set is most likely to increase as new object would get created, provided that there is shareable physical memory that can be allocated.

3.a平均工作内存集是应用程序使用的MiB中的平均内存量"

3.a Average Working Memory Set is 'The average amount of memory in MiBs used by the app'

这篇关于Azure中的平均内存工作集和内存工作集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆