Skip to content

vmIdleTimeout has no effect #8659

Answered by NotTheDr01ds
Seeky90 asked this question in General
Jul 26, 2022 · 5 comments · 7 replies
Discussion options

You must be logged in to vote

I was thinking the same thing for most of today, but believe it or not, it appears to be working as intended. The documentation wording on this feature is accurate, but confusing:

key value default notes
vmIdleTimeout number* 60000 The number of milliseconds that a VM is idle, before it is shut down. Only available for Windows 11.

Technically, it should say "the VM", because there's only one WSL2 virtual machine running.

The confusion is that this refers to the managed VM running WSL2 itself, not the WSL2 distribution/container/instance.

There are two timers that are in play here:

  • The first timer is how long a WSL instance is idle before it is terminated. Think of this as a ws…

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@johnvranos
Comment options

@NotTheDr01ds
Comment options

Answer selected by Seeky90
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@johnvranos
Comment options

@aki-k
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@aki-k
Comment options

@NotTheDr01ds
Comment options

@aki-k
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #8654 on July 26, 2022 21:12.