sbotargues
HOBBYOP
2 years ago
Do you know if it's normal this size of ram in a frontend created with react and typescript?
2 Replies
medim
MODERATOR
2 years ago
Tbh depends on your project
medim
MODERATOR
2 years ago
And also how u are serving it in prod
medim
MODERATOR
2 years ago
Does it use the same amount of RAM running it in local?
sbotargues
HOBBYOP
2 years ago
I took a snapshot and it's 9,5MB
sbotargues
HOBBYOP
2 years ago
I don't know how to debug this usage in prod
brody
EMPLOYEE
2 years ago
so to be clear, the metrics in railway say your app is using 1.2gb?
what is your start command / start script?
I have a Dockerfile : FROM node:alpine
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
brody
EMPLOYEE
2 years ago
what is your start script