Project using 220MB when normally it uses 60MB
cicerorph
HOBBYOP

a month ago

For some reason, when I host my project on a VPS or something it uses 60MB, but when I try railway it uses 220MB+. What could it be?

Solved

21 Replies

uxuz
MODERATOR

a month ago

Hey, what kind of application are you hosting?


cicerorph
HOBBYOP

a month ago

NodeLink


uxuz
MODERATOR

a month ago

How are you hosting NodeLink on your VPS vs on Railway?


cicerorph
HOBBYOP

a month ago

I'm using an daemon service (specifically pm2)

And on Railway I made it clone and download an template config I made and put on the app folder

And also made it run a bash script

The only thing it does is change the config.js downloaded before based on envinroment variables


cicerorph
HOBBYOP

a month ago

I can send the railpack.json + the start.sh if needed


uxuz
MODERATOR

a month ago

I'll see what I can do here to minimize the memory usage, I have just deployed the NodeLink application as is (Dockerfile Node 20) without any configuration and it seems to use around 80MB under no load.


cicerorph
HOBBYOP

a month ago

there is a Dockerfile?


cicerorph
HOBBYOP

a month ago

that's prob smth I should've known


cicerorph
HOBBYOP

a month ago

If you could send that to me, I would be grateful :)


uxuz
MODERATOR

a month ago

There is one, Railway also automatically uses it when deploying the GitHub repository. Keep in mind that it will fail, since their dockerignore somehow ignores files used in the Dockerfile, I'll create a pull request to merge the dockerignore file that I have corrected.

Actual NodeLink repo: https://github.com/PerformanC/NodeLink
NodeLink with the corrected dockerignore: https://github.com/uxuz/NodeLink


cicerorph
HOBBYOP

a month ago

Thank you!!! You helped me alot.


cicerorph
HOBBYOP

a month ago

wait


cicerorph
HOBBYOP

a month ago

uh


cicerorph
HOBBYOP

a month ago

how do I connect a external gh repo


cicerorph
HOBBYOP

a month ago

to railway


cicerorph
HOBBYOP

a month ago

as it only shows my repos


uxuz
MODERATOR

a month ago

Just paste the GitHub url in the search bar that shows up when deploying from Github.


cicerorph
HOBBYOP

a month ago

oh


cicerorph
HOBBYOP

a month ago

ur a legend


cicerorph
HOBBYOP

a month ago

thank you 🙏


uxuz
MODERATOR

a month ago

You are welcome!


Status changed to Solved uxuz about 1 month ago


Loading...