MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000765XdebugInstallationpublic2012-01-11 06:052016-11-29 23:49
Reporterchar101 
Assigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformIntelOSArch LinuxOS Versionlatest
Product Version2.2dev 
Target VersionFixed in Version 
Summary0000765: Xdebug slows down PHP execution 30%-50% when running inside VirtualBox
DescriptionHi,

I run php-fpm 5.3.9 with xdebug git (2.2dev) in virtualbox and it cause PHP to run 50% slower (a test page results from 170ms (xdebug disabled) to 250ms (xdebug enabled), tested several times.). I realize that using xdebug will require more run time for PHP, but I have used it before in windows and it doesn't make that much of slowdown.

Here are the settings I used
[xdebug]
zend_extension=/opt/php/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so
xdebug.overload_var_dump=0

Other details:
Arch linux 32 bit
PHP 5.3.9 with fpm SAPI, APC enabled
Virtualbox 4.1.6 running inside Windows XP 32 bit
Core 2 duo E8400 (No VT-x)
TagsNo tags attached.
Operating System
PHP Version5.3.8
Attached Files

- Relationships

-  Notes
(0002455)
rfc (reporter)
2013-04-27 02:24

I've the same problem.

The spec of my host system:
W7 Pro 64bit, i7-980X @ 3.33GHz, 12GB RAM, Intel X25-M G2 160GB

The guest system:
Debian Wheezy 64bit , running Nginx, PHP-FPM, Memcache, Mysql

I downloaded and compiled PHP 5.4.14 from source for CLI and cloned xdebug from github (commit 917809729a846bfeb19f2815c61c06a7df6d2b0f ).

The following is my sample benchmark (ten millions; 7 zeros):
time php -r 'for ($i = 0; $i < 10000000; $i++) { sha1("foo"); }'

When I run it with xdebug disabled, I get:
real 0m3.928s
user 0m3.924s
sys 0m0.000s

When I run with xdebug enabled, I get:
real 0m55.605s
user 0m1.488s
sys 0m54.115s

I enabled xdebug just by adding the appropriate zend_extension .

I did not change or set any xdebug settings, everything is the default.


I exported the VirtualMachine to VMWare and did the same tests. Running on VMWare no slowdown comparing running with our without xdebug was observes (in exactly the same configuration).
(0003851)
derick (administrator)
2016-11-29 23:49

I am going to close this as a "I don't know what to do this".

I can't really reproduce this - it runs a little slower in VirtualBox, but I expect that.

- Issue History
Date Modified Username Field Change
2012-01-11 06:05 char101 New Issue
2013-04-27 02:24 rfc Note Added: 0002455
2016-11-29 23:49 derick Note Added: 0003851
2016-11-29 23:49 derick Status new => resolved
2016-11-29 23:49 derick Resolution open => no change required
2016-11-29 23:49 derick Assigned To => derick


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker