R
Railway5mo ago
Sergi

1,2GB RAM usage in React APP

Do you know if it's normal this size of ram in a frontend created with react and typescript?
7 Replies
Percy
Percy5mo ago
Project ID: 7aa4dadf-746a-47d6-bd50-72a01cf0d9c6
Sergi
Sergi5mo ago
7aa4dadf-746a-47d6-bd50-72a01cf0d9c6
Medim
Medim5mo ago
Tbh depends on your project And also how u are serving it in prod Does it use the same amount of RAM running it in local?
Duchess
Duchess5mo ago
New reply sent from Help Station thread:
I took a snapshot and it's 9,5MB
You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
I don't know how to debug this usage in prod
You're seeing this because this thread has been automatically linked to the Help Station thread.
Brody
Brody5mo ago
so to be clear, the metrics in railway say your app is using 1.2gb? what is your start command / start script?
Sergi
Sergi5mo ago
I have a Dockerfile : FROM node:alpine WORKDIR /app COPY package.json . RUN npm install COPY . . EXPOSE 3000 CMD ["npm", "start"]
Brody
Brody5mo ago
what is your start script