gitlab-http-router out of memory crash
Overview
While working, I suddenly was unable to access GDK in the browser. The browser reported that it was unable to reach gdk.test:3000.
When using curl I got this back: curl: (7) Failed to connect to gdk.test port 3000 after 1 ms: Couldn't connect to server.
So I ran gdk tail gitlab-http-server and saw these logs:
2024-08-06_15:52:47.14288 gitlab-http-router : workerd/jsg/setup.c++:35: fatal: V8 fatal error; location = Reached heap limit; message = : allocation failed: JavaScript heap out of memory
2024-08-06_15:52:47.14288 gitlab-http-router :
2024-08-06_15:52:47.14289 gitlab-http-router :
✘ [ERROR] *** Received signal #6: Abort trap: 6
2024-08-06_15:52:47.14403 gitlab-http-router :
2024-08-06_15:52:47.14404 gitlab-http-router : stack:
2024-08-06_15:52:47.14404 gitlab-http-router :
2024-08-06_15:52:47.14404 gitlab-http-router :
2024-08-06_15:52:47.14404 gitlab-http-router :
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Steps to replicate (optional)
Unclear, but I had several tabs/windows for GDK open as I was trying to debug some frontend code relating to GraphQL queries and subscriptions and how they differed on several pages.
Proposal (optional)
Environment (optional)
- Operating system name:
Darwin Jacks-MacBook-Pro.local 23.6.0 Darwin Kernel Version 23.6.0: Fri Jul 5 17:56:15 PDT 2024; root:xnu-10063.141.1~2/RELEASE_ARM64_T6031 arm64 - Architecture:
arm64 - The contents of your
gdk.yml(if any)
gitlab_ai_gateway:
enabled: false
gitlab_docs:
enabled: false
hostname: gdk.test
telemetry:
enabled: true
username: jachapman
vite:
enabled: true
webpack:
enabled: false
- Ruby version:
ruby 3.2.4 (2024-04-23 revision af471c0e01) [arm64-darwin23] - GDK version:
77243256 (or slightly earlier version)
Edited by Jack Chapman