title: Measure default memory usage for next.js application
body: <p>I need to solve a problem in the memory usage of a next.js application.</p>
  <p>To check default memory usage (Memory usage without any user) of a express.js RESTapi we could do this.</p>
  <p>Server app via pm2
  Check the memory status.</p>
  <p><a href="https://i.stack.imgur.com/mm6tX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mm6tX.png" alt="enter image description here" /></a></p>
  <p>Now we are certain that this app could take 25mb in memory to run.</p>
  <p>How could I check the same thing for a next.js application?
  We could use <code>npm run dev</code> and <code>npm run start</code> commands to locally serve the production build. But how could we check the default memory usage for this as I did in pm2?</p>