logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.4 Slow local cross-site access in Chrome
Author
Splinter



Joined: 17 Mar 2012
Posts: 1

PostPosted: Tue 20 Mar '12 18:29    Post subject: Apache 2.4 Slow local cross-site access in Chrome Reply with quote

I have the x64 version of Apache 2.4.1 running with several virtual hosts set up on my machine, including a local general-purpose "shared" site I use to host JQuery, Modernizr, other other commonly used files.

The problem is that occasionally Chrome will stall for about 10 seconds when loading these local cross-site scripts/styles, but eventually the page is loaded successfully. Other times Chrome will load the exact same page in under a second, even with the browser's cache disabled.

Firefox & IE do not have this issue. This quirk never occurs when serving the same page to Chrome with Apache 2.2, nor does it occur when the scripts & styles are moved to the same virtual host. If I try to load just a CSS file from another local site it causes Chrome to stall. error.log mentions nothing.

My httpd.conf is stock configuration outside of switching the base directory for Apache & enabling vhosts. The httpd-vhosts.conf pretty much looks like this:
Code:
<Directory C:/site>
<RequireAll>
Require all granted
</RequireAll>
</Directory>

<VirtualHost *:80>
DocumentRoot "C:/site/shared/www"
ServerName shared
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/site/test/www"
ServerName test
</VirtualHost>

Any help would be greatly appreciated. This problem has been driving me crazy.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Wed 21 Mar '12 11:59    Post subject: Reply with quote

Did you try:

AcceptFilter http none
EnableSendfile Off
EnableMMAP off


Steffen
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 22 Mar '12 22:49    Post subject: Reply with quote

I think it is about the resolving of the DNS. I noticed that some browsers are struggle if they have to resolve as second or a third domain to additional content. You should try the network viewer tool in chrome and observe that. It is the old question: CDN or no CDN. Often you are faster without a CDN when the browser hits the page the first time. After that the CDN is faster... but that is just my experience
Back to top


Reply to topic   Topic: Apache 2.4 Slow local cross-site access in Chrome View previous topic :: View next topic
Post new topic   Forum Index -> Apache