是什么导致Azure模拟器中的监视代理程序错误?

时间:2013-07-13 13:18:57

标签: azure azure-diagnostics

当我使用SDK 2.0在Azure模拟器中运行应用程序时,我在控制台输出中反复重复以下错误。下面的错误说明“系统资源不足......”但它是我的开发机器上运行的唯一一个具有6核Xeon,32 GB Ram和大量硬盘空间的东西。而且,我在Windows中看不到任何内容事件查看器。造成这些错误的原因是什么?

[MonAgentHost] Error: MA EVENT: 2013-07-13T12:49:53.944Z
[MonAgentHost] Error:     2
[MonAgentHost] Error:     12640
[MonAgentHost] Error:     12644
[MonAgentHost] Error:     EtwListener
[MonAgentHost] Error:     0
[MonAgentHost] Error:     12c939f8-b82a-48fc-bb30-cc66717
[MonAgentHost] Error:     etw.cpp
[MonAgentHost] Error:     EtwListener::StartRealTimeSession
[MonAgentHost] Error:     3605
[MonAgentHost] Error:     0
[MonAgentHost] Error:     5aa
[MonAgentHost] Error:     Insufficient system resources exist to complete the requested service.
[MonAgentHost] Error:     ERROR:EnableTraceEx() to enable provider failed
[MonAgentHost] Error: MA EVENT: 2013-07-13T12:49:53.944Z
[MonAgentHost] Error:     2
[MonAgentHost] Error:     12640
[MonAgentHost] Error:     12644
[MonAgentHost] Error:     EtwListener
[MonAgentHost] Error:     0
[MonAgentHost] Error:     12c939f8-b82a-48fc-bb30-cc66717
[MonAgentHost] Error:     etw.cpp
[MonAgentHost] Error:     EtwListener::SetupEventing
[MonAgentHost] Error:     1876
[MonAgentHost] Error:     ffffffff80010008
[MonAgentHost] Error:     0
[MonAgentHost] Error:     
[MonAgentHost] Error:     Failed to start the etw real time user session
[MonAgentHost] Error: MA EVENT: 2013-07-13T12:49:53.944Z
[MonAgentHost] Error:     2
[MonAgentHost] Error:     12640
[MonAgentHost] Error:     12644
[MonAgentHost] Error:     EtwListener
[MonAgentHost] Error:     0
[MonAgentHost] Error:     12c939f8-b82a-48fc-bb30-cc66717
[MonAgentHost] Error:     etw.cpp
[MonAgentHost] Error:     EtwListener::Start
[MonAgentHost] Error:     1758
[MonAgentHost] Error:     ffffffff80010008
[MonAgentHost] Error:     0
[MonAgentHost] Error:     
[MonAgentHost] Error:     Failed to start event tracing
[MonAgentHost] Error: MA EVENT: 2013-07-13T12:49:53.944Z
[MonAgentHost] Error:     2
[MonAgentHost] Error:     12640
[MonAgentHost] Error:     12644
[MonAgentHost] Error:     MonAgent
[MonAgentHost] Error:     0
[MonAgentHost] Error:     12c939f8-b82a-48fc-bb30-cc66717
[MonAgentHost] Error:     monagent.cpp
[MonAgentHost] Error:     MonAgent::InitializeEtw
[MonAgentHost] Error:     1303
[MonAgentHost] Error:     ffffffff80010008
[MonAgentHost] Error:     0
[MonAgentHost] Error:     
[MonAgentHost] Error:     Error: Failed to start ETW providers
[MonAgentHost] Error: MA EVENT: 2013-07-13T12:49:53.944Z
[MonAgentHost] Error:     2
[MonAgentHost] Error:     12640
[MonAgentHost] Error:     12644
[MonAgentHost] Error:     MonAgent
[MonAgentHost] Error:     0
[MonAgentHost] Error:     12c939f8-b82a-48fc-bb30-cc66717
[MonAgentHost] Error:     monagent.cpp
[MonAgentHost] Error:     MonAgent::InitializeForStart
[MonAgentHost] Error:     221
[MonAgentHost] Error:     ffffffff80010008
[MonAgentHost] Error:     0
[MonAgentHost] Error:     
[MonAgentHost] Error:     Failed to start the ETW providers
[MonAgentHost] Error: MA EVENT: 2013-07-13T12:49:53.944Z
[MonAgentHost] Error:     2
[MonAgentHost] Error:     12640
[MonAgentHost] Error:     12644
[MonAgentHost] Error:     MonAgent
[MonAgentHost] Error:     0
[MonAgentHost] Error:     12c939f8-b82a-48fc-bb30-cc66717
[MonAgentHost] Error:     monagent.cpp
[MonAgentHost] Error:     MonAgent::Start
[MonAgentHost] Error:     2215
[MonAgentHost] Error:     ffffffff80010008
[MonAgentHost] Error:     0
[MonAgentHost] Error:     
[MonAgentHost] Error:     Failed initialize agent sub-components

这是我的服务定义:

<WorkerRole name="SPS.Azure.FooService" vmsize="Small">
    <Imports>
      <Import moduleName="Diagnostics" />
      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />
    </Imports>
    <ConfigurationSettings>      
      <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.Level" />
    </ConfigurationSettings>
</WorkerRole>

这是我的服务配置:

<Role name="SPS.Azure.FooService">
    <Instances count="1" />
    <ConfigurationSettings>      
      <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" />
      <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.Level" value="Verbose" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="ausername" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="apassword" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="2014-05-10T23:59:59.0000000-04:00" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" />
    </ConfigurationSettings>  
</Role>

这是我的wadcfg文件:

<?xml version="1.0" encoding="utf-8"?>
<DiagnosticMonitorConfiguration configurationChangePollInterval="PT1M" overallQuotaInMB="4096" xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
  <DiagnosticInfrastructureLogs />
  <Directories>
    <IISLogs container="wad-iis-logfiles" />
    <CrashDumps container="wad-crash-dumps" />
  </Directories>
  <Logs bufferQuotaInMB="1024" scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose" />
  <WindowsEventLog bufferQuotaInMB="1024" scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose">
    <DataSource name="Application!*" />
  </WindowsEventLog>
</DiagnosticMonitorConfiguration>

这是我的App.config文件中的诊断配置:

<system.diagnostics>
    <trace>
      <listeners>
        <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
          <filter type=""/>
        </add>
      </listeners>
    </trace>
  </system.diagnostics>

2 个答案:

答案 0 :(得分:6)

我整个星期都遇到了同样的问题。在黑暗中拍摄,我在c:\ Users \ MyAccount下删除了AppData \ Local \ dftmp的全部内容,但我还没有看到错误消息。

如果单击Azure Compute Emulator中的部署,然后单击“工具” - &gt; “打开本地商店...”,AppData \ Local \ dftmp是它带你去的文件夹。

答案 1 :(得分:3)

清除ETW事件会话似乎解决了我的问题。

1)要查看活动会话:

Logman -ets

2)停止主devFabric会话:

Logman stop devFabric.mainSession -ets

3)对于来自第一个查询的每个MA_ETWSESSION条目,运行类似于此的内容:

logman stop MA_ETWSESSION_MACHINE23_deployment23(1).CloudProductName.ServicePortal_IN_1 -ets