Heap limit Allocation reached on first time running "npx start" after setting up the project.
I think the issue is due to backend scripts because same error occurs on running command but I don't know how I can resolve this.
6 Replies
Hello, please try allowing more memory to node using https://stackoverflow.com/questions/56982005/where-do-i-set-node-options-max-old-space-size-2048
Please also refer to official docs https://twenty.com/developers/section/self-hosting/troubleshooting#while-running-,[object-object],-or-,[object-object],,-out-of-memory-error-is-thrown
Hey @Prastoin , how much memory should I allow? 6gb?
And also, Could you please tell me how much memory is minimum required to run the setup?
So that I can know whether it is possible for me to run it or not.
Hey please refer to system requirements here https://twenty.com/developers/section/self-hosting/docker-compose#system-requirements
Depends on available RAM on your machine, but you could give a try to 8GB
NODE_OPTIONS=--max-old-space-size=8192
Here it says min 2GB is required but it's crashing on wsl in 6 gb ram
Mhm my bad forwarded you the self hosting system requirements
Dev env is way more consuming than the live built app
oh
so, it isn't written anywhere?
I have 16 gb ram and wsl is using half of it currently.