Rank 2: Process
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Votes
0
Replies
6
Participants
1
Messages
7
Rank 2: Process
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
This error means your Node.js application is running out of memory it's trying to use more RAM than allowed.
I can help you fix this! Common causes are:
Processing large files/datasets
Memory leaks in your code
Default heap size too small for your application
What are you running when this happens? (e.g., build process, data processing, server application)
Rank 2: Process
A build process am using appwrite sites
For the build issue: Appwrite Sites builds can hit memory limits with large projects. Quick fixes:
Increase Node memory: NODE_OPTIONS=--max-old-space-size=4096
Optimize dependencies (remove unused packages)
Check for large files in your build
I'd be happy to help you solve this properly. Can we move this to a message? I have some specific solutions for Appwrite builds, and we can discuss how I can assist you with this project more comprehensively.
Rank 2: Process
hi thank you for reply i will try to find unused packages
Rank 2: Process
not sure where to set that am using appwrite cloud
NODE_OPTIONS=--max-old-space-size=4096
For Appwrite Cloud, you can set environment variables in your project settings:
Go to your project dashboard
Navigate to Settings → Environment Variables
Add: NODE_OPTIONS with value --max-old-space-size=4096
If you need help setting this up or want me to take a closer look at your project, feel free to DM me I can walk you through it!
@RoxGame