Default Laravel 20 MB RAM Memory Usage? It's a Windows Problem.

I've seen on various forums people asking why the default empty Laravel installation sometimes shows 20 MB memory usage in Debugbar without any DB queries or heavy functionality. The short answer: "Don't debug, it's normal."

On forums, people discuss and try to find the source of the problem until the author mentions the web server they are running. In all those cases, it's about the Windows operating system.

I've seen all web servers being mentioned: XAMPP, Wamp, Laragon, and others. All of them report the 20 MB usage just by default, with any Laravel starting installations.

On Mac and other operating systems, the default normal memory usage for such Laravel pages should be 5-6 MB.

So, the solution on Windows would be to use Laravel Sail or Docker Desktop, and then inside that virtual machine, the memory usage would be significantly lower.

avatar

Hi Povilas, when using Laravel Sail in Windows or Linux you have a permissions issue.

Sail: Permission Denied

Storage folder write permissions fail on newly installed Sail #81

Add warning to switch docker context #8901

Some people will have some problems if trying to use a fresh Laravel installation via Sail.

👍 2
avatar

Thanks for the warning, Mauricio!

Like our articles?

Become a Premium Member for $129/year or $29/month
What else you will get:
  • 59 courses (1057 lessons, total 42 h 44 min)
  • 79 long-form tutorials (one new every week)
  • access to project repositories
  • access to private Discord

Recent Premium Tutorials