Local Site Slows over time

What issue or error are you experiencing?

After running a site for a period of time, it takes a while to respond. I do have Debug enabled as I am developing and need to be able to test/walkthrough code. Oddly, when this happens, if I switch PHP versions, then switch back, the site seems responsive for a short period. Then it is rinse and repeat.

Normally I am using PHP 8.3.23 for work and if I switch to 8.2.29 and then back to 8.3.23, then I can work normally again for a short period. Then it starts to slow down again.


System Details

  • Local Version: 9.2.8+6882

  • Operating System (OS) and OS version: MBP M3 : Sequoia Version 15.5

Hey @rbaugh!

Is this happening for a specific site you’re working on? Or all sites? For example, if you spin up a new, blank Local site and start working on that does the same thing happen?

You may have seen our performance help guide before but just in case I’ll share it here: Troubleshoot: Performance Issues - Local

Were you using Xdebug @rbaugh? We also have another recent bug report here related to Xdebug crashes that could be related if so.

It happens with multiple sites I am developing with. Some are single instance sites and a couple are multisite. I haven’t tried a fresh install as I haven’t had time to try debugging and working on a fresh site.

I do try and limit the sites I have started and running in Local to just one at a time. Occasionally I may need more than one if I need to fix something, but try and limit it to just one running at a time.

I checked the console/crash reports and don’t see anything about php-fpm as mentioned with the xdebug. It hasn’t crashed or completely stopped, but it goes from pretty instant responses (< 30sec) to over minutes for a page load to happen even without a breakpoint hit. Just loading a page. Switching the PHP versions gets things back to working.

It doesn’t do it all of the time either. I left a site running over night and when I got on this morning, it seemed to be working ok. Other times, it can be a couple of min and the delay starts up. I’m using PHPStorm for IDE, but haven’t tried closing it and testing site performance. I have stopped the debugger listening on PHPStorm and it doesn’t make any change, just haven’t closed the app itself.

1 Like