English 中文(简体)
zend community server very slow on first request with OS X 10.6
原标题:

I have installed Zend CE 4.0.5 for php 5.3 on my Mac Book Pro running Snow Leopard osx 10.6.

I use this setup for my local development environment.

When I haven t done a request in a while ( > 20 mins) or after a reboot, the first request takes quite some time to respond. Maybe 45 seconds. After that initial lagged request it acts as expected, replying with web-pages very quickly.

To try and fix the problem I have so far set the directive "HostnameLookups Off" in /usr/local/zend/apache2/conf/httpd.conf. It hasn t helped.

Any thoughts?

Thanks in advance.

问题回答

To fix the issue, you have to add the ipv6 version also or it takes forever...

/etc/hosts
127.0.0.1     yoursite.local
::1           yoursite.local

The ::1 line will fix your issue!

I had this issue as well, but only when using Safari. I don t understand the logic behind it, but Zend Server requests are sent as I would expect running Firefox. Try it out and let me know, if it works, then it s not a problem with Zend Server.





相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签