By patrickharris on
For some reason I'm finding Drupal on localhost (xampp) on Vista much slower than on XP. On my old (and slower) XP machine, pages would typically load in around 700 or 800ms. On the faster Vista machine it is around 3600ms. This is out of the box, without extra modules running.
I turned off zonealarm, but that didn't make any difference. Is anyone else having this problem?
Comments
Zone Alarm 7.1 for vista 32 bit was the culprit.
Even turned off, ZoneAlarm causes a 3 second delay on pages from apache/localhost. Solution - use a different firewall, or if you want to stick with ZoneAlarm, use the ZoneAlarm Pro beta 7.1.218.000 which fixes this problem.
Difficult to find the real
Difficult to find the real problem, but i remind following.
What is your xampp version? if latest, i mean xampp 1.6.5, they have a known bug with apache, sourced from apache. i recommend you to use XAMPP Lite 1.6.5. this will work faster w/o problem.
ZoneAlarm 7.1 was problem
Hi Kursat - ZoneAlarm turned out to be the problem.
Drupal on XAMPP on Vista is
Drupal on XAMPP on Vista is also extremely slow for me. I don't have Zone Alarm, and it's a fresh install. Any other thoughts?
I just tried loading the Modules list page and got:
Same here; Drupal 6 is
Same here; Drupal 6 is extremely slow on the localhost XAMPP installation and I'm running Vista on a Dual Core system. Some queries take 20 seconds to execute... The exact same websites runs a lot faster on my remote server.
Yeah, I eventually abandoned
Yeah, I eventually abandoned my XAMPP install, partly for that reason. If you find any way around the Vista-slowness issue please post about it and I'll do the same.
You should comment out this
You should comment out this line in hosts file
#::1 localhost
That file is located in C:\Windows\System32\drivers\etc
I tried this to no avail. I
I tried this to no avail. I am running Drupal 6.6 on a XAMPP 1.7.0 server, the PC is an HP Pavillion dv6700 with an 1.9 GHz AMD Athlon X2 64 processor, 2 GB RAM. Windows Vista Home Premium SP 1. The admin pages are responding very slow - sometimes one minute before I can get to the module page. It says "waiting for localhost". I looked around a lot on the net but have found no solution to this problem. Any other ideas?
Thanks, the following, which
Thanks, the following, which I believe is what you're saying above, worked for me:
In C:\Windows\System32\drivers\etc\hosts
change
::1 localhostto
#::1 localhostThanks, that solved my
Thanks, that solved my problem too.
Not really workable in my case.
It is not working for me. :(
Try Acquia's DAMP
At this point, you may want to just try Acquia's Drupal stack solution, which does it all for you, but keep in mind that you'll be using Acquia's drupal installation, which is slightly different and more robust than the normal drupal core.
http://acquia.com/downloads
That worked for me as well,
That worked for me as well, an reason why that would be causing such a slow down?
fumbler solvered it for me.
Thanks dude. although it is not as fast as i would expect from a local host, given the fact that it is all local and any pc should be able to handle this stuff, zero ping etc. still it is drastically improved from before. of course there must be some reason for this delay and i've no doubt some greater tech savvy fellow will explain why, in any case, its much better for me now. cheers.
on with the building.
Based on hosts-file comment i
Based on hosts-file comment i found out why it is so slow to render one page.
In my scenario I use EasyPHP on my laptop (W7) and I use my desktop and work pc (Vista) to look at my work in other resolution/browser/auto-refreshed etc..
EasyPHP also uses Apache+PHP+MySQL just like xampp. On my desktop I use my laptop's hostname to open pages in firefox. On vista it is slow like yours.
Enough of talking...
There are 2 workarounds to handle slowness:
- call the apache web server address not by hostname but ip address. On a local computer it is 127.0.0.1
(This is not a good solution for me because my ip is always changing thru my networks.)
::1 localhost line in hosts file is a mapping in TCP/IP v6 protocol, if you comment it, it won't solve your problem
- so the other solution is to disable TCP/IP v6 protocol of your network interface (so Vista won't try to resolve your hostname to an ipv6 address) (we aren't using ipv6 yet anyways) Control panel -> network central -> manage client adapters -> local connection (your NIC).properties -> untick TCP/IP v6 protocol -> Done
UPDATE:
i found another solution. ipv6 does not need to be disabled:
open a command shell as an Administrator
type: netsh
type: interface
type: portproxy
type: add v6tov4 listenport=80 connectport=80
port is your web server port of course
Has anyone found another
Has anyone found another solution to this problem?
I don't have zonealarm and I have commented out the DNS line in the host file but localhost is still very slow.
I need help please.
Subscribing
I had the same problem. I temporarily disabled Norton Smart Firewall... but I can't really tell if that helped or not.
Best regards,
Rob Montero
@rmonteroo
my solution: zend server
check this out:
http://drupal.org/node/348202#comment-3349704
localhost slow; 127.0.0.1 fast
I installed the Acquia Drupal Stack on a Windows 7 desktop and found that using http://localhost was quite slow. Interestingly the etc/hosts file was logically empty (everything commented out):
[...]
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
A websearch turned up suggestions that essentially amounted to uncommenting out the "127.0.0.1 localhost" line.
Alternatively, when using the Acquia Drupal stack, just use http://127.0.0.1 instead of http://localhost, and that will also be fast.
disable the "IP Helper", "Windows Search" and "Computer Browser"
Disable the "IP Helper", "Windows Search" and "Computer Browser" services. Windows Vista and Xampp
This helped a bit.
Serving