Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see memory usage in Laravel?

How to see memory usage in a Laravel app? This is for testing and to approximate how much server memory (RAM) resource I need to setup for my server usage assumptions.

like image 374
doncadavona Avatar asked Apr 06 '18 03:04

doncadavona


People also ask

How can you reduce memory usage in Laravel?

StackByte - Using chunking and cursors in Laravel to reduce query memory usage.


1 Answers

To see a Laravel app's memory usage, install Laravel Debugbar.

This is the easiest way to track a Laravel app's memory usage and many other things like database queries, requests, durations, exceptions etc. Saves you time from reading lots of configs, codes and other workarounds found online.

Here, a fresh Laravel 5.5 app uses 3.73MB of memory: enter image description here

(may vary or fluctuate around 3.75MB)

like image 114
doncadavona Avatar answered Nov 04 '22 16:11

doncadavona