[xdebug-general] Re: xdebug causing PHP to run very slowly

From: Bill Moran <wmoran[@]collaborativefusion.com>
Date: Wed, 9 Dec 2009 14:33:09 -0500

In response to "Benny Butler (RPM)" <benny[@]oxpublishing.com>:

> Ok, I've done everything I could think of before posting to the list,
> but I'm about at the end of my rope on this one.
>
> I didn't want to post it on mantis, because I wasn't sure if it's a bug
> or not.
>
> I'm running XD 2.0.5, php 5.2.11. Running any script with xdebug
> enabled takes about 3.5 minutes. ANYTHING, like just <? break; ?>
> causes this.
>
> It's not a slowness problem, it seems to hang for 3.5 minutes, then it
> lets it rip...

I don't know the answer to your problem, but I'll throw out some guesses
and suggestions.

First off, I use xdebug quite a bit and have never seen this problem, so
it's not typical.

Do you possibly have xdebug configured to write data to a file that it
doesn't have write access to? That "hang" behaviour is indicative of
something in the code that's timing out (actually, sounds more like a DNS
query timeout, but I'm not sure if that can happen in xdebug. Make sure
your server has a hostname that resolves via DNS, though.)

What OS are you on? Can you run a ktrace/strace on the xdebug process
and see if there's a particular syscall that is causing the hang?

HTH

-- 
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/
wmoran[@]collaborativefusion.com
Phone: 412-422-3463x4023
Received on Wed Dec 09 2009 - 19:33:11 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST