Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache consuming 92% of CPU load |
|
Author |
|
estherpeixoto
Joined: 01 Feb 2024 Posts: 1 Location: Brasil, Muriaé
|
Posted: Thu 01 Feb '24 15:05 Post subject: Apache consuming 92% of CPU load |
|
|
- Apache version: 2.4.58
- Operating system: Windows 10 Pro 22H2
- Indications in the log files (error.log, access.log and httpd-vhosts.conf): https://apaste.info/Iqqk
- Version of PHP: 8.3.0 TS x64
- Version of Wampserver: 3.3.2 x64
- Version of Laravel: 10.43.0
Hi, I installed a fresh Laravel with a simple javascript making two requests expecting a json (https://apaste.info/KlNm). On each request Apache HTTP Server is consuming more and more from CPU, until the page doesn't load at all and with 4 reloads Apache reaches 92% of CPU load. To confirm it's not php or framework's fault I switched to FCGI and the page reloads fine. Anyone have any idea about this?
ps: I found a discussion on Laragon repository with kinda the same problem but using PHP ^8.3.1 https://github.com/leokhoa/laragon/discussions/663
Maybe it started with 8.3.0 branch.
Update: I found that Xdebug it's actually causing this Apache overload. By now, there's no update that fix this. https://bugs.xdebug.org/view.php?id=2216 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7374 Location: Germany, Next to Hamburg
|
Posted: Sat 17 Feb '24 0:00 Post subject: |
|
|
Using f(ast)fcgi(d) for PHP is the recommended way. There are options to kill such zombie processes. But in this case it is a "nice" memory leak.
Xdebug is only meant for development. Don't use xdebug in production. |
|
Back to top |
|
|
|
|
|
|