Skip to content

Svchost.exe high memory usage in Windows 11 #106

Closed

Description

@CloverSkye

Checklist

Report

Describe what is happening
One of the svchost.exe process slowly consumes all free memory until no more memory is available, which results in Windows crashing/hanging. Happens with both Windows 11 22H2 (22621.382/22621.1702) and 23H2 (22631.2428) sources.

To Reproduce
Step-by-step instructions on how to reproduce the behavior:

  1. Make a stock PhoenixPE build.
  2. Boot ISO/flash drive.
  3. After 5-10 minutes the svchost.exe process associated with the AudioEndpointBuilder, StorSvc, and WlanSvc services will start increasing memory usage at ~100KB per second.

The service that seems to cause this problem is StorSvc, which is set to start manually/on trigger. Stopping the StorSvc service does prevent more memory from being consumed, but the existing consumed memory will not be released unless AudioEndpointBuilder and WlanSvc are also stopped, since that closes their related svchost.exe process.

First discovered issue on VirtualBox earlier this year, but I was able to replicate the issue on Lenovo and Dell laptops later on so it's not a VM-specific issue. In case the issue was caused by the computer making the build, I made the stock PhoenixPE build on two different machines, but both builds exhibit the issue.

This issue is not noticeable unless you are paying attention to Task Manager or use the PhoenixPE environment for multiple hours (which on computers with less RAM will crash sooner rather than later). Presumably, disabling the Storage Service would prevent this problem from happening, but I am not sure if Windows or other applications need this service in order to function properly.

Screenshots/Logs
Screenshots were taken at roughly 10 hours uptime
VirtualBox_11_02_09_2024_00_53_36
VirtualBox_11 02_09_2024_00_54_03

Activity

  1. homes32 commented on Sep 6, 2024

    @homes32
    Contributor

    Thanks for all the work tracking this down. I have confirmed your findings. Next step is to find out what is manually triggering the service to start.

  2. homes32 commented on Oct 15, 2024

    @homes32
    Contributor

    The trigger is in the service definition itself.

    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\StorSvc\TriggerInfo\
    

    Through the process of elimination its subkeys 1 and 2 that trigger the StorSvc to startup (0 looks for a specific device on startup). these 2 triggers look for specific RPC packets on the network interface.

  3. homes32 commented on Nov 20, 2024

    @homes32
    Contributor

    Update: The service is not present in build 24H2 (26100.1742).

  4. deleted a comment from kendycr on Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions