Why is Hasura using so much RAM?

deani1232
PRO

a year ago

Just got an outrageously high bill caused by our Hasura based server. Is this normal? Why would Hasura be using 16 gigs of RAM? How do we fix this?
I was not expecting a 3x increase in our bill this month… something has to be wrong here, this service is hardly even used.

0 Replies

deani1232
PRO

a year ago

9d638488-9ad8-49d8-8cce-5ea57ac4fc53


a year ago

Tbh that sounds more like an issue with Hasura than Railway


a year ago

Maybe a mem leak? Is it using the graphql engine (saw an issue in gh about it)


a year ago

Does restarting it fix things?


deani1232
PRO

a year ago

I will try and restart it. Can we set a memory limit for a specific container?

Unsure exactly what you mean by graphql engine. The main point of Hasura is to stick a graphql system above the database layer.


deani1232
PRO

a year ago

30 day graph does make me think this is a memory leak. Do you know how to set a cron schedule up to restart the container via Railway?

1257116737451856000


a year ago

I never used a cron job in railway


a year ago

I think the docs can help you tho https://docs.railway.app/reference/cron-jobs


a year ago

yep this is an issue with hasura, that graph is indicative of a memory leak but neither railway, nor the community nor the team would be able to answer the question as to why it's using that much memory, this would be something you need to ask the developers.


a year ago

railways cron job can not restart running containers


deani1232
PRO

a year ago

I guess I have to build something with the API? Is there a simpler way to set a service to automatically restart after a certain time frame? Maybe with the start command?


a year ago

could have sworn i sent you this before -


a year ago

only for github based templates, there will be a little button in the top left corner of the project canvas


a year ago

no update button


deani1232
PRO

a year ago

Thank you for this. I’ll set this up. I don’t think I’ve received it before. I am using the template.


deani1232
PRO

a year ago

Thank you guys for the help, wish I noticed this issue before it ended up eating so much money lol


deani1232
PRO

a year ago

I think this is the updated template. When I click check for updates, it shows that I'm on the latest version.

1257313420991004700