LAMP server performance optimization tips-Apache server Optimization

Source: Internet
Author: User

1. Introduction to Zend Performance Suite

For Apache, you must compile PHP or use the DSO (dynamic shared object) mode. Do not use CGI. The most important reason for using DSO is efficiency. Apache is a modular design, so it can load a variety of server-side script interpreters to support dynamic web pages. However, as the page access volume increases, CGI is no longer overwhelmed to improve efficiency. Therefore, we chose to compile the most frequently called module into a dynamic shared object (DSO ). ZendPerformanceSuite produced by zend is a tool for testing and optimizing the performance of Apache servers. It can be registered on its home page and downloaded for free. And get a protocol file. The downloaded package contains two files: Main Program: ZendPerformanceSuite-3.6.0a-Linux_glibc21-i386.tar.gz and Protocol File: zend_performance_suite.dat

2. software installation:

 
 
  1. gunzip ZendPerformanceSuite-3.6.0a-Linux_glibc21-i386.tar.gz
  2. tar vxf ZendPerformanceSuite-3.6.0a-Linux_glibc21-i386.tar
  3. cp zend_performance_suite.dat /ZendPerformanceSuite-3.6.0
  4. ./install

(1) software installation is very simple as long as you follow the prompts in the installation wizard, as shown in figure 3.

Figure 3 Software Installation Wizard

3. Test the Apache server

(1) Open a Web browser input: http://www.cjh.com/ZendPerformanceSuite/login.php

Enter the password to go to the main interface of the software.

(2) the main interface of ZendPerformanceSuite is divided into four parts. See Figure 4.

Figure 4 main software interface

ZendPerformanceSuite consists of four parts: "Fast Track", "Console", "FileView", and "Testing ". Fast Track is the Test Wizard, Console is the parameter settings, FileView shows the stored files, and Testing is the test command.

(3) parameter description

The "Console" section is important. Here we will introduce its main options:

Figure 5 "Console" page of the software

In this menu, set the parameters of the Apache server:

 
 
  1. "Modified File Detection": automatically checks the File type,
  2. "Filepath Identifiction": depth of all files,
  3. "Accelerator memory": accelerates memory capacity,
  4. "Memory Reclaim Threshold": Memory Reclaim ratio,
  5. "Maximum Accelerated Files": Maximum number of Files to be Accelerated.
  6. "Extensions For PHP Files" extension file type,
  7. Does "Dynamic Caching Enabled" Support Dynamic Caching,
  8. "Maximum Cache Size" Maximum Cache capacity,
  9. "Minimum Free Diskspace": Minimum disk space,
  10. "Maximum Cached File Size" Maximum Cache File Size,
  11. "Default Cache Lifetime" indicates the Default Cache file survival time,
  12. "Default Dynamic Caching Conditions": Default cache status,

"Compress Files" indicates whether to Compress the file. Configure the parameters in the "Console" based on your Apache server to Test the Performance. Currently, zendcompucesuite supports "Performance Test" and "Compression Test ).

(4) Stress Testing

The stress test is used as an example. after entering the parameters of "Console", you can perform the test. Select the "Testing" menu to perform the test.

Figure 6 Apache server stress test results

You can see that the test data is displayed in Figure 4 in two ways: numerical value. The performance test procedure is the same as the stress test. You need to modify the parameters in the "Console" menu for multiple tests, and finally find the best option for your Apache server. Click "Apply Change" to save the settings.

Zend Performance Suite is a software package that greatly improves Apache running efficiency! It can enhance the server's data throughput, save server resource consumption, and support Linux, Solaris, And FreeBSD. It can reduce server load, reduce page response time, and reduce database load. Increase user size and compress files. Flexible buffer configuration and application programming interface functions.

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.