R
Railway•9mo ago
Shafiul Islam

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?
No description
44 Replies
Percy
Percy•9mo ago
Project ID: bd61c2f8-b138-49fb-bd2a-f3f8546beb7e
Shafiul Islam
Shafiul Islam•9mo ago
bd61c2f8-b138-49fb-bd2a-f3f8546beb7e
Brody
Brody•9mo ago
what do your memory metrics look like?
Shafiul Islam
Shafiul Islam•9mo ago
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:
Brody
Brody•9mo ago
railway provides usage graphs in the metrics tab, lets see a screenshot of them
Shafiul Islam
Shafiul Islam•9mo ago
ok. give me some time
Shafiul Islam
Shafiul Islam•9mo ago
No description
Brody
Brody•9mo ago
well memory is nowhere near the 512mb limit of the trial plan deployment logs please https://bookmarklets.up.railway.app/log-downloader/
Shafiul Islam
Shafiul Islam•9mo ago
No description
No description
Brody
Brody•9mo ago
use the bookmarklet please
Shafiul Islam
Shafiul Islam•9mo ago
ok give me some time please
Brody
Brody•9mo ago
can you provide your repo?
Shafiul Islam
Shafiul Islam•9mo ago
sure
Shafiul Islam
Shafiul Islam•9mo ago
GitHub
GitHub - char-avijit/welcome_builder
Contribute to char-avijit/welcome_builder development by creating an account on GitHub.
Brody
Brody•9mo ago
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
Shafiul Islam
Shafiul Islam•9mo ago
can you some how confirm that its working with hobby plan ?
Brody
Brody•9mo ago
its a different error, but its not an out of memory error
No description
Shafiul Islam
Shafiul Islam•9mo ago
ok... its related to secrete env value
Brody
Brody•9mo ago
make one up for me and tell me the variable name, ill set it and redeploy
Shafiul Islam
Shafiul Islam•9mo ago
DATABASE_URL="postgres://char-avijit:ML2FnElcV4eB@ep-wild-wood-10200364.ap-southeast-1.aws.neon.tech/wb-db"
SHADOW_DATABASE_URL="postgres://char-avijit:ML2FnElcV4eB@ep-wild-wood-10200364.ap-southeast-1.aws.neon.tech/shadow_db"
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="admin"
JWT_SECRECT="admin"
DATABASE_URL="postgres://char-avijit:ML2FnElcV4eB@ep-wild-wood-10200364.ap-southeast-1.aws.neon.tech/wb-db"
SHADOW_DATABASE_URL="postgres://char-avijit:ML2FnElcV4eB@ep-wild-wood-10200364.ap-southeast-1.aws.neon.tech/shadow_db"
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="admin"
JWT_SECRECT="admin"
can try those value and keep others empty. i think it will work fine.
Brody
Brody•9mo ago
is it okay for you to give me those databases like that? this is not a private chat
Brody
Brody•9mo ago
different error
No description
Shafiul Islam
Shafiul Islam•9mo ago
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.
Brody
Brody•9mo ago
no problem, let me know if theres any issues after the upgrade to hobby!
Shafiul Islam
Shafiul Islam•9mo ago
can i cancel subscription if i have to after 2 months ?
Brody
Brody•9mo ago
yeah you can cancel
Shafiul Islam
Shafiul Islam•9mo ago
how much time it will take to cancel ?
Brody
Brody•9mo ago
it would cancel on the spot, its not gonna refund you or anything like that, if thats what youre asking
Shafiul Islam
Shafiul Islam•9mo ago
no not like that. if i cancel i want that it will not gonna charge me form next month...
Brody
Brody•9mo ago
yes thats how canceling works, you wouldnt be charged for the next months but you would be changed for the current month
Shafiul Islam
Shafiul Islam•9mo ago
btw, ive upgraded the plan. and deployed perfectly. but i facing this...
No description
Shafiul Islam
Shafiul Islam•9mo ago
thanks. its working now. I have some questions. how many apps can I use with hobby plan?
Brody
Brody•9mo ago
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
Shafiul Islam
Shafiul Islam•9mo ago
how can i calculate my cast can you guide me ?
Brody
Brody•9mo ago
your cast?
Shafiul Islam
Shafiul Islam•9mo ago
yes... and how can i optimize?
Brody
Brody•9mo ago
im sorry i dont know what "calculate my cast" means
Shafiul Islam
Shafiul Islam•9mo ago
I mean how much it will cost per app, how can I calculate that?
Brody
Brody•9mo ago
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
No description
Shafiul Islam
Shafiul Islam•9mo ago
OK... is there any good practices that I can follow to reduce unnecessary cost?
Brody
Brody•9mo ago
write efficient code basically