Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL2 create GBs of swap file using docker or apache2 #10941

Closed
1 of 2 tasks
XJTLUmedia opened this issue Dec 21, 2023 · 6 comments
Closed
1 of 2 tasks

WSL2 create GBs of swap file using docker or apache2 #10941

XJTLUmedia opened this issue Dec 21, 2023 · 6 comments

Comments

@XJTLUmedia
Copy link

XJTLUmedia commented Dec 21, 2023

Windows Version

Microsoft Windows [Version 10.0.22631.2861]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

11.2.0

Distro Version

Ubuntu 22.04

Other Software

Docker version 24.0.7, build afdd53b installed on WSL2

Repro Steps

mkdir plane-selfhost

cd plane-selfhost

curl -fsSL -o setup.sh https://raw.githubusercontent.com/makeplane/plane/master/deploy/selfhost/install.sh

chmod +x setup.sh

Expected Behavior

It shouldn't create so many swap.vhdx

Actual Behavior

t12
it constantly create swap.vhdx, according to https://learn.microsoft.com/en-us/windows/wsl/wsl-config Swap storage is disk-based RAM used when memory demand exceeds limit on hardware device. Everytime I use localhost(starting the service), it create a new swap.vhdx. Why WSL2 is creating swap file more than once, and keep demanding memory?

Can I delete all these swap.vhdx?

Diagnostic Logs

No response

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@XJTLUmedia XJTLUmedia closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2023
@isolitude
Copy link

The same problem. Every time I open docker, it will create two random-name filefolder in AppData\Local\Temp with swap.vdhx in it

@XJTLUmedia XJTLUmedia reopened this Dec 26, 2023
@OneBlue
Copy link
Collaborator

OneBlue commented Jan 16, 2024

@XJTLUmedia: These swap VHD's are safe to delete. I'm curious about why they don't get automatically deleted though. Can you share /logs of a repro where the file is left behind ?

/logs

Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue.

Thank you!

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

@lzyang2000
Copy link

I am also experiencing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants