Results 1 to 6 of 6

Thread: How to test and debug Apache server

  1. #1
    Join Date
    Feb 2010
    Posts
    148

    How to test and debug Apache server

    Hi all,

    Apache is running on Linux operating system's that is number one Web server. Many small places can be used to adjust the Apache's performance, and reduce the impact of its system resources. One of them is to adjust the memory usage, of course. I want to know that how to test and debug Apache server in linux. Please suggest. Thanks in advance.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    How to test and debug Apache server

    You need to enter the following command for test and debug Apache server.

    Code:
    # Ps-Uapache-u apache u
    Code:
    USERPID% CPU% MEMVSZRSS TTYSTAT START TIME COMMAND
    apache130670.05.3 149704 54504? SOct071: 53 / usr / sbin / httpd-f / etc / httpd / conf / httpd.conf-DAPACHE2
    The above indicates that a single httpd process is using a 50 MB of RSS (Resident Set Size) memory (or non-exchangeable physical memory), and 149 MB of VSZ (virtual) memory. This of course depends largely on where you load and run Apache the number of modules. Check and reply.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    How to test and debug Apache server

    We assume that each http process is using a 27 MB of memory. Then you need to make sure you can actually use the memory so that the number of http. According to running other processes on the machine, you may wish to request 50% of physical memory is used for Apache. In a system with 1GB of memory, there is 512MB of memory can be divided into more than 27MB of memory, which is approximately 19 concurrent httpd memory. Some people insist that each httpd thread is the "real" uses about 5MB of memory, so theoretically you can put 512MB of memory into a 102 concurrent processes for Apache to use to keep in mind is that unless you Website needs are so enormous traffic, otherwise the situation is very rare. All the best.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    How to test and debug Apache server

    By default, Apache will be allocated the largest 256 concurrent client connections, or 256 processes each one corresponds to a request. In this setting, a huge web site traffic will be an instant crash even if you assume that each process uses 5MB of memory, it also requires 1.3GB of memory to satisfy the number of requests. If you do not take other measures, the system will be through the hard drive to try to use the swap space to handle it can not in physical memory task. Check and reply.

  5. #5
    Join Date
    Apr 2008
    Posts
    2,005

    How to test and debug Apache server

    The Apache server can be adjusted include the KeepAlive, KeepAliveTimeout and MaxKeepAliveRequests settings. Httpd.conf file can be placed in the recommended settings are: ServerLimit 128MaxClients 128KeepAlive OnKeepAliveTimeout 2MaxKeepAliveRequests 100. By Keep AliveTimeout from 15 seconds to 2 seconds, you can increase the Max Clients orders; 19 is too small, while the 128 much better. The process of survival by reducing the number of seconds, you can at the same time allow more connections.All the best.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    Re: How to test and debug Apache server

    Use ab for Apache configuration files (MaxClients is equal to 256, ServerLimit is equal to 256, KeepAliveTimeout equal to 15) be adjusted so that it can meet the 1000 request (100 consecutive simultaneous requests generated) adjustmentMethodsAre as follows. (In the implementation of the test time to ensure that theServersThere is a terminal to open in order to observe the system load. )Now the above server settings be replaced with more conservative settings, restart Apache, try to re-test (always from a remote computer, rather than the machine). All the best.

Similar Threads

  1. Setup Apache Web Server and File Server on Windows
    By Rudra.J in forum Guides & Tutorials
    Replies: 1
    Last Post: 11-05-2011, 09:09 AM
  2. Apache server Tricks
    By Amma-Watson in forum Tips & Tweaks
    Replies: 3
    Last Post: 28-02-2010, 02:35 AM
  3. How to Test Load with Apache JMeter
    By Donald in forum Software Development
    Replies: 3
    Last Post: 07-08-2009, 03:25 PM
  4. Replies: 3
    Last Post: 12-01-2009, 07:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,173,312.65340 seconds with 17 queries