symfony - PHP: Xdebug performance issue -


developing symfony2 application xdebug activated debugging, notice real performance issue. page needs 10s load (even if debug cookie isn't sent), disabling xdebug extension takes 2s !

my configuration is:

xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.profiler_enable_trigger=off xdebug.trace_enable_trigger=0 xdebug.profiler_enable=0  xdebug.auto_trace=0 xdebug.trace_format=2  xdebug.trace_output_dir="c:/inetpub/logs/php/profiles" xdebug.trace_output_name="cachegrind.out.trace.%r.%p" xdebug.remote_mode=req  xdebug.profiler_output_dir="c:/inetpub/logs/php/profiles" xdebug.profiler_output_name="cachegrind.out.profile.%t-%s" xdebug.profiler_append=1  xdebug.max_nesting_level=250 

any idea?

this totally normal. xdebug has huge performance impact (event if not debugging currently). 1 of reasons should not install extension on production environments.

check these blog entries more info:

  1. php’s xdebug tracing overhead in production

  2. careful: xdebug can skew performance numbers

and stackoverflow question


Comments