Reached heap limit Allocation failed
I'm trying to deploy a NestJs app with a trial plan. facing problem deploying. is there any solution? if I pursue a hobby plan is there any chance of increasing the memory allocation size?
44 Replies
Project ID:
bd61c2f8-b138-49fb-bd2a-f3f8546beb7e
bd61c2f8-b138-49fb-bd2a-f3f8546beb7e
what do your memory metrics look like?
I'm not sure. I'm a very beginner-level developer. 😦 i found https://stackoverflow.com/questions/53230823/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javas this post, but not sure what to do inside my project
Stack Overflow
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation f...
When I run an Ionic 3 project using the ionic serve command, then I am getting this error:
railway provides usage graphs in the metrics tab, lets see a screenshot of them
ok. give me some time
well memory is nowhere near the 512mb limit of the trial plan
deployment logs please https://bookmarklets.up.railway.app/log-downloader/
use the bookmarklet please
ok give me some time please
can you provide your repo?
sure
GitHub
GitHub - char-avijit/welcome_builder
Contribute to char-avijit/welcome_builder development by creating an account on GitHub.
looking
my running theory is your app is trying to allocate more memory than your trial plan allows for, but its not showing on the graph because it happens faster then the memory metric capture interval
id recommend upgrading to hobby
can you some how confirm that its working with hobby plan ?
its a different error, but its not an out of memory error
ok... its related to secrete env value
make one up for me and tell me the variable name, ill set it and redeploy
can try those value and keep others empty. i think it will work fine.
is it okay for you to give me those databases like that?
this is not a private chat
different error
its fine... just test db xD
ok i think it will work then... i cant share more secrets. no more test service... 🙂 thanks a lot for your time.
no problem, let me know if theres any issues after the upgrade to hobby!
can i cancel subscription if i have to after 2 months ?
yeah you can cancel
how much time it will take to cancel ?
it would cancel on the spot, its not gonna refund you or anything like that, if thats what youre asking
no not like that. if i cancel i want that it will not gonna charge me form next month...
yes thats how canceling works, you wouldnt be charged for the next months but you would be changed for the current month
btw, ive upgraded the plan. and deployed perfectly. but i facing this...
thanks. its working now.
I have some questions. how many apps can I use with hobby plan?
as many as you wanna pay for
you pay 5$ for the plan, you then get a 5$ credit for usage every month, but beyond that its pay as you go
how can i calculate my cast can you guide me ?
your cast?
yes... and how can i optimize?
im sorry i dont know what "calculate my cast" means
I mean how much it will cost per app, how can I calculate that?
railway does that for you, keep in mind you wont get a good estimation unless you run your app for a week minimum
https://railway.app/account/usage
OK... is there any good practices that I can follow to reduce unnecessary cost?
write efficient code basically