Advantages of phpfastcgi

Source: Internet
Author: User
Advantages of phpfastcgi: this is a detailed page of the advantages of php fastcgi. it introduces the knowledge, skills, and experience related to the advantages of php, fcgi, cgi, fork, and php fastcgi, and some php source code.

Class = 'pingjiaf' frameborder = '0' src = 'http: // biancheng.dnbc?info/pingjia.php? Id = 357913 'Rolling = 'no'> FCGI advantages:
1. you do not have to fork each request once. Don't underestimate this fork. for a logic with a very large access volume, using CGI will cause a large number of processes in the system fork. If there are too many processes, the switchover may result in a high overhead.
2 FCGI initialization does not require every request. Sometimes your business logic needs to connect to a server to query data. if FCGI is used frequently, you can establish a persistent connection. If CGI is used, a certain number of TIME_WAIT connections are generated each time a connection is established, whether the connection is closed by the server or the CGI is closed.

FCGI disadvantages:
1. if there is a problem with your program implementation somewhere, such as a small memory leak, the memory occupied over time will be large, and CGI will not. To avoid such problems, many people prefer to exit automatically after FCGI processes a certain number of requests.
2 FCGI resident memory, which occupies the point memory space.

In short, it depends on the choice. if there is a large amount of access to a certain program, CGI can not support the service or the business logic requires resident memory services, use FCGI. otherwise, if you can use CGI, use CGI.

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/357913.html pageNo: 1.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.