From 3d2297ee48542ded4a181987223cac2e1ce7e5e9 Mon Sep 17 00:00:00 2001 From: James Calcaben Date: Wed, 27 Jan 2021 08:25:53 -0600 Subject: [PATCH 1/3] Add known issue about watcher running out of memory --- CHANGELOG.md | 2 ++ pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d3f3d3e01..f1958da7a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -234,6 +234,8 @@ Minor versions of PWA Studio & Venia released between typical Magento releases w - If you are using Multi-Source Inventory(MSI), a GraphQL issue prevents users from adding a configurable product to the shopping cart on non-default store views. - Prerender feature is unable to cache HTML on Fastly enabled environments. +- The `yarn watch` process may run out of memory if left running for more than 6 hours. + If an error occurs because of this, restart the watcher. ## Upgrading from a previous version diff --git a/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md b/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md index 9f5ba25c7b..a4ad661cb9 100644 --- a/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md +++ b/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md @@ -95,6 +95,11 @@ Some users have suggested deleting the `devcert` folder to trigger certificate r ${User}\AppData\Local\devcert ``` +**Watcher runs out of memory**{:#watcher-out-of-memory} + +If you leave the `yarn watch` process running for more than 6 hours, it runs out of memory and shows an error. +The solution for this is to restart the watch process and make sure it does not run for longer than 6 hours. + [create an issue]: https://github.com/magento/pwa-buildpack/issues [Slack channel]: https://magentocommeng.slack.com/messages/C71HNKYS2/team/UAFV915FB/ [host file]: https://en.wikipedia.org/wiki/Hosts_(file) From 7bf6642f00c4e04602b699c454f189f61ff15fa5 Mon Sep 17 00:00:00 2001 From: James Calcaben Date: Wed, 27 Jan 2021 08:31:41 -0600 Subject: [PATCH 2/3] Add link --- pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md b/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md index a4ad661cb9..cdb3a76aca 100644 --- a/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md +++ b/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md @@ -22,6 +22,7 @@ Paste the result console output into the issue. Thank you! * [Webpack hangs for a long time before beginning compilation](#webpack-hangs) * [Browser cannot resolve the `.local.pwadev` site](#cannot-resolve-site) * [Browser does not trust the generated SSL certificate](#untrusted-ssl-cert) +* [Watcher runs out of memory](#watcher-out-of-memory) ## Resolutions From f89cf10a83d0316d994b1000f0cdf0a5459663ea Mon Sep 17 00:00:00 2001 From: James Calcaben Date: Wed, 27 Jan 2021 09:20:01 -0600 Subject: [PATCH 3/3] Update note about watcher duration --- CHANGELOG.md | 2 +- pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1958da7a1..9df1dac435 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -234,7 +234,7 @@ Minor versions of PWA Studio & Venia released between typical Magento releases w - If you are using Multi-Source Inventory(MSI), a GraphQL issue prevents users from adding a configurable product to the shopping cart on non-default store views. - Prerender feature is unable to cache HTML on Fastly enabled environments. -- The `yarn watch` process may run out of memory if left running for more than 6 hours. +- The `yarn watch` process may run out of memory if left running for an extended amount of time. If an error occurs because of this, restart the watcher. ## Upgrading from a previous version diff --git a/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md b/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md index cdb3a76aca..39d625e16e 100644 --- a/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md +++ b/pwa-devdocs/src/pwa-buildpack/troubleshooting/index.md @@ -98,8 +98,8 @@ ${User}\AppData\Local\devcert **Watcher runs out of memory**{:#watcher-out-of-memory} -If you leave the `yarn watch` process running for more than 6 hours, it runs out of memory and shows an error. -The solution for this is to restart the watch process and make sure it does not run for longer than 6 hours. +If you leave the `yarn watch` process running for an extended amount of time, it runs out of memory and shows an error. +The solution is to restart the watch process and make sure it does not run for an extended amount of time. [create an issue]: https://github.com/magento/pwa-buildpack/issues [Slack channel]: https://magentocommeng.slack.com/messages/C71HNKYS2/team/UAFV915FB/