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

patrickharris’s picture

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.

kursat’s picture

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.

patrickharris’s picture

Hi Kursat - ZoneAlarm turned out to be the problem.

fumbling’s picture

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:

Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\drupal\includes\file.inc on line 891

nutkenz’s picture

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.

fumbling’s picture

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.

gagagaga’s picture

You should comment out this line in hosts file
#::1 localhost

That file is located in C:\Windows\System32\drivers\etc

benjamin_dk’s picture

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?

fumbling’s picture

Thanks, the following, which I believe is what you're saying above, worked for me:

In C:\Windows\System32\drivers\etc\hosts

change

::1             localhost

to

#::1             localhost

mtwalsh’s picture

Thanks, that solved my problem too.

ycwjjjj’s picture

It is not working for me. :(

fumbling’s picture

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

Jordash’s picture

That worked for me as well, an reason why that would be causing such a slow down?

menace’s picture

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.

fstyle’s picture

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

wkelvinf’s picture

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.

rmontero’s picture

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

muratsalma’s picture

dhalbert’s picture

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.

carvalhar’s picture

worked for me, win 7 x64 with xampp

serving’s picture

Disable the "IP Helper", "Windows Search" and "Computer Browser" services. Windows Vista and Xampp

This helped a bit.

Serving

PrestaS’s picture

I have same problem .. ;/

Projektowanie PrestaShop: http://www.selljus.pl

Christopher James Francis Rodgers’s picture

"Down here in the dungeon as we are..."

@:PrestaS

Please note that this "topic" is
in the "Deprecated" sections of the forums at Drupal.org.

The 'Deprecated' (no longer used) section of the forums
is intended as a library archive collection of old posts
and is not be seen by typical forum users.

The only notice it will get is via notifications
sent to the topic's 'followers' (if any).

That is possibly why you never got any replies.

===

Project's 'Issues' page.

If your issue is Module-specific or Theme-specific,
go to the relevant project's 'Issues' Page.

- The X project 'Home' page is at
http://drupal.org/project/X

- The X project 'Issues' page is at
http://drupal.org/project/issues/X

Eg:

Module - http://drupal.org/project/issues/views
Theme - http://drupal.org/project/issues/zen

#In your case http://drupal.org/project/issues/#

For additional details on getting help on specific projects, see...

Get the Fastest Answers to Module-Specific or Theme-Specific Issues at Drupal.org - How to
http://drupal.org/node/1478010

===

Forums: (Active)

If your issue is more general,
please "Post new Forum topic"
in one of the active forums.

#In your case I recommend that you post in the forum
#

===

Tips for posting to the Drupal forums
http://drupal.org/forum-posting

===
Forums at drupal.org

Support
-- Post installation http://drupal.org/forum/22
-- Before you start http://drupal.org/forum/20
-- Installing Drupal http://drupal.org/forum/1
-- Upgrading Drupal http://drupal.org/forum/21
-- Converting to Drupal http://drupal.org/forum/37
-- Module Development and Code Questions http://drupal.org/forum/4
-- Theme development http://drupal.org/forum/3
-- Translations http://drupal.org/forum/30
General
-- News and announcements http://drupal.org/forum/8
-- General discussion http://drupal.org/forum/2
-- Drupal showcase http://drupal.org/forum/25
-- Events http://drupal.org/forum/28
-- Community Spotlight http://drupal.org/forum/13854
Services
-- Hosting support http://drupal.org/hosting-support
-- Paid Drupal services http://drupal.org/paid-services
Newsletters
-- Drupal Newsletter http://drupal.org/forum/42
-- Security advisories for Drupal core http://drupal.org/forum/1852
-- Security advisories for contributed projects http://drupal.org/forum/44
-- Security public service announcements http://drupal.org/forum/1856
-- Maintainer news http://drupal.org/forum/118
Deprecated
-- ... {Non-Active archived posts only}

"All the best; intended."
- Chris
___

Drupal 8 is great.

Re: Drupal 9,000
Three-minute Video on the problem
of technology out-pacing users.
http://great-grandma.com/gil_bates-dead_at_42/index.html

akki123’s picture

Drupal is three time slower than Joomla on my XAMPP win7.
My database is MyISAM.
I tried localhost trick but no speed up.

Can any body point out why drupal is slower than joomla , it was supposed to fast!

akki