Softlayer API内存使用情况(Softlayer API memory usage)
我正在使用getMemoryMetricDataByDate分析Softlayer虚拟客户端上过去三个月的内存使用情况。 示例guest虚拟机上的规范是maxCpu = 2,maxMemory = 8192 MB。
据报道,内存使用率为maxMemory的89%到100%。 对于此服务器,这似乎不正确。 一个示例数据点是:
[counter] => 8127187622.8697 [dateTime] => 2016-05-04T18:00:00-06:00 [type] => memory_usage
在183个数据点的集合中,最小计数器值为7652222531.7333(字节),最大值为8589934592(字节)。
为了交叉检查,我使用getMemoryMetricImageByDate将图形图像拉到相同的日期范围。 见下文。 该图表显示两行。 第一个内存平均值为1.6 GB,最大值为11.1 GB。 第二行显示内存平均值为5.3 GB,最大值为220.1 GB。
我的问题是:
为什么图表上有两行?
为什么getMemoryMetricDataByDate和getMemoryMetricImageByDate之间的数据显着不同,因为为每个调用指定了完全相同的虚拟客户和日期范围?
I am analyzing memory usage for the past three months on a Softlayer Virtual Guests using getMemoryMetricDataByDate. Specs on an example guest are maxCpu = 2, and maxMemory = 8192 MB.
Memory usage is reported to be at 89% to 100% of maxMemory. This does not seem correct for this server. An example datapoint is:
[counter] => 8127187622.8697 [dateTime] => 2016-05-04T18:00:00-06:00 [type] => memory_usage
In the set of 183 datapoints, the min counter value is 7652222531.7333 (bytes) the max is 8589934592 (bytes).
To cross check, I pulled the graphic image for the same date range using getMemoryMetricImageByDate. See below. The chart shows two lines. The first with memory average of 1.6 GB and max of 11.1 GB. The second line shows memory average of 5.3 GB and max of 220.1 GB.
My questions are:
Why are there two lines on the chart?
Why is the data significantly different between getMemoryMetricDataByDate and getMemoryMetricImageByDate, given that the exact same virtual guest and date range were specified for each call?
原文:https://stackoverflow.com/questions/38776711
最满意答案
你可以使用简单的
MessageBox
private void pictureBox1_Click(object sender, EventArgs e) { if(MessageBox.Show("Are you really sure you want to run the program?", "Notification", MessageBoxButtons.OKCancel) == DialogResult.OK) Process.Start("C:\\something.exe"); }
You could use simple
MessageBox
private void pictureBox1_Click(object sender, EventArgs e) { if(MessageBox.Show("Are you really sure you want to run the program?", "Notification", MessageBoxButtons.OKCancel) == DialogResult.OK) Process.Start("C:\\something.exe"); }
相关问答
更多-
System.AppDomain.CurrentDomain.FriendlyName System.AppDomain.CurrentDomain.FriendlyName
-
MSDN有一篇文章说使用System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase ; 如果您需要该目录,请在该结果上使用System.IO.Path.GetDirectoryName 。 或者,有更短的Application.ExecutablePath “获取启动应用程序的可执行文件的路径,包括可执行文件名”,这可能意味着它的可靠性稍差,具体取决于应用程序的启动方式。 MSDN has an article that says ...
-
语言没有太多内置(如果有的话),但有很多例子,比如 https://web.archive.org/web/20160312145447/http://code.cheesydesign.com/?p=572 https://web.archive.org/web/20150826092221/http://sergeyakopov.com/2010/11/reading-pe-format-using-data-marshaling-in-net/ There's not much built-in to ...
-
在XP上,最大图标大小是HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics 在我的系统上, Shell Icon Size设置为33 您可以将其更改为更大的值,但是当窗口加载到适当的大小图标时,会有稍长的延迟 显然没有限制,但拥有1024x1024的图标会有点过分(更不用说所需的加载时间) on XP, the max icon size is help in HKEY_CURRENT_USER\Control Panel\Desktop\Window ...
-
在包含外部库的文件夹外运行C#可执行文件(Running a C# executable outside of folder containing external library)[2021-06-13]
应该有几个选项应该有效。 问题是库不在路径中。 这可能有所帮助。 “ http://msdn.microsoft.com/en-us/library/vstudio/6taasyc6%28v=vs.100%29.aspx ”。 您只需要将库放在同一位置即可。 您可以将它添加到路径变量中(尽管这可能会导致其他地方发生冲突)。 您可以将文件夹添加到临时路径,即控制台启动时。 您可以将它添加到相对路径“ Visual Studio:如何设置dll的路径? ” 希望这会有所帮助 There should be se ... -
你可以使用简单的MessageBox private void pictureBox1_Click(object sender, EventArgs e) { if(MessageBox.Show("Are you really sure you want to run the program?", "Notification", MessageBoxButtons.OKCancel) == DialogResult.OK) Process.Start("C:\\so ...
-
您添加3个文件(“System.dll”,“System.Windows.Forms.dll”,“System.Drawing.dll”)作为嵌入式资源而不是引用。 将它们添加到ReferencedAssemblies。 You are adding 3 files ("System.dll","System.Windows.Forms.dll","System.Drawing.dll") as embedded resources not as references. Add them to Refere ...
-
当您启动的进程是带有消息循环的Windows应用程序时,将使用WaitForInputIdle()。 在您的情况下,它是简单的控制台应用程序。 因此,您只需要从代码中排除两个WaitForInputIdle()调用: Process exeProcess = new Process(); exeProcess.StartInfo.FileName = @"...\marcus12.exe"; exeProcess.StartInfo.UseShellExecute = false; exeProcess.S ...
-
看看execve函数: http : //msdn.microsoft.com/en-us/library/hyw61wtd( v = vs。80) .aspx Take a look at the execve function : http://msdn.microsoft.com/en-us/library/hyw61wtd(v=vs.80).aspx
-
让我们看看gcc如何在详细模式下工作。 gcc -v -o main main.o comp.o gcc使用以下命令链接对象 /usr/lib/gcc/x86_64-linux-gnu/4.4.3/collect2 --build-id --eh-frame-hdr -m elf_x86_64 --hash-style = both -dynamic-linker / lib64 / ld-linux -x86-64.so.2 -o main -z relro /usr/lib/gcc/x86_64-li ...