R
Railway4mo 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
Percy4mo ago
Project ID: 7aa4dadf-746a-47d6-bd50-72a01cf0d9c6
Sergi
Sergi4mo ago
7aa4dadf-746a-47d6-bd50-72a01cf0d9c6
Medim
Medim4mo 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
Duchess4mo 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
Brody4mo ago
so to be clear, the metrics in railway say your app is using 1.2gb? what is your start command / start script?
Sergi
Sergi4mo ago
I have a Dockerfile : FROM node:alpine WORKDIR /app COPY package.json . RUN npm install COPY . . EXPOSE 3000 CMD ["npm", "start"]
Brody
Brody4mo ago
what is your start script