# ローカルマシンで、とてもとても遅い (クリーンインストール)

**URL:** https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890
**Category:** Self-hosting
**Tags:** dev-install, development
**Created:** [2024 年 4 月 1 日午後 4:54 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890 "2024-04-01T16:54:22Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![annetters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/annetters/32/373819_2.png) [@annetters](https://meta.discourse.org/u/annetters)
#### Post date: [2024 年 4 月 1 日午後 4:54 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/1 "2024-04-01T16:54:22Z")

</div>

新しいローカルインストール後に_極端な遅延_の問題を経験した方はいらっしゃいますか？クリーンインストールを完了したばかりで、テーマを作成しようとしています。Ubuntu/WSLにあまり詳しくないので、何か明白なことを見落としているのかもしれません。

- ローカルマシン、Windows 11、RAM 8GB、VS Code経由のWSL、Ubuntuベアメタル、SSD
- このインストールガイドを使用しました：[Install Discourse on Windows for development - #102 by Arkshine](https://meta.discourse.org/t/install-discourse-on-windows-10-for-development/75149/102)
- ember-cliの起動に5〜10分かかります。 🥲
- すべてが実行された後、[http://localhost:4200/](http://localhost:4200/) でページを読み込むのに5分以上かかります。 🥲
- 時々、emberプロセスがランダムに終了し、このメッセージが表示されます： 😭

```plaintext
ビルド成功 (213157ms) – http://localhost:4200/ で提供中

最も遅いノード (totalTime >= 5%) | 合計 (平均)
-+-\n@embroider/webpack (1) | 88353ms
Babel: discourse-plugins (19) | 54321ms (2859 ms)
DiscourseScss (2) | 25401ms (12700 ms)

I, [2024-04-01T12:37:00.055056 #9162] INFO -- : SIGWINCH はデーモン化されていないため無視されました
I, [2024-04-01T12:37:02.447649 #9162] INFO -- : SIGWINCH はデーモン化されていないため無視されました
Killed
[bin/ember-cli] ember-cli プロセスが停止しました。ユニコーンを終了します。
I, [2024-04-01T12:37:54.128930 #9162] INFO -- : reaped #\u003cProcess::Status: pid 9501 exit 0\u003e worker=2
I, [2024-04-01T12:37:54.239701 #9162] INFO -- : reaped #\u003cProcess::Status: pid 9500 exit 0\u003e worker=1
I, [2024-04-01T12:37:55.360116 #9162] INFO -- : reaped #\u003cProcess::Status: pid 9499 exit 0\u003e worker=0
I, [2024-04-01T12:37:55.362898 #9162] INFO -- : master complete
annetters@DESKTOP-S5K8606:~/discourse$

```

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2024 年 4 月 1 日午後 4:58 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/2 "2024-04-01T16:58:05Z")

</div>

> [@annetters](#):
>
> ローカルマシン、8GB RAM搭載のWindows 11、VS Code経由のWSL、Ubuntuベアメタル、SSD

これを実行中のメモリ統計を共有していただけますか？ 8GBはWindows 11だけでもすでに厳しいですが、WSL2を実行するためのLinux VM全体、およびPG/Redis/Unicorn/Emberプロセスを追加すると、スワップが多すぎる可能性があります。

[Theme Creator, create and show themes without installing Discourse!](https://meta.discourse.org/t/theme-creator-create-and-show-themes-without-installing-discourse/84942?u=falco) のテーマで開発を試してみてはいかがでしょうか？

---

<div class="post-metadata">

### Author: ![annetters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/annetters/32/373819_2.png) [@annetters](https://meta.discourse.org/u/annetters)
#### Post date: [2024 年 4 月 1 日午後 5:10 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/3 "2024-04-01T17:10:51Z")

</div>

うわぁ。良い判断ですね。これはあまり良くないようです。

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/b/8/0b88c114491f0ed29cc06c182a54371f643295a6.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/1/3/e13348c2c939b8842c543e6b43e39c978e6dbd11.png)

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [2024 年 4 月 1 日午後 5:12 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/4 "2024-04-01T17:12:32Z")

</div>

わろた、Chromeはメモリを食うのが好きだね

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2024 年 4 月 1 日午後 5:15 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/5 "2024-04-01T17:15:18Z")

</div>

ローカルインスタンスでの開発に意欲があるなら、ディスク容量に余裕があればLinuxのデュアルブートを検討することをお勧めします。個人的にはそうしています。

そうでなければ、[Theme Creator, create and show themes without installing Discourse!](https://meta.discourse.org/t/theme-creator-create-and-show-themes-without-installing-discourse/84942) を利用するのが最善の方法です。

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2024 年 4 月 1 日午後 5:36 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/6 "2024-04-01T17:36:18Z")

</div>

比較のためにDiscourseの小さな開発インスタンスしか持っていませんが、WSLはすでに4GBを使用しています。ただし、実際の使用量は、その中のアクティビティによってさらに高くなる可能性があります。

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/4/0/e405c842e307c0719d5f1acc48525d706e1a015b.png)

可能であれば、Falcoの提案に間違いなく従います。

ちなみに、[WSL構成](https://learn.microsoft.com/en-gb/windows/wsl/wsl-config#wslconfig)（メモリ制限、スワップなど）を調整できます。

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [2024 年 4 月 1 日午後 5:44 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/7 "2024-04-01T17:44:57Z")

</div>

> [@Arkshine](#):
>
> しかし、実際の使用量はアクティビティによってさらに高くなる可能性があります。

そうではないはずです。WSLが使用する量は、WSL自身のために予約されているだけで、私の知る限り、その予約量を超えることはありません…

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2024 年 4 月 1 日午後 5:59 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/8 "2024-04-01T17:59:46Z")

</div>

わかりません。以前はバグだったかもしれませんが、通常はコンピューターをオフにすることはなく、何らかの理由で10GB（またはそれ以上）に達することがありました。しかし、ドキュメントで見る限り、デフォルトでは合計メモリの50％が使用される可能性があります。（私は64GB持っているので、それが理由だと思います）。

---

<div class="post-metadata">

### Author: ![annetters](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/annetters/32/373819_2.png) [@annetters](https://meta.discourse.org/u/annetters)
#### Post date: [2024 年 4 月 2 日午前 1:12 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/9 "2024-04-02T01:12:35Z")

</div>

皆さん、こんにちは。ご提案ありがとうございます。テーマ作成ツールでテーマを個別に開発し、ホストされたインストールでコンポーネントをテストすることにしました。今年はメモリの多い新しいラップトップを購入する必要がありそうです！ 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024 年 5 月 2 日午前 1:13 UTC](https://meta.discourse.org/t/very-very-slow-on-local-machine-fresh-install/301890/10 "2024-05-02T01:13:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
