R
Railway2y ago
ErikT

Got a huge spike in Memory yesterday

I am looking at my billing and saw one of my instances https://railway.app/project/cccc72dc-c205-4c79-80cb-eb2f054ee9d1/service/d6626c5d-8907-490c-a60f-cae2a38d0878/metrics had a huge spike in memory usage yesterday. What goes into this? Do logs effect my memory usage?
Railway
Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
20 Replies
Percy
Percy2y ago
Project ID: cccc72dc-c205-4c79-80cb-eb2f054ee9d1,d6626c5d-8907-490c-a60f-cae2a38d0878
Brody
Brody2y ago
define huge, and do you see the same memory spike in the service metrics
ErikT
ErikTOP2y ago
the CPU looked fine but the memory spiked from 300mb to 1.3gb
Brody
Brody2y ago
does the service metrics reflect this spike
ErikT
ErikTOP2y ago
i guess im just trying to understand why my bill went from 3bucks to 9bucks this month idk let me look at the billing again i am reading the chart on the metrics page ya one sec
ErikT
ErikTOP2y ago
Brody
Brody2y ago
can you show me a zoomed in view, maybe set to 1day
ErikT
ErikTOP2y ago
I guess just generally do you have any recommendations to reduce my memory? Sure one sec let me grab that
ErikT
ErikTOP2y ago
this was the last day
Brody
Brody2y ago
okay spike only visable in the 7d settings when the spike happened, did it fall back down before any new deployments?
ErikT
ErikTOP2y ago
ahh like a mem leak thats a good q
Brody
Brody2y ago
yeah thats what im getting at
ErikT
ErikTOP2y ago
there shouldn't be a mem leak on anything other than logs we have a set amount of cache that we cache on the server only 1 endpoint caches calls ya i guess i ll monitor the mem change before my next long gap in deployments thanks
Brody
Brody2y ago
console logs to stdout/stderr should have absloely no impact on mem do you use some type of logging agent?
ErikT
ErikTOP2y ago
no i don't interesting the app is pretty simple - a couple routes talk to my database - a route that talks to a test blockchain node
It's possible that at spikes there is a lot of information returned from my blockchain and the memory hasn't been freed yet ?
Brody
Brody2y ago
nodejs?
ErikT
ErikTOP2y ago
yup express app
Brody
Brody2y ago
memory leaks are very possible with node, but did the mem usage return to normal levels after the spike? becaucse it would only be classifiable as a mem leak if the mem didnt return to normal levels
ErikT
ErikTOP2y ago
ya i guess i am not sure next time i deploy i will check the current mem usage to see if that is what is causing this to return to normal
Brody
Brody2y ago
sounds good
Want results from more Discord servers?
Add your server