1,2GB RAM usage in React APP

sbotargues
PRO

a year ago

Do you know if it's normal this size of ram in a frontend created with react and typescript?

2 Replies

sbotargues
PRO

a year ago

7aa4dadf-746a-47d6-bd50-72a01cf0d9c6


a year ago

Tbh depends on your project


a year ago

And also how u are serving it in prod


a year ago

Does it use the same amount of RAM running it in local?


sbotargues
PRO

a year ago

I took a snapshot and it's 9,5MB


sbotargues
PRO

a year ago

I don't know how to debug this usage in prod


a year ago

so to be clear, the metrics in railway say your app is using 1.2gb?

what is your start command / start script?


sbotargues
PRO

a year ago

I have a Dockerfile : FROM node:alpine

WORKDIR /app

COPY package.json .

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "start"]


a year ago

what is your start script


1,2GB RAM usage in React APP - Railway Help Station