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
Percy
Percy2y ago
Project ID: 59222cd0-ebe3-4aae-aa8a-e22e95d04d00
Percy
Percy2y ago
⚠️ experimental feature
Adam
Adam2y ago
Looks like you’re hitting memory limits and that’s causing the crash you’re on the free plan correct?
lowzyyy
lowzyyyOP2y ago
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
Adam
Adam2y ago
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
lowzyyy
lowzyyyOP2y ago
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
Adam
Adam2y ago
the spike is causing the crash judging by the graph
lowzyyy
lowzyyyOP2y ago
Is dev plan upgrade free?
Adam
Adam2y ago
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$
lowzyyy
lowzyyyOP2y ago
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?
Adam
Adam2y ago
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.
lowzyyy
lowzyyyOP2y ago
I dont understand this 😄
Adam
Adam2y ago
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
lowzyyy
lowzyyyOP2y ago
lowzyyy
lowzyyyOP2y ago
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
Adam
Adam2y ago
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
lowzyyy
lowzyyyOP2y ago
So its free upgrade to developer plan in my case ?
Adam
Adam2y ago
Yes
Want results from more Discord servers?
Add your server