CLab's avatar
Level 3

Laravel Windows high memory usage on new install?

I have a brand new laravel install with just debugbar installed and it shows 17mb being used. Is this normal? PHP 8.1.6, Laravel latest, Windows 10 (direct install -i.e. XAMPP and no sail).

I am trying to follow the new "Eloquent Performance Patterns" series on laracasts and noticed that this is considered "high" in that. Just trying to gauge what is the baseline on Windows?

0 likes
18 replies
jlrdw's avatar

Probably higher with debug bar.

RayC's avatar

@CLab Set ‘’APP_DEBUG=false’’ in your env file.

CLab's avatar
Level 3

@RayC how can you measure the amount of ram used then?

Tray2's avatar

That sounds very strange to me, I just created a fresh Laravel 9 project with Debugbar and it uses 1Mb for the welcome view on my iMac.

Have you made any code changes at all?

CLab's avatar
Level 3

@Tray2 no changes. Brand new install + debugbar. I think this is Windows/Xampp related.

Sinnbeck's avatar

Maybe try installing wsl2 and then Ubuntu. Then add a new project on there and run it with php artisan serve

Sinnbeck's avatar

@CLab ok so a windows or xampp bug. Try php artisan serve in windows with xampp php

Sinnbeck's avatar

@CLab oh thought you used xampp as webserver.

Seems you need to make a choice then. Live with it or switch to wsl2 + Ubuntu

CLab's avatar
Level 3

@Sinnbeck I am fine living with it - as long as this is normal for Windows with XAMPP. Just want to know what others see.

Sinnbeck's avatar

@CLab I don't own a windows pc so I cannot test it myself. Maybe someone else can :)

Niush's avatar

May be also check if Xdebug is enabled?

CLab's avatar
Level 3

@Niush Xdebug is not enabled as checked by phpinfo(). If any other way to check - please let me know.

CLab's avatar
Level 3

@Sinnbeck here is what I see:

PHP 8.1.6 (cli) (built: May 11 2022 08:55:59) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.6, Copyright (c) Zend Technologies

Please or to participate in this conversation.