Re: php cli is trying to resolve

2009-06-13 Thread Herouth Maoz
On 13/06/2009, at 15:17, ik wrote: Sat, Jun 13, 2009 at 3:10 PM, Herouth Maoz wrote: First off, run php -i | grep prepend ...to see if it is trying to run any prepend file which is set up in php.ini # php -i | grep prepend auto_prepend_file => no value => no value error_prepend_str

Re: php cli is trying to resolve

2009-06-13 Thread Herouth Maoz
First off, run php -i | grep prepend ...to see if it is trying to run any prepend file which is set up in php.ini Herouth On 12/06/2009, at 22:29, 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

Re: php cli is trying to resolve

2009-06-13 Thread Boaz Rymland
ik wrote: On Fri, Jun 12, 2009 at 10:41 PM, Tzafrir Cohen > wrote: 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. probably php itself populating its predefined g

Re: php cli is trying to resolve

2009-06-13 Thread Ilya A. Volynets-Evenbakh
ik wrote: > > > 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. > > > It's expected that your local machine name will be stored in /etc/hosts... -- Ilya A. Volynets-Evenbakh http://www.total

Re: php cli is trying to resolve

2009-06-13 Thread ik
On Fri, Jun 12, 2009 at 10:41 PM, Tzafrir Cohen 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 > > :

Re: php cli is trying to resolve

2009-06-12 Thread Hetz Ben Hamo
Hi Ido, I tried the same thing here. I tried it on 2 machines (CentOS 5.3 both of them). In both cases, the first time it runs the script, it takes few seconds to "initialize" things, that takes 2-3 seconds, but after the 1st time, everything runs real fast.. Here's the result from my production

Re: php cli is trying to resolve

2009-06-12 Thread Tzafrir Cohen
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.

php cli is trying to resolve

2009-06-12 Thread ik
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 : Took few minutes to execute. After doing some strace on php, I found out that it attempt to do resolving for several addresses pr