<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    I've not had a detailed look at the config, but I think you're
    possibly suffering by having <br>
    <br>
    client_body_buffer_size 32m;<br>
    <br>
    Perhaps try something like :<br>
    <br>
    client_body_buffer_size 32k;<br>
    <br>
    or see how it works with the default (8k or 16k depending on the
    platform).<br>
    <br>
    Also, 25 worker processes is probably way too high.  Try 1 per
    processor core, or possibly even fewer.<br>
    <br>
    You might also want to experiment with sendfile on.<br>
    <br>
    Good luck!<br>
    <br>
    Marcus.<br>
    <br>
    <br>
    <br>
    On 16/09/2010 12:26, Masteryo Team wrote:
    <blockquote
      cite="mid:AANLkTikmF3Uz=WGBSABYrhTW78+VXzHZUQKyLgJcvU+i@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello guys<br>
        <br>
        any help will be appreciate it<br>
        <br>
        I have new server with 1 Gbit port speed and I installed nginx
        on it. The server only for downloading data.<br>
        <br>
        Now there are<br>
        <table>
          <tbody>
            <tr class="out">
              <th scope="row">TCP Connections in ESTABLISHED State</th>
              <td><br>
              </td>
              <td><br>
              </td>
              <td>2060.0 con </td>
            </tr>
          </tbody>
        </table>
        <br>
        <br>
        the currently traffic use : 140.6 Mb/s<br>
        see MRTG <a moz-do-not-send="true"
          href="http://server07.animedown.tv/mrtg/">http://server07.animedown.tv/mrtg/</a><br>
        <br>
        I have 4MB speed in my computer. if I download file by
        flashget/download manager program , the speed will be around 100
        KB/s.<br>
        <br>
        in the same server if I download through apache the speed will
        be around 400 - 500 KB/s<br>
        <br>
        you can test download speed by your self<br>
        <br>
        FROM Nginx:<br>
        <a moz-do-not-send="true"
href="http://server07.animedown.tv/s1/ArbicSub/S/Death_Note/Death_Note_01.avi/1a287429aff39b5b711836924b994e94/4c930ccd">http://server07.animedown.tv/s1/ArbicSub/S/Death_Note/Death_Note_01.avi/1a287429aff39b5b711836924b994e94/4c930ccd</a><br>
        <br>
        FROM Apache:<br>
        <a moz-do-not-send="true"
href="http://server07.animedown.tv:81/s1/ArbicSub/S/Bleach/Bleach_001.avi">http://server07.animedown.tv:81/s1/ArbicSub/S/Bleach/Bleach_001.avi</a><br>
        <br>
        <br>
        [root@ ~]# /opt/nginx/sbin/nginx -V<br>
        nginx version: nginx/0.7.61<br>
        built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)<br>
        configure arguments: --prefix=/opt/nginx
        --sbin-path=/opt/nginx/sbin/nginx
        --conf-path=/opt/nginx/conf/nginx.conf
        --error-log-path=/opt/nginx/logs/error_log
        --pid-path=/opt/nginx/logs/nginx.pid
        --lock-path=/var/lock/nginx.lock
        --http-log-path=/opt/nginx/logs/access_log --user=apache
        --group=apache --http-proxy-temp-path=/opt/nginx/logs/proxy
        --http-client-body-temp-path=/opt/nginx/logs/client-body
        --http-fastcgi-temp-path=/opt/nginx/logs/fastcgi
        --with-http_sub_module --with-debug
        --add-module=/opt/nginx/addons/ngx_http_secure_download
        --with-md5=/opt/md<br>
        <br>
        <br>
        user apache apache;<br>
        worker_processes 25;<br>
        worker_rlimit_nofile 32768;<br>
        pid /opt/nginx/logs/nginx.pid;<br>
        lock_file /var/lock/subsys/nginx;<br>
        error_log /opt/nginx/logs/error_log error;<br>
        <br>
        events {<br>
          worker_connections 1024;<br>
          use epoll;<br>
        }<br>
        <br>
        http {<br>
        <br>
          include /opt/nginx/conf/mime.types;<br>
          default_type text/plain;<br>
        #  aio on;<br>
          sendfile off;<br>
          output_buffers 1 256k;<br>
          directio 4m;<br>
        #  ssi off;<br>
        #  ssi_silent_errors on;<br>
        #  gzip off;<br>
          tcp_nopush on;<br>
          tcp_nodelay on;<br>
          expires off;<br>
          auth_basic off;<br>
          # TUNING<br>
          client_header_timeout 30;<br>
          client_body_timeout 60;<br>
          send_timeout 30;<br>
          connection_pool_size 512;<br>
          client_header_buffer_size 1k;<br>
          client_body_buffer_size 32m;<br>
          large_client_header_buffers 4 4k;<br>
          request_pool_size 8k;<br>
          postpone_output 1460;<br>
          keepalive_timeout 75 30;<br>
          reset_timedout_connection on;<br>
          server_names_hash_bucket_size 128;<br>
          # PROXY<br>
          proxy_buffering off;<br>
          proxy_cache  off;<br>
          proxy_connect_timeout 3000;<br>
          proxy_send_timeout 3000;<br>
          proxy_read_timeout 3000;<br>
          proxy_buffer_size 2048k;<br>
          proxy_buffers 2 2048k;<br>
          proxy_busy_buffers_size 2048k;<br>
        #  proxy_max_temp_file_size 0;<br>
        #  proxy_buffering on;<br>
        #  proxy_temp_file_write_size 128k;<br>
        #  proxy_temp_path /opt/nginx/logs/proxy_temp;<br>
        <br>
        #  geo  $GEOIP_COUNTRY_CODE  {<br>
        #      include  geoip.conf;<br>
        #      default  XX;<br>
        #  }<br>
        <br>
          # DEFAULT<br>
          server {<br>
            listen <a moz-do-not-send="true" href="http://127.0.0.1:80">127.0.0.1:80</a>
        default;<br>
            access_log /opt/nginx/logs/access_log combined;<br>
            #location /sts {<br>
            #  stub_status on;<br>
            #    access_log   off;<br>
            #        allow all;<br>
            #}<br>
            location / {<br>
              root /var/www;<br>
              deny all;<br>
            }<br>
          }<br>
        <br>
          <br>
        server {<br>
          listen <a moz-do-not-send="true"
          href="http://67.159.60.93:80">67.159.60.93:80</a>;<br>
          server_name <a moz-do-not-send="true"
          href="http://server07.animedown.tv">server07.animedown.tv</a>
        *.<a moz-do-not-send="true" href="http://server07.animedown.tv">server07.animedown.tv</a>;<br>
          error_log off;<br>
          access_log off;<br>
        <br>
          autoindex on;<br>
          index index.shtml index.html index.php;<br>
          location ~* \.php$ {<br>
            proxy_redirect off;<br>
            proxy_set_header X-Real-IP $remote_addr;<br>
            proxy_set_header X-Host $http_host;<br>
            proxy_set_header X-URI $uri;<br>
            proxy_set_header X-ARGS $args;<br>
            proxy_set_header Host $http_host;<br>
            proxy_set_header Refer $http_refer;<br>
            proxy_pass <a moz-do-not-send="true"
          href="http://67.159.60.93:81">http://67.159.60.93:81</a>;<br>
          }<br>
        <br>
          location /s1/php {<br>
            root /data;<br>
          }<br>
          location /s1/ArbicSub {<br>
            root /data;<br>
            secure_download on;<br>
            secure_download_secret masteryo;<br>
            secure_download_path_mode file;<br>
            secure_download_fail_location /error;<br>
            add_header Content-Disposition "attachment; filename=$uri";<br>
            #internal;<br>
          }<br>
          location /s2/php {<br>
            root /data;<br>
          }<br>
          location /s2/ArbicDub {<br>
            root /data;<br>
            secure_download on;<br>
            secure_download_secret masteryo;<br>
            secure_download_path_mode file;<br>
            secure_download_fail_location /error;<br>
            add_header Content-Disposition "attachment; filename=$uri";<br>
            #internal;<br>
          }<br>
        <br>
        <br>
            <br>
          location /mrtg {<br>
            index index.shtml;<br>
            root /var/www;<br>
          }<br>
        <br>
        <br>
            <br>
        }<br>
        <br>
        <br>
        }<br>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>