Page 1 of 1

Windows 7 64 bit performance woes [1.7.3] [Resolved]

PostPosted: 24. April 2012 18:48
by rfryar
I recently upgraded my XAMPP box from Win 32 bit to Win 7 64 bit. My Xampp ported with out a problem, I reran the setup to update all my directories. I have the services running fine for Apache 2.2, MySQL, and FTP. However I am plagued by one huge issue..

Performance outside my LAN is terrible. Every request seems to take an extra 1 - 2 seconds. So a page with 5 components takes at least 10 seconds to load. In my LAN everything works fine.

I did not change any of my router settings other than changing what internal IP they referenced (kept the same ports open, etc).

Is there any issues with IPv6, or other external routing I need to worry about?

I can not post a URL yet, but I have a page that shows how slow it is using a static html with 3 images on it.. Perhaps when I get enough posts I can post if interested.
family [dot] fryar [dot] org [slash] speedTest.html

Any help would be helpful.

Oh I tried to upgrade to 1.7.7 and got the basic stuff working (apache), and it did not change the performance issues. I just do not have time to update mysql, etc at this time unless I know 1.7.7 would definitely resolve the issue.

Thanks,

Rick

Re: Windows 7 64 bit performance woes [1.7.3]

PostPosted: 25. April 2012 03:13
by Altrea
rfryar wrote:Is there any issues with IPv6, or other external routing I need to worry about?

Yes, that is one possible issue. Windows 7 uses IPv6 with a fallback (after timing out) to IPv4. That can cost that extra seconds.
Second possible issue are security software products like firewalls or anti virus programs.

best wishes,
Altrea

P.S.: Remember one thing: Don't use XAMPP in production envoironments unless you are an expert in hardening all of the single components.

Re: Windows 7 64 bit performance woes [1.7.3]

PostPosted: 25. April 2012 14:29
by rfryar
Well I think IPv6 might have something to do with it. I replaced my listens with 0.0.0.0:80 and all my vhost entires with 0.0.0.0:80 as well. That has improved the speed of most things.

Now my remaining slow item is PHP seems to run much slower than it used it. Any tricks to help tune PHP? I have excluded php-cgi.exe from my virus scanner, as well as the xampp temp directory. Any other tips? Anything related to the php.ini or apache.conf to speed it up?

Rick

Re: Windows 7 64 bit performance woes [1.7.3]

PostPosted: 25. April 2012 21:34
by Theslcguy
How about ob_gzhandler? that should help with external performance.

ini_set("zlib.output_compression", 4096);

Re: Windows 7 64 bit performance woes [1.7.3]

PostPosted: 15. May 2012 14:49
by rfryar
The speed issue is not download or transfer speed.. It is the first byte. It seems every request from outside my lan (Just for apache, other services are unaffected) has a 1-2 second delay before first byte is served.

Does anyone know any settings to debug when apache receives and when it finally sends the content. I need to see where the issues are cropping up.

To me it seems as if Apache tries to respond, sits and something times out before sending the response back.

Again servers inside my LAN respond in sub seconds (as expected) so apache is working, but something is not working for wan traffic.

Thanks,

Rick

Re: Windows 7 64 bit performance woes [1.7.3]

PostPosted: 15. May 2012 15:58
by rfryar
Addendum: I added the time to serve the request to the logs and here are some of the results. For the same pages in my LAN the time to serve some HTML and JPGs:
Code: Select all
%T/%D
0/218400
0/202800
0/421201

So nice and fast. On the WAN, on a fast connection, close to my house:
Code: Select all
5/5054409
4/4945209
5/5054409


5 Seconds! Any idea how I can troubleshoot further? Note I am on a 100MegaBit down and 30 Megabit connection up. This is NOT my network speed at either location. There is some problem between Apache/ Win 7 64 bit / and my router. Some combination is causing this..

Rick

Re: Windows 7 64 bit performance woes [1.7.3]

PostPosted: 15. May 2012 17:04
by JonB
You may well be on track with the Router issue, its quite unlikely to be Apache - at least as I see it. Apache itself does not care one bit about the source of a request UNLESS you have made rules (directives or .htaccess) that force it to filter requests.

For the purpose of 'fixing' this, if possible I would get the most 'plain jane' router possible that still handles Fast Ethernet (100Mbit) on all ports and put in inline. You could be dealing with a purely router issue.

But routers don't exist in a vacuum either, there is also how the ISP's traffic management (shaping) is set up. That's something you rarely get a glimpse into. You might contact their help desk and describe the issue - they may know the source.

You also might want to use the traceroute utility from outside your lan, I use that often to see where things have gone awry- sometimes its defective routing tables at the ISP. You should also determine if this delay happens on ALL external networks or just ones you have tested.

http://en.wikipedia.org/wiki/Traceroute

http://www.yougetsignal.com/tools/visual-tracert/

These are just my observations as a network engineer.

8)

Good Luck

Re: Windows 7 64 bit performance woes [1.7.3]

PostPosted: 16. May 2012 16:44
by rfryar
FYI, Not sure what was f'ed up, but replaced XAMPP with WAMP 64 and my speed problems have gone away. So something way messed up, not sure what.

Thanks for all the help.

Rick