After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: Pratik21 (---.alshamil.net.ae)
Date: January 23, 2024 09:50AM

When I updated my wamp server manager 3.3.3 apache started utilizing CPU 100% then I switched back to 3.3.2 it worked normally but I can't update Mysqli or PHP version Can you please fix an issue in 3.3.3 manager

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: Otomatic (Moderator)
Date: January 23, 2024 09:55AM

Update 3.3.3 does not affect Apache in any way.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: estherpeixoto (---.36.191.in-addr.arpa)
Date: January 29, 2024 05:31PM

Hi Pratik21, are you using PHP 8.3.0 or 8.3.2? I'm facing the same issue with wampserver 3.3.2 and 3.3.3 using these versions of PHP. My situation is: everytime I reload a page that makes 2 XHR requests, Apache consumes more and more of CPU until it reaches 100%. After switching to PHP 8.2 it doesn't happens anymore.

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: Otomatic (Moderator)
Date: January 29, 2024 05:54PM

Hi,

> are you using PHP 8.3.0 or 8.3.2?

With very recent versions of PHP, you must also use a recent version of Apache, i.e. Apache 2.4.58.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: estherpeixoto (---.36.191.in-addr.arpa)
Date: January 29, 2024 06:21PM

I installed a fresh wampserver and Apache 2.4.58 came by default. I found the same issue in laragon repository saying the problem is with the TS version of PHP that comes with apache handler. [github.com]

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: Otomatic (Moderator)
Date: January 30, 2024 03:24PM

Try using PHP as an FCGI mode and not as an Apache module.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: estherpeixoto (---.36.191.in-addr.arpa)
Date: January 31, 2024 12:08PM

It worked in FCGI mode, but I won't use this in production. I need to report this, do you know who is responsible for the development of php apache module? If it's Apache or PHP team?

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: Otomatic (Moderator)
Date: January 31, 2024 02:22PM

When using PHP as an Apache module, this module is loaded via httpd.conf with the command :
PHPIniDir "${APACHE_DIR}/bin"
LoadModule php_module "${INSTALL_DIR}/bin/php/php8.3.2/php8apache2_4.dll"

php_module is the responsibility of Apache

php8apache2_4.dll is PHP responsibility

Ask your question on the ApacheLounge Apache forum.

Note: It's not very complicated to switch to FCGI mode. See "FCGI mode help" on the Wampserver home page ('http://localhost/')

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: estherpeixoto (---.36.191.in-addr.arpa)
Date: February 02, 2024 09:03PM

I found out that Xdebug it's actually causing this Apache overload and there's no update that fix it. [bugs.xdebug.org]

Options: ReplyQuote
Re: After upgrade Wampserver 3.3.3 apache start utlization CPU 100
Posted by: Otomatic (Moderator)
Date: February 02, 2024 09:44PM

Hi,
You may desactivate xDebug

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.