# WSL environment deadlocks

**URL:** https://meta.discourse.org/t/wsl-environment-deadlocks/136785
**Category:** Development
**Created:** [December 21, 2019, 5:58pm UTC](https://meta.discourse.org/t/wsl-environment-deadlocks/136785 "2019-12-21T17:58:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ramjke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ramjke/32/150397_2.png) [@ramjke](https://meta.discourse.org/u/ramjke)
#### Post date: [December 21, 2019, 5:58pm UTC](https://meta.discourse.org/t/wsl-environment-deadlocks/136785/1 "2019-12-21T17:58:12Z")

</div>

> [@Install Discourse on Windows for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-windows-10-for-development/75149):
>
> information_source This tutorial has been tested on Windows 10 and 11. To set up a development environment for Discourse on Windows, you can do it using [Windows Subsystem for Linux](https://msdn.microsoft.com/en-us/commandline/wsl/install-win10) feature. This setup requires the WSL 2 installation. It is only available in Windows 10 builds 18917 or higher. We’ll assume that you already installed [Windows Subsystem for Linux 2 (Ubuntu)](https://docs.microsoft.com/en-us/windows/wsl/install) on your Windows 10 system. WARNING: Install Ubuntu 18.04, and not 20.04 since some installations will fail on 20.04. For m…

Using this guide I have setup with latest Ubuntu on WSL.  
This setup work perfectly for my PHP or Javascript projects. But not with Discourse. I have 2 big problems with it:

1. Discourse on WSL very slow. It takes 4-6 seconds to load a page. The processor i7 8750h loaded for 100% when processing requests.
2. WSL DEADLOCKS every 10-30 minutes while work Discourse. Only restarting the computer is able to get out of the hang.

I’m using puma, ruby 2.4.5, latest discourse build.

## What I try:

- reinstall WSL distro
- ln -s tmp folder outside shared folder
- bundle exec puma --worker 1

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 21, 2019, 11:36pm UTC](https://meta.discourse.org/t/wsl-environment-deadlocks/136785/2 "2019-12-21T23:36:14Z")

</div>

WSL is trouble and ultimately a dead end for Microsoft, I recommend you install WSL2 which works fine and is only 5-20% slower than dual booting
