PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Apache sluggish
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Apache sluggish

Réponse
 
LinkBack Outils de la discussion
Vieux 08/05/2007, 13h04   #1
Harri
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache sluggish

I am running an intranet site with Apache 2.0.50 (Fedora) with PHP and
MySQL.
Recently I have run into trouble when the response of Apache has slowed down
drastically. With practically no server load the first page opens very
slowly, 10 -15 secs. There is no difference whether the page is html or php,
so I suspect either Apache or OS.

Subsequent pages open very quickly if I click links in quick succession.
However a delay of 5 secs or more brings back the slow response.

Is there an obvious explanation and remedy? How can the problem be analyzed
to find the root cause?

Any ideas??

Regards Harri



  Réponse avec citation
Vieux 08/05/2007, 13h18   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache sluggish

On May 8, 1:04 pm, "Harri" <harri.no...@yahoo.com> wrote:
> I am running an intranet site with Apache 2.0.50 (Fedora) with PHP and
> MySQL.
> Recently I have run into trouble when the response of Apache has slowed down
> drastically. With practically no server load the first page opens very
> slowly, 10 -15 secs. There is no difference whether the page is html or php,
> so I suspect either Apache or OS.
>
> Subsequent pages open very quickly if I click links in quick succession.
> However a delay of 5 secs or more brings back the slow response.
>
> Is there an obvious explanation and remedy? How can the problem be analyzed
> to find the root cause?
>
> Any ideas??
>
> Regards Harri


it seems like the initial tcp connection is slow, once you have one
then you are in the "keepalive zone" where you can reuse the same
conection so theres no "start-up" cost, and things are fast. This
suggests to me that its a network issue not an apache issue.
Get a copy of wireshark and inspect some packets, see whether that
brings up anything, it could be anything from a router, to a
firewall, a network card, or a software problem... (in other words I
aint got a clue)
Does your intranet answer on its IP, are things faster when using
that, is it over SSL.
With keepalives, you would normally expext a theoretical improvement,
slow once, fast for subsequent, but not to the degree you have got!

  Réponse avec citation
Vieux 09/05/2007, 08h43   #3
Harri
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache sluggish

Matt,
Thanks for suggestions. See my comments below.

>> I am running an intranet site with Apache 2.0.50 (Fedora) with PHP and
>> MySQL.
>> Recently I have run into trouble when the response of Apache has slowed
>> down
>> drastically. With practically no server load the first page opens very
>> slowly, 10 -15 secs. There is no difference whether the page is html or
>> php,
>> so I suspect either Apache or OS.
>>
>> Subsequent pages open very quickly if I click links in quick succession.
>> However a delay of 5 secs or more brings back the slow response.
>>
>> Is there an obvious explanation and remedy? How can the problem be
>> analyzed
>> to find the root cause?
>>
>> Any ideas??
>>
>> Regards Harri

>
> it seems like the initial tcp connection is slow, once you have one
> then you are in the "keepalive zone" where you can reuse the same
> conection so theres no "start-up" cost, and things are fast. This
> suggests to me that its a network issue not an apache issue.


Sounds reasonable. It would be obvious to suspect the server NIC since
otherwise there seems to be no problems in our LAN traffic.
> Get a copy of wireshark and inspect some packets, see whether that
> brings up anything, it could be anything from a router, to a
> firewall, a network card, or a software problem... (in other words I
> aint got a clue)


The LAN is very simple. All are computers including the linux server are
connected to a single HP switch. The gateway goes out thru a firewall box.
Consequently not much to go wrong...

> Does your intranet answer on its IP, are things faster when using
> that, is it over SSL.


Pinging all directions gives very good times, 0.13 - 0.5 ms. SSL is not in
use.
The NIC card is then not the culprit? Haven't tried the wireshark yet.

> With keepalives, you would normally expext a theoretical improvement,
> slow once, fast for subsequent, but not to the degree you have got!


BTW, this morning, for no apparent reason, the problem is not there. This
has happened before and I know it will come back.
If you get any thoughts of how to get the cause identified, I would be
willing to try almost anything.

Harri


  Réponse avec citation
Vieux 09/05/2007, 11h59   #4
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache sluggish

On May 9, 8:43 am, "Harri" <harri.no...@yahoo.com> wrote:
> Matt,
> Thanks for suggestions. See my comments below.
>
>
>
> >> I am running an intranet site with Apache 2.0.50 (Fedora) with PHP and
> >> MySQL.
> >> Recently I have run into trouble when the response of Apache has slowed
> >> down
> >> drastically. With practically no server load the first page opens very
> >> slowly, 10 -15 secs. There is no difference whether the page is html or
> >> php,
> >> so I suspect either Apache or OS.

>
> >> Subsequent pages open very quickly if I click links in quick succession.
> >> However a delay of 5 secs or more brings back the slow response.

>
> >> Is there an obvious explanation and remedy? How can the problem be
> >> analyzed
> >> to find the root cause?

>
> >> Any ideas??

>
> >> Regards Harri

>
> > it seems like the initial tcp connection is slow, once you have one
> > then you are in the "keepalive zone" where you can reuse the same
> > conection so theres no "start-up" cost, and things are fast. This
> > suggests to me that its a network issue not an apache issue.

>
> Sounds reasonable. It would be obvious to suspect the server NIC since
> otherwise there seems to be no problems in our LAN traffic.
>
> > Get a copy of wireshark and inspect some packets, see whether that
> > brings up anything, it could be anything from a router, to a
> > firewall, a network card, or a software problem... (in other words I
> > aint got a clue)

>
> The LAN is very simple. All are computers including the linux server are
> connected to a single HP switch. The gateway goes out thru a firewall box.
> Consequently not much to go wrong...
>
> > Does your intranet answer on its IP, are things faster when using
> > that, is it over SSL.

>
> Pinging all directions gives very good times, 0.13 - 0.5 ms. SSL is not in
> use.
> The NIC card is then not the culprit? Haven't tried the wireshark yet.
>
> > With keepalives, you would normally expext a theoretical improvement,
> > slow once, fast for subsequent, but not to the degree you have got!

>
> BTW, this morning, for no apparent reason, the problem is not there. This
> has happened before and I know it will come back.
> If you get any thoughts of how to get the cause identified, I would be
> willing to try almost anything.
>
> Harri


well you need to get wirewshark and dump a load of packets as you
browse your site.
save them, repeat when you have the trouble and compare.
its the best way i know to troubleshoot an intermittent problem
it could be a known OS bug, (alot of centOS iusers report this kind of
thing)

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h11.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15862 seconds with 12 queries