[PR #3148] [MERGED] fix: reduce the memory consumption during build to prevent OOM #4251

Closed
opened 2026-03-17 01:48:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3148
Author: @NicklasWallgren
Created: 6/17/2023
Status: Merged
Merged: 7/17/2023
Merged by: @AndrewBastin

Base: release/2023.4.8Head: fix/hopescotch-selfhost-web-reduce-memory-usage-during-build


📝 Commits (2)

  • 912fbe0 Reduce the memory consumption during build to prevent OOM in memory constraint environments.
  • 1d5b82f chore: update dockerignore to cleanly ignore node_modules

📊 Changes

5 files changed (+9 additions, -4 deletions)

View changed files

.dockerignore (+1 -0)
📝 packages/hoppscotch-common/src/components.d.ts (+5 -1)
📝 packages/hoppscotch-selfhost-web/Dockerfile (+1 -1)
📝 packages/hoppscotch-selfhost-web/package.json (+1 -1)
📝 packages/hoppscotch-sh-admin/Dockerfile (+1 -1)

📄 Description

Closes #3146

Description

Reduces the max heap size from 16 GB (16384) to 4GB (4096) for Node V8 to prevent OOM in memory constraint environments.

This doesn't affect the build performance (to a large extent) according to my tests, the garbage collector might run a bit more frequently.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

It might be a good idea to update the prerequisite documentation with a "minimum resource configuration" for docker desktop. The default docker desktop memory is limited to 2GB (and a swap of 1GB) which is to small to build the self-hosted web container.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3148 **Author:** [@NicklasWallgren](https://github.com/NicklasWallgren) **Created:** 6/17/2023 **Status:** ✅ Merged **Merged:** 7/17/2023 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.4.8` ← **Head:** `fix/hopescotch-selfhost-web-reduce-memory-usage-during-build` --- ### 📝 Commits (2) - [`912fbe0`](https://github.com/hoppscotch/hoppscotch/commit/912fbe0656b045c138f5cc0e6726f30a1a97f46a) Reduce the memory consumption during build to prevent OOM in memory constraint environments. - [`1d5b82f`](https://github.com/hoppscotch/hoppscotch/commit/1d5b82f4112dd81890d6e866075c960cbccd2ab1) chore: update dockerignore to cleanly ignore node_modules ### 📊 Changes **5 files changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `.dockerignore` (+1 -0) 📝 `packages/hoppscotch-common/src/components.d.ts` (+5 -1) 📝 `packages/hoppscotch-selfhost-web/Dockerfile` (+1 -1) 📝 `packages/hoppscotch-selfhost-web/package.json` (+1 -1) 📝 `packages/hoppscotch-sh-admin/Dockerfile` (+1 -1) </details> ### 📄 Description Closes #3146 ### Description Reduces the max heap size from 16 GB (16384) to 4GB (4096) for Node V8 to prevent OOM in memory constraint environments. This doesn't affect the build performance (to a large extent) according to my tests, the garbage collector might run a bit more frequently. ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [X] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [ ] All the tests have passed ### Additional Information It might be a good idea to update the prerequisite documentation with a "minimum resource configuration" for docker desktop. The default docker desktop memory is limited to 2GB (and a swap of 1GB) which is to small to build the self-hosted web container. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:48:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4251
No description provided.