MongoDB Service Hick Ups / Spikes on Memory

Hi, I'm maintaining a web-3 service on Polygon network basically an API that we use, and once in a while I get this huge spike on memory which I do not understand where this is coming from. We have a small user base and I'm a bit skeptical. Can you help?
No description
Solution:
it looks like a memory leak to me, so either an issue with your own code, or a 3rd party library you are using
Jump to solution
18 Replies
Percy
Percy5mo ago
Project ID: 6b26e039-2715-4aea-8d46-efb8c7eada0c
tiffanydys
tiffanydysOP5mo ago
6b26e039-2715-4aea-8d46-efb8c7eada0c
tiffanydys
tiffanydysOP5mo ago
also experienced this around end of June, which resulted to a huge payment as well (already paid)
No description
tiffanydys
tiffanydysOP5mo ago
the downtimes is me restarting the service, which results to me restarting it every day now or so, it seems to me that there is a memory leak happening, any ideas that can help me track it?
Brody
Brody5mo ago
I think this question would better be asked in some kind of mongo forum or community as railway is simply running the stock MongoDB image and reporting on how much memory it's using
tiffanydys
tiffanydysOP5mo ago
this is the MongoDB instance it's connecting on - which I don't have a problem with
No description
tiffanydys
tiffanydysOP5mo ago
I'm more concerned with the spikes happening on the API
Brody
Brody5mo ago
oh my bad, your title mentioned mongo so i assumed these screenshots where for the mongo service. is api service on the v2 runtime?
tiffanydys
tiffanydysOP5mo ago
I'm not sure, how do I check if it's on v2?
Brody
Brody5mo ago
in the service settings
tiffanydys
tiffanydysOP5mo ago
ah yes
No description
Brody
Brody5mo ago
then there wouldnt be issues with memory reporting, thats simply what your app is using
tiffanydys
tiffanydysOP5mo ago
hmmm could there be a chance that a user is hitting the API multiple times as a script?
Solution
Brody
Brody5mo ago
it looks like a memory leak to me, so either an issue with your own code, or a 3rd party library you are using
tiffanydys
tiffanydysOP5mo ago
any way I could possibly track this memory leak? sorry new to this
Brody
Brody5mo ago
im sorry but this is not the level of support we could provide as it does not relate to railway, im sure there are many great tutorials on how to tackle this
tiffanydys
tiffanydysOP5mo ago
alright, thanks for the help Brody
Brody
Brody5mo ago
i wish you the best of luck!
Want results from more Discord servers?
Add your server