XAMPP and slow PHP performance

Problems with the Windows version of XAMPP, questions, comments, and anything related.

XAMPP and slow PHP performance

Postby CiaoBella » 28. November 2010 20:15

I just updated to the most recent XAMPP and ran my php web crawler for fun to test out the new performance. However, when I the script proceeded past 300 websites it started to take 5 seconds to load a url... then 10 seconds... 50 seconds until I stopped it. I'm using CURL and it is set to go to the next url after 1 second if there is no response instantly.

Code: Select all
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 1);

At first I thought the performance slowed because of my AJAX but this was not the case. Next, I modified my script to remove large arrays and set the buffer to autoflush.

I parsed some AJAX into my localhost page to see results in real time and it looks like the performance starts high and then drops to a crawl. What could cause this in PHP? Could I modify a .ini or apache setting? Any suggestions or other things you think I should try or know?
Posts: 1
Joined: 28. November 2010 20:02

Re: XAMPP and slow PHP performance

Postby JonB » 30. November 2010 01:15

could easily be a DNS resolver issue at that speed.

do a traceroute/ping on your DNS servers.

Good luck
User avatar
AF Moderator
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 72 guests