View Issue Details

IDProjectCategoryView StatusLast Update
0001668XdebugProfilingpublic2019-05-20 14:34
ReporteralforgAssigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentOSOS Version7.6
Product Version2.6.1 
Target VersionFixed in Version 
Summary0001668: Just installing xdebug slows php (both apache OR cli) down 6 to 12 x
DescriptionOn a Centos 7.x machine, php7.3.

The mere installation of xdebug has the effect described in subject. When installing, the file /etc/php.d/xdebug.ini is created, which loads libxdebug.so. However, all of xdebug debug and tracing functions are still disabled. The overhead incurred is dramatic, from 6 x up to almost two orders of magnitude, both in web AND CLI execution. strace-ing a CLI script shows an unordinate amount of time is spent syscalling getimeofday - so it may be related to profiling.

This also happens on CentOS6, php56...
Steps To Reproduce(1) Run the attached script. Record the output
(2) yum install php-pecl-xdebug
(3) rerun script, note the increased execution time

Actual slowdown is code dependent - 10-20 times is not uncommon for wordpress sites.
Tagsperformance
Operating System
PHP Version7.2.10-7.2.14

Activities

alforg

2019-05-20 14:34

reporter  

bench.php (3,167 bytes)

Issue History

Date Modified Username Field Change
2019-05-20 14:34 alforg New Issue
2019-05-20 14:34 alforg Tag Attached: performance
2019-05-20 14:34 alforg File Added: bench.php