Skip to content

Wslservice.exe leaks memory and threads #40470

@kotenok2000

Description

@kotenok2000

Windows Version

Microsoft Windows [Version 10.0.26200.8246]

WSL Version

2.6.3.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 4.4.0-26100-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #8115-Microsoft Fri Jan 01 08:00:00 PST 2016

Distro Version

ubuntu 24.04

Other Software

No response

Repro Steps

Run software unattended in WSL for a week.
Look at wslservice commit size. See it is 1160444 K Look at Threads number. See it is 23309

Expected Behavior

It should not leak memory.

Actual Behavior

Image

Diagnostic Logs

WslLogs-2026-05-08_23-22-36.tar.gz
Aqs you can see it spawned more threads than anything else

Metadata

Metadata

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