[MediaWiki-l] [SOLVED] RE: [Wikitech-l] Mediawiki - suddenly slow - suddenly fast - Apache error 408

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[MediaWiki-l] [SOLVED] RE: [Wikitech-l] Mediawiki - suddenly slow - suddenly fast - Apache error 408

Pierre Labrecque
Hello,

Just a follow up. I think I've found the solution to the issue.
Recap:
VMware Workstation 10 running on Win7 SP1 x64
Web server: Ubuntu 12.04 Server x64, installed on a VMware machine, with 2 Go of RAM.
Apache/2.2.22 (Ubuntu)
MySQL 5.5.29
PHP Version 5.3.10-1ubuntu3.7
Mediawiki 1.21.1 or 3
APC 3.1.13

All work fine, but after a certain time (where the web server is completely idle), if I click on a link (of the wiki or not.. .it does the same for the index.html of the site), there's no response for over 15 to 20 seconds, and then the server respond properly. So the problem occurs only after an idle time and on the first request to the web server.
Lots of errors in error.log (Apache):
192.168.75.1 - - [02/Oct/2013:16:05:50 -0400] "-" 408 0 "-" "-"

Yesterday, for a(nother) problem on a real computer with the same configuration, I had to modify  /etc/nsswitch.conf

I had to replace the line:
hosts : files dns

by:
hosts : files dns mdns4

Since then I never got the problem and tried several time to call the web server after an long idle time: all is ok. I don't know for now why it solves it (it's the first time I edit this nsswitch.conf file and have no knowledge on it), but it seems that if fixed the issue... if it can help someone.

Cheers !

-- pierre

> -----Original Message-----
> From: [hidden email] [mailto:wikitech-l-
> [hidden email]] On Behalf Of Mark A. Hershberger
> Sent: Sunday, October 06, 2013 4:59 PM
> To: Wikimedia developers
> Subject: Re: [Wikitech-l] Mediawiki - suddenly slow - suddenly fast - Apache
> error 408
>
> On 10/06/2013 04:01 PM, Pierre Labrecque wrote:
> > More info: I found also that the index.html is slow to display only
> > when the web server is idle for a while, so it's slow to reat to the
> > very first request
>
> If VMWare isn't active doing anything but serving this site, then when you
> don't using for a while and then come back, VMWare has been "paged out"
> and needs to be loaded before it can respond to the request.
>
> Maybe this KB article will be of interest: "Excessive Page Faults Generated By
> Windows Applications May Impact the Performance of Virtual Machines"
> http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&
> cmd=displayKC&externalId=1687
>
> Requests that come right in a row wouldn't have to deal with paging because
> the first request already did that.
>
> This is just speculation on my part, though, since I really haven't used
> VMWare on Windows.
>
> > I found also that kind of lines ((internal dummy connection - what's
> this ?)
> > in the error.log
>
> https://wiki.apache.org/httpd/InternalDummyConnection
>
> HTH,
>
> Mark.
>
> --
> Mark A. Hershberger
> NicheWork LLC
> 717-271-1084
>
> _______________________________________________
> Wikitech-l mailing list
> [hidden email]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l


_______________________________________________
MediaWiki-l mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l