My PC had been on for a week when a local build of a front-end project failed with ‘memory allocation failed’. Task Manager showed 55 GB committed against a limit of just 56.5 GB, yet the processes added up to only about 36 GB, all of them the programs I always have open. The remaining ten-odd GB was in the kernel: the paged pool was over 10 GB, and two pool tags alone, AlMs and AlEB, accounted for 7.3 GB, with about 6.75 million allocations each, and they were still growing every second.
It took several days and quite a few detours, but in the end a kernel pool allocation trace with call stacks found it: the memory was being leaked by the Windows Connection Manager (Wcmsvc). For every client request it handles, it sends a few ‘Sleep Study’ messages over ALPC to the Power Dependency Coordinator in the kernel, and once sent, those messages are never freed. What set it off was DHCPv6: an old router on the LAN, used as an access point, was sending router advertisements with the M flag but had no addresses to give out, so the Windows DHCPv6 client started a new request every 3–6 seconds, endlessly, leaking about 20 messages each round.
Once I turned off IPv6 router advertisements and the DHCPv6 service on that AP, the leak stopped at once, dropping from 4–7 messages a second to about 0.1. Memory that has already leaked can only be reclaimed by rebooting. Below is a record of how I tracked it down.




