Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eickhardt's avatar

Homestead performance suddenly 30-60s on each request

I turned on my PC today to do a bit of developing. First thing I did was a "homestead up" as usual. Then i go to the browser to check that it's ready and nothing happens. I wait for about 60 seconds, and then suddenly the page is displayed. I'm using debugbar and it's saying the boot process took about 20 secs, rest is by the application.

Normal requests take about 0.3 - 1 second. So I thought it was wierd.

Then I did a "php artisan" at the root of my project - that took about 5 seconds to complete, writing out one line at a time visibly!

Seems like PHP is extremely slow for some reason.

Things i tried to fix this:

  • Checked the CPU / RAM usage of the box and its normal
  • Updated homestead to 2.0
  • There are no errors anywhere that I can find
  • Restarted Supervisord (I have some deamons running)
  • Restarted nginx
  • Restarted VM
  • Restarted host PC
  • All pages seem to work fine except the crazy load times
  • I have the code of my project running on a Digital Ocean server where it is running normally
  • I was mounting a large folder into vagrant, now only mounting the site which is < 100MB
  • Disabled Debugbar
  • Hosted a different site to verify that it is not a bug in my project
  • Put a html file in the public folder and it loads instantly from the browser
  • Reinstalled VirtualBox + Vagrant + Homestead
  • I have plenty of disk space left

This setup has been working fine for almost 2 years before this. Looks like I'm switching dev environment.

Thanks in advance for any advice!

0 likes
3 replies
mdecooman's avatar

Hi @eickhardt

When you ssh your homestead, can you check the space remaining in your disks?

df -h
mdecooman's avatar

Ah, well... forget about my reply since homestead uses your local disk.

Did you update your OS? I would make sure to use the latest version of VirtualBox (or VMware) and Vagrant.

1 like
eickhardt's avatar

Thanks for the reply @mdecooman, tried both but no luck.

I even reinstalled VB/Vagrant/Homestead but still the issue persists. I think I'm gonna have to switch dev stack :(

Please or to participate in this conversation.