Very slow on Windows 7 :: SOLVED
Posted by: mrmoosehead (---.zone3.bethere.co.uk)
Date: December 18, 2009 01:31PM

Now then.

Running Wampserver 2.0 latest with php 5.3 and performance has gone from good to extremely poor.

CodeIgniter based site that renders a page in about 0.6 seconds on a remote quad core xeon OpenBSD server with 4GB ram, but locally on a quad core, 4GB ram windows 7 machine it takes 7 seconds to execute the same scripts.


What's going on?! Any tips?



Edited 1 time(s). Last edit at 12/18/2009 03:15PM by mrmoosehead.

Options: ReplyQuote
Re: Very slow on Windows 7
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: December 18, 2009 01:33PM

open your httpd.conf file


change

listen 80


to


listen localhost:80

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 12/18/2009 01:34PM by stevenmartin99.

Options: ReplyQuote
Re: Very slow on Windows 7
Posted by: mrmoosehead (---.zone3.bethere.co.uk)
Date: December 18, 2009 01:38PM

Nope. Doesn't seem to help.
tried 127.0.0.1 also

Is it of any consequence that I run SwitchHosts in firefox and have a non-trivial hosts file?

E.g. current config is:

127.0.0.1 admin.xxxxxx.local
127.0.0.1 demosite.xxxxxx.local
127.0.0.1 ianssite.xxxxxx.local
87.237.xx.xx demosite.xxxxxx.co.uk

Options: ReplyQuote
Re: Very slow on Windows 7
Posted by: mrmoosehead (---.zone3.bethere.co.uk)
Date: December 18, 2009 01:40PM

p.s. thanks for the quick reply! smiling smiley

Options: ReplyQuote
Re: Very slow on Windows 7
Posted by: mrmoosehead (---.zone3.bethere.co.uk)
Date: December 18, 2009 02:19PM

Also of note:
phpMyAdmin on localhost is quick.
I run the site as a virtualhost because the site is dependent on the subdomain to determine some information.


it's note a resolution issue as my app benchmarking gives:
BENCHMARKS
Loading Time Base Classes 1.6222
>> Basecontroller Init 2.5353
>> Publiccontroller Defaults 1.7773
>> Controller Method 1.0608
Controller Execution Time ( Home / Index ) 5.9053
Total Execution Time 8.0579

So it can only relate to the processing.

Any thoughts?

Options: ReplyQuote
Re: Very slow on Windows 7
Posted by: mrmoosehead (---.zone3.bethere.co.uk)
Date: December 18, 2009 03:11PM

more info:

not related to DB - query times are around the 0.0008 seconds mark. smiling smiley

tried adding a caching optimiser (eAccelerator) - no change.

tried php 5.2.9 - no difference.


It should be noted that this site accesses a lot of small files. I have the realpath_cache_size = 128M to try and help with this.


I haz a sad.

Options: ReplyQuote
Re: Very slow on Windows 7 :: SOLVED
Posted by: mrmoosehead (---.zone3.bethere.co.uk)
Date: December 18, 2009 03:15PM

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGH.

Found it.


It's that old chestnut again. Anti-virus software on-access scanning.

AVG 9 Resident Shield - disabled it on that directory and hey presto.

Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.

Options: ReplyQuote


Sorry, only registered users may post in this forum.