locked
An increasing number of handles used by data collector process as time passes causing rendering issues

    Întrebare

  • Hi,
    We are having the problem with our TestAgents, that the Handle Count for the QTDCAgent32.exe process is slowly increasing until a point where the machine is no longer usable (mouse is responding erratic, windows are not being rendered properly). Even when no tests are running, the handle count slowly increases as you can see in the graph attached (HandleCount2Hours). At 20:00 the Test Agent was restarted and was running tests from 20:00 to 22:00 - between 22:00 and 00:00 no tests was executed on the TestAgent. As you can see in the attached HandleCount24Hours illustrating the number of handles for the next 24 hours, the handle count is increasing steadily, which some periodic small jumps up and down.
    The only data collector enabled in the TestSettings is EventLog. I have enabled and increased the logging for the QTDCAgent32 process
      <system.diagnostics>
        <switches>
          <!-- You must use integral values for "value".
               Use 0 for off, 1 for error, 2 for warn, 3 for info, and 4 for verbose. -->
          <add name="EqtTraceLevel" value="4" />
        </switches>
      </system.diagnostics>
      <appSettings>
        <add key="StopTestRunCallTimeoutInSeconds" value="5"/>
        <add key="LogSizeLimitInMegs" value="20"/>
        <add key="CreateTraceListener" value="yes"/>
      </appSettings>
      
    But nothing interesting seems to be traced (only when restarting the TestAgent):
    I, 1220, 1, 2012/01/07, 19:59:00.732, TA-01\QTDCAgent32.exe, DefaultListener removed
    I, 1220, 1, 2012/01/07, 19:59:00.732, TA-01\QTDCAgent32.exe, Create trace listener in path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE FileName: VSTTDCAgentProcess.log
    I, 1220, 1, 2012/01/07, 19:59:00.732, TA-01\QTDCAgent32.exe, DataCollectionAgentProcess: starting
    V, 1220, 1, 2012/01/07, 19:59:00.775, TA-01\QTDCAgent32.exe, ExecutionUtilities.RegisterIpcClientServerChannel: Registering IPC channel on IPC port 'eqt-195982bf-118c-a7a7-2f0b-aa1daa13c94f'
    V, 1220, 1, 2012/01/07, 19:59:00.777, TA-01\QTDCAgent32.exe, ExecutionUtilities.RegisterIpcClientServerChannel: Successfully registered IPC channel on IPC port 'eqt-195982bf-118c-a7a7-2f0b-aa1daa13c94f'
    I, 1220, 1, 2012/01/07, 19:59:00.781, TA-01\QTDCAgent32.exe, DataCollectionAgentProcess: Connecting to ipc://eqt-1f51b564-ca54-5b32-58d0-548099c766d6/AgentProcessManagerAccessManager.rem
    V, 1220, 1, 2012/01/07, 19:59:00.781, TA-01\QTDCAgent32.exe, DataCollectionAgentProcess: Calling GetAgentProcessProxy. Execution key: 2cd6d444-c6cf-44d9-8eb1-5a09a9f0b8ad
    V, 1220, 1, 2012/01/07, 19:59:00.802, TA-01\QTDCAgent32.exe, DataCollectionEnvironmentContext: Adding Agent Process URI ipc://eqt-195982bf-118c-a7a7-2f0b-aa1daa13c94f/
    I, 1220, 1, 2012/01/07, 19:59:00.803, TA-01\QTDCAgent32.exe, DataCollectionAgentObject: DataCollectionEnvironmentContext.IsRemote is True
    V, 1220, 1, 2012/01/07, 19:59:00.803, TA-01\QTDCAgent32.exe, Agent TA-01: created Controller Event Sink
    V, 1220, 1, 2012/01/07, 19:59:00.804, TA-01\QTDCAgent32.exe, DataCollectionAgentObject: starting state machine on different thread.
    V, 1220, 1, 2012/01/07, 19:59:00.804, TA-01\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): SetNextState Online called
    V, 1220, 7, 2012/01/07, 19:59:00.805, TA-01\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): In state Online. Waiting for state change...
    V, 1220, 7, 2012/01/07, 19:59:00.805, TA-01\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): Exit wait for state change, current state is Online.
    V, 1220, 7, 2012/01/07, 19:59:00.805, TA-01\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): calling state handler for Online
    V, 1220, 7, 2012/01/07, 19:59:00.806, TA-01\QTDCAgent32.exe, StateMachine(DataCollectionAgentState): In state Online. Waiting for state change...
    V, 1220, 1, 2012/01/07, 19:59:00.807, TA-01\QTDCAgent32.exe, DataCollectorWatcher: DataCollectorDiscoveryPeriod set to: 5000
    V, 1220, 1, 2012/01/07, 19:59:00.807, TA-01\QTDCAgent32.exe, DataCollectorWatcher.Start: Starting to watch for changes in the data collector files.
    V, 1220, 8, 2012/01/07, 19:59:00.808, TA-01\QTDCAgent32.exe, DataCollectorCache.ForceCacheUpdate: Performing data collector discovery.
    V, 1220, 1, 2012/01/07, 19:59:00.808, TA-01\QTDCAgent32.exe, DataCollectionAgentObject: constructor is done, success.
    I, 1220, 1, 2012/01/07, 19:59:00.808, TA-01\QTDCAgent32.exe, DataCollectionAgentProcess: Calling into AgentService to register the agent.
    I, 1220, 1, 2012/01/07, 19:59:00.851, TA-01\QTDCAgent32.exe, DataCollectionAgentProcess: Successfully registered data collection agent process.
    I, 1220, 1, 2012/01/07, 19:59:00.851, TA-01\QTDCAgent32.exe, DataCollectionAgentProcess: waiting for shutdown notification.
    V, 1220, 6, 2012/01/07, 19:59:01.311, TA-01\QTDCAgent32.exe, DataCollectionAgentObject: Hello.
    V, 1220, 6, 2012/01/07, 19:59:01.313, TA-01\QTDCAgent32.exe, DataCollectionEnvironmentContext: Adding Agent Process URI ipc://eqt-195982bf-118c-a7a7-2f0b-aa1daa13c94f/
    V, 1220, 8, 2012/01/07, 19:59:01.958, TA-01\QTDCAgent32.exe, DataCollectorCache.ForceCacheUpdate: Done performing data collector discovery.
    Anyone with ideas or suggestions would be greatly appreciated.
    Regards,
    SHM
    8 ianuarie 2012 23:32

Toate mesajele

  • Hi sihima,

    Just to confirm, have you installed VS2010 and KB2580221?

    Thanks!


    Sophia Lu [MSFT]
    1 februarie 2012 10:39
  • Dear Sophia,


    VS2010 is not installed on these agents, only the TestAgent-part. KB2580221 was not installed, but after I installed this a couple of days ago, the problem unfortunately still persists. Any other suggestions?


    Regards,

    SHM

    7 februarie 2012 09:33
  • Hi Shima,

    Sorry for the delayed response.  I will suggest a more detailed trouble shooting.  Your question falls into the paid support category which requires a more in-depth level of support. Please visit the below link to see the various paid support options that are available to better meet your needs.
    http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone

    Thanks!


    Sophia Lu [MSFT]

    21 mai 2012 06:08