Re: My first FastCGI experiment

Igor <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hello Eugene,

Monday, December 19, 2005, 12:12:46 PM, you wrote:

E> These all was successfully compiled and run.  Phpinfo showed "server
E> api" is "CGI/FastCGI".
E> I tried to measure speed. This simple page was 50 times loaded with ab
E> #ab -n 50 http://localhost/phpinfo.php
E> Here I found one bad moment: first time page is loading about 3 sec, 
E> next times it takes about 2ms.

   This behavior is by design. 3sec is the time required to spawn
   FastCGI server on your server. When you open a fcgi handler via
   HTTP - first a FastCGI server is spawned and initialized. The second time
   you access FastCGI script - the server is already up so the respond
   time is small.
   Depending on your configuration the number of "lags" may vary.


E> Next, I tried to test it with standard software shipped with FC4.
E> All page loads take about 1.5-2 ms.

E> How can I improve perfomance?
E> And more important: how to remove lag before first page load?

   Assuming the FastCGI config in Apache 2.0 is similar to 1.3 you may spawn
   FastCGI servers with Apache like this:
   
   AppClass /dir/www/serv/script.fpl -processes 2




-- 
www.rol.ru
Best regards,
 Igor                            mailto:[email protected]

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.