php cli is trying to resolve

php cli is trying to resolve

ik idokan at gmail.com
Sat Jun 13 12:38:24 IDT 2009


On Fri, Jun 12, 2009 at 10:41 PM, Tzafrir Cohen <tzafrir at cohens.org.il>wrote:

> On Fri, Jun 12, 2009 at 10:29:36PM +0300, ik wrote:
> > Hello list,
> >
> > I have encountered today a weird problem with a CentOS 4.7 Final server.
> >
> > A cli based PHP script took a long time until it executed. Even code such
> as
> > :
> >
> > <?
> >   echo "Hello World\n";
> > ?>
> >
> > Took few minutes to execute.
> >
> > After doing some strace on php, I found out that it attempt to do
> resolving
> > for several addresses prior to executing the code.
>
> What addresses?


Machine local names, but when I changed the DNS addresses to faster
addresses it takes no more then few MS to have a result.


>
>
> >
> > I can not reproduce it on any other Linux that I have tried to (Ubuntu,
> > debian and Arch Linux).
>
> Different modules loaded?


Probably, but I can't figure out in strace what module actually do it,
that's why I posted the question here.


>
>
>
> --
> Tzafrir Cohen         | tzafrir at jabber.org | VIM is
> http://tzafrir.org.il |                    | a Mutt's
> tzafrir at cohens.org.il |                    |  best
> ICQ# 16849754         |                    | friend
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>


Thanks,
Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090613/e2bafc2f/attachment.html>


More information about the Linux-il mailing list