![]() ![]() ![]() ![]() Each process handles one connection at a time without creating separate threads for each. The prefork MPM uses multiple child processes without threading.In practice, MPMs extend the modular functionality of Apache by allowing you to decide how to configure the web server to bind to network ports on the machine, accept requests from clients, and use children processes (and threads, alternatively) to handle such requests.īeginning with version 2.4, Apache offers three different MPMs to choose from, depending on your needs: TIP #3: Choose the Multi-Processing Module (MPM) that works best for your case Check Linux Kernel VersionĪlthough it is a process not intended for beginners, upgrading your kernel is an interesting exercise to learn more about the internals of Linux. You can view your currently installed kernel with: # uname -rĪnd compare it to the latest stable kernel in (4.3 at the time of this writing). That, in turn, facilitates high performance network file transfers (which are desired in the context of web server-client communications) and enables Apache to deliver static content faster and with lower CPU utilization by performing simultaneous read and send operations. Why? Kernel versions 2.4 and above have the sendfile kernel system call enabled by default. TIP #2: If you are using a Kernel older than 2.4, consider upgrading now You can read the latest release notes in the Apache Documentation section in the Apache HTTP server Project website. # apache2 –v Īs a rule of thumb, stick with the update method provided by the package manager of your chosen distribution ( yum update httpd or aptitude safe-upgrade apache2, for CentOS or Debian, respectively) unless there is no other way. In any event, you can check your currently installed version as follows: # httpd -v Compilation and installation instructions are also provided here – just remember that if you choose this update method, you may want to back up your current configuration files / sites / virtual hosts as a precaution. ![]() However, there may be a recent improvement or a bug fix that has been added to a newly-released stable version, which is then made available to download and install from source. As of November 19, 2015, the latest version of Apache available in the CentOS 7 repositories is 2.4.6, whereas in Debian’s is 2.4.10. It goes without saying that having the latest version of Apache installed is probably one of the first things you need to consider. TIP #1: Always keep Apache updated to its latest version However, please keep in mind that Apache was not designed with the objective of setting benchmark records – but, even so, it is still capable of providing high performance in almost any usage case you can possibly think of. In this article we will discuss a few tips that will help you ensure that Apache will run smoothly and be able to handle the number of requests you are expecting from remote clients. Thus, if you are a system administrator in charge of managing Apache installations, you need to know how to make sure your web server performs at the best of its capacity according to your (or you client’s) needs. 5 Tips to Boost Your Apache Web Server PerformanceĪdditionally, Apache keeps experiencing the largest growth among the top web servers, followed by Nginx and IIS. According to a recent report by Netcraft (a well-known Internet company that provides among other services web browser usage statistics), Apache continues to be the most widely used web server among sites and Internet-facing computers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |