Query related to "The Data Collector Set or one of its dependencies is already in use."

Anonymous
2024-04-15T12:22:23+00:00

Background:

When our application is trying to collect the Windows host performance stats using Perfmon tool; we observed that the performance stats are not getting collected. We are seeing the following error when perfmon tool is trying to collect the Windows host data.

Error:

The Data Collector Set or one of its dependencies is already in use.

I am suspecting that this exception might be the reason of data gaps in Windows hosts' performance reports. Can anyone please confirm if this understanding is correct or not.

I would like to know in which case does this error occurs? And what's the impact of this error on data collection.

Also, how to troubleshoot the problem when this exception occurs and if there is any solution to this.

Windows for business | Windows Server | Performance | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Anonymous
    2024-04-15T15:20:26+00:00

    Hello

    Thank you for posting in Microsoft Community forum.

    Yes, your understanding is correct. The error “The Data Collector Set or one of its dependencies is already in use” can indeed cause data gaps in Windows hosts’ performance reports. This error typically occurs when the “NT Kernel Logger”, a kernel event provider, is being accessed by multiple consumers at the same time.

    The impact of this error on data collection is significant. If a Data Collector Set fails to start, it cannot collect the necessary performance data, leading to gaps in your reports.

    To troubleshoot this problem, you can try the following steps:

    Check for conflicting processes: Use a tool like Process Manager from Microsoft to identify any processes that may be using the Data Collector Set.

    Stop the NT Kernel Logger: In Performance Monitor, expand Data Collector Sets, open Event Trace Sessions, locate NT Kernel Logger, right-click and select Stop.

    Delete .blg files: In Perfmon, go to the Reports folder, expand User Defined, then your custom data collector set, and delete the .blg files.

    Check Windows Services: Ensure that the following Windows Services are set on Manual: Performance Logs and Alerts, Problem Reports and Solutions Control Panel Support.

    Restart your computer: After making these changes, restart your computer and try to run perfmon /report again.

    Best Regards,

    Wesley Li

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-04-16T10:04:25+00:00

    Hi Li,

    Thanks for your response.

    I am checking on Windows Server 2022 Standard (Version 21H2) but unable to locate NT Kernel Logger at this location. Attached screenshot for reference.

    Performance Monitor > Data Collector Sets > Event Trace Sessions

    Could you please let us know why this service is not showing?

    Regards,

    Akshay

    0 comments No comments
  3. Anonymous
    2024-04-16T16:11:36+00:00

    If it is already used by another process, it may not be visible. In some cases, certain services or drivers may interfere with the data collector set. If these services are running, they may cause the NT kernel logger to start automatically, rendering it unusable for other purposes.

    To resolve this issue, you can check that your data collector set is collecting kernel logger information and stop the resource monitor before running the data collector set. If the problem persists, you may need to identify and disable the service or driver that is starting the NT kernel logger.

    0 comments No comments
  4. Anonymous
    2024-04-17T13:57:20+00:00

    Hi Li,

    Thank you.

    I checked on google and tried to install the "Process Manager" tool on my Windows machine but the tool is not working. Below is the link from where I downloaded the "Process Manager" tool. Please confirm if the below link is correct or not.

    https://process-manager.en.softonic.com/

    https://sourceforge.net/projects/processpriority/

    Could you please let me know why the "Process Manager" tool is not working on my machine. Also, if possible please share the link to download the "Process Manager" tool and detailed steps to install it.

    Regards,

    Akshay

    0 comments No comments
  5. Anonymous
    2024-04-18T13:10:21+00:00

    Hi Li,

    Thank you.

    I checked on google and tried to install the "Process Manager" tool on my Windows machine but the tool is not working. Below is the link from where I downloaded the "Process Manager" tool. Please confirm if the below link is correct or not.

    https://process-manager.en.softonic.com/

    https://sourceforge.net/projects/processpriority/

    Could you please let me know why the "Process Manager" tool is not working on my machine. Also, if possible please share the link to download the "Process Manager" tool and detailed steps to install it.

    Regards,

    Akshay

    Hi Li,

    It would be great if you can provide your inputs on it.

    0 comments No comments