TAILIEUCHUNG - Practical mod_perl-CHAPTER 11:Tuning Performance by Tweaking Apache’s Configuration

Tham khảo tài liệu 'practical mod_perl-chapter 11:tuning performance by tweaking apache’s configuration', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Page 383 Thursday November 18 2004 12 41 PM CHAPTER 11 Tuning Performance by Tweaking Apache s Configuration When you implement mod_perl on your system it s very important to go through the default configuration file because most of the default settings were designed without mod_perl in mind. Some variables such as MaxClients should be adapted to the capabilities of your system while some such as KeepAlive in many cases should be disabled because although they can improve performance for a plain Apache server they can reduce performance for a mod_perl server. Correct configuration of the MinSpareServers MaxSpareServers StartServers MaxClients and MaxRequestsPerChild parameters is very important. If they are too low you will under-use the system s capabilities. If they are too high it is likely that the server will bring the machine to its knees. The KeepAlive directive improves the performance of a plain Apache server by saving the TCP handshake if the client requests more than one object from your server. But you don t want this option to be enabled under mod_perl since it will keep a large mod_perl process tied to the client and do nothing while waiting for the timeout to occur. We will talk about these and other issues in the following sections. Setting the MaxClients Directive It s important to specify MaxClients on the basis of the resources your machine has. The MaxClients directive sets the limit on the number of simultaneous requests that can be supported. No more than this number of child server processes will be created. To configure more than 256 clients you must edit the HARD_SERVER_LIMIT entry in and recompile Apache. With a plain Apache server it doesn t matter much if you run many child pro-cesses the processes are about 1 MB each most of it shared so they don t eat a lot of RAM. The situation is different with mod_perl where the processes can easily grow to 10 MB and more. For example if you have MaxClients set to 50 .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.