Why does my node.js app cras after 300mb network?
I am using puppeteer to scrape some websites
It always crashes about 300mb. It does not matter if go fast or slow to that number.
I am using starter plan
project id (?): 59222cd0-ebe3-4aae-aa8a-e22e95d04d00
18 Replies
Project ID:
59222cd0-ebe3-4aae-aa8a-e22e95d04d00
You might find these helpful:
- how to install chromium
- Unable to tell if puppeteer scrapper is running (Nodejs - Sailsjs)
⚠️ experimental feature
Looks like you’re hitting memory limits and that’s causing the crash
you’re on the free plan correct?
Yes, but they did not mention network limit???
I am not hitting RAM memory limit as you see on the second half of the graph
There is no network limit, but your crashes seem to be happening after memory spikes. It could be that your app is attempting to allocate memory over 500mb which is immediately causing it to crash
Upgrading to the dev plan increases your memory capacity to 8GB. It’s worth a shot
Well app is doing the same web scrape at every 3 min, so dont know if spike is causing this crash or spike is happening after the restart
the spike is causing the crash
judging by the graph
Is dev plan upgrade free?
No, you have to either purchase credits or add a credit/debit card to join the usage plan. You’ll be charged for any resource usage above 5$
is 8gb above 5$, i dont understand how this charging works
or am i charged if i use more than 8gb of ram
lets say i need 1GB of ram so how much do i pay?
the pricing is outlined here. https://railway.app/pricing
Railway
Pricing
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
I dont understand this 😄
judging by the start of your graph, you’re using a consistent 100mb plus some spikes to 500. 0.000231 * 0.1 (100mb) * 1140(minutes per day) is approximately 3 cents a day in memory
What don’t you understand? happy to explain
what is estimated, for a day, a month ?
How do i upgrade to developer plan when i dont know how much will i pay? So i upgrade for free?
I dont want to switch to developer plan and pay 50$ (because my app allocated 8gb) if dont know how much will i pay in advance
This is very confusing
I need calculator to know how much will i pay or will i pay at all
Until end of month. So 5 days in this case. Once the new month starts you’ll see the estimate until the end of february
If your app uses 34 cents in 5 days, in 30 days it’ll use about 2$
though you’re upgrading so you can use more ram so it’ll probably cost more than that
but that’s easily covered by the 5$ free credit
So its free upgrade to developer plan in my case ?
Yes