| View previous topic :: View next topic |
| Author |
Message |
ms1990kl
Joined: 08 Jan 2007 Posts: 3 Location: Weston, CT
|
Posted: Fri 09 Mar '07 14:22 Post subject: ridiculously slow localhost with vista |
|
|
I have been using Apache on my PC for awhile, and have had no problems until I bought a new computer preloaded with Vista. Among the many other problems I have had with this awful operating system, the weirdest one is with Apache.
If I simply type http://locahost/ in Firefox, it sometimes takes over a minute to load, and if I actually type in my own webpage to work, it has taken as long as 5 minutes to load. When I was using XP, the page would snap into view as soon as I hit the enter button.
The problem is worse when there is no wireless network around. If the computer has hooked up with a network, it seems to work better.
Any suggestions?
This makes working on my website almost impossible.
Thanks in advance,
Michael Smith |
|
| Back to top |
|
bmelendy
Joined: 15 Apr 2007 Posts: 2
|
Posted: Sun 15 Apr '07 14:04 Post subject: Apache Slow on Vista |
|
|
I've got the same problem. Not sure what to try. Everything was great under Xp, but on Vista, pags served up from localhost are SSSLLLLOOOWWWW. I've got Apache 2.4 with PHP 5 and even serving up a basic html page it painfully slow. Everything works, but it is just so slow.  |
|
| Back to top |
|
bmelendy
Joined: 15 Apr 2007 Posts: 2
|
Posted: Mon 16 Apr '07 4:14 Post subject: My Solution to Slow Apache on Vista... |
|
|
| Well, turns out for me, that the problems I was having with speed seem to be related to Coldfusion. I have Coldfusion/Apache2/PHP5 installed and working as I always had on my old Xp system. With my current configuration, when I don't have Coldfusion running (trying to save a little memory unless I actually need it) Apache runs like a dog. This was NOT the case on my old Xp system. As soon as I fire up Coldfusion, everything, Apache, CF, PHP all run great. When I only have Apache running (Coldfusion service stopped) it runs like a dog again. Must be trying to test/check for Coldfusion with this setup. I was running Xp with CF MX/Apache2.2/PHP4 and now I now I'm running CF MX7/Apache 2.4/PHP5. Weird. Must be the combination of things that is doing it. |
|
| Back to top |
|
prof187
Joined: 22 May 2007 Posts: 1
|
Posted: Tue 22 May '07 2:59 Post subject: |
|
|
| I don't know if this helps but I was having the same problem as well (though not related to CF). I editted my hosts file and commented out the "::1 localhost" line and that seems to be helping a lot. |
|
| Back to top |
|
markos
Joined: 06 Sep 2007 Posts: 1
|
Posted: Thu 06 Sep '07 11:00 Post subject: |
|
|
Any progress on this problem? I have Apache running locally on Vista.
When I send and HTTP://localhost request from IE7
at exactly 12:54:15 the Apache access.log states:
127.0.0.1 - - [06/Sep/2007:12:54:18 +0200] "GET / HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; InfoPath.2)"
It shows that my request was received with 3 seconds delay.
Any ideas where these seconds are spent when working with localhost? Sending requests "outhere" runs instatnly. |
|
| Back to top |
|
jpb77
Joined: 12 Sep 2008 Posts: 1 Location: Sao Paulo, Brazil
|
Posted: Fri 12 Sep '08 0:23 Post subject: Computer's name in HOSTS |
|
|
I made some tests and fixed the problem putting the computer's name in the HOSTS configuration file (C:\Windows\System32\drivers\etc\hosts), like this:
-----------------------------------------------
127.0.0.1 localhost
::1 localhost
127.0.0.1 computername
-----------------------------------------------
Ex.: http://computername/phpinfo.php
It also runs fast when you access the server with IP address. Ex.: http://127.0.0.1/phpinfo.php
I'm running Apache 2.2.8 and Windows Vista (without any Service Pack) |
|
| Back to top |
|