fix: increase Node.js memory limit for start script to prevent heap o…#28234
Closed
Ranjit-Khanal wants to merge 1 commit intocalcom:mainfrom
Closed
fix: increase Node.js memory limit for start script to prevent heap o…#28234Ranjit-Khanal wants to merge 1 commit intocalcom:mainfrom
Ranjit-Khanal wants to merge 1 commit intocalcom:mainfrom
Conversation
…ut of memory errors
Author
|
@cubic-dev-ai can you provide sequence diagram of @v2 folder |
Contributor
@Ranjit-Khanal In Cal.com's API v2 (located in The sequence of a typical request in the sequenceDiagram
participant Client
participant Main as Main (Fastify/Express)
participant Guard as Guards (Auth/Permissions)
participant Interceptor as Interceptors (Transform/Logging)
participant Controller as Controller (@v2/src/ee/...)
participant Service as Service Layer
participant Prisma as Prisma/Database
Client->>Main: HTTP Request (e.g., POST /v2/bookings)
Main->>Guard: canActivate() (Check API Key/OAuth)
Guard-->>Main: Auth Success
Main->>Interceptor: intercept() (Format Request)
Interceptor->>Controller: Call Handler Method
Controller->>Service: Execute Business Logic
Service->>Prisma: Database Query
Prisma-->>Service: Model Data
Service-->>Controller: DTO (Data Transfer Object)
Controller-->>Interceptor: Handler Response
Interceptor-->>Main: Sanitize/Format Response
Main-->>Client: 200 OK (JSON Payload)
Key Differences in @v2:
For more details on the specific service patterns used here, you can check the Data & API Wiki. |
romitg2
reviewed
Mar 2, 2026
Member
There was a problem hiding this comment.
Thanks @Ranjit-Khanal, we've covered this in Readme docs. (we don't want this change)
link: https://github.com/calcom/cal.com?tab=readme-ov-file#development-tip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
from the issue
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #28233
Summary by cubic
Increase Node.js memory limit to 4 GB in the API v2 start script to prevent heap out-of-memory crashes during NestJS startup.
Written for commit 4efd18c. Summary will update on new commits.