You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/10/20 13:24:23 UTC

[Bug 60283] New: Apache 2.2.15 + File Streaming = Memory Leak

https://bz.apache.org/bugzilla/show_bug.cgi?id=60283

            Bug ID: 60283
           Summary: Apache 2.2.15 + File Streaming =  Memory Leak
           Product: Apache httpd-2
           Version: 2.2.15
          Hardware: Other
                OS: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: etornam.banini@cerner.com

Hi,

When downloading a large file from using rails, Phusion Passenger 5.0.18 and
Apache 2.2.15 the thread size will continue to grow the longer the download
takes. We are using this code:

    path = '/home/data/test.tar.gz'
    pack_content_type = 'application/octet-stream'
    send_file path, :type => pack_content_type, :x_sendfile=>true


A number of file sizes have been tested and have found the larger the file, the
larger the httpd thread grows.
ie: 50 GB file => 2 GB httpd thread size
    80 GB file => 3.2 GB httpd thread size

The downloads are done on a Red Hat 6.6 node and the behaviour/size is
consistant for every download.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60283] Apache 2.2.15 + File Streaming = Memory Leak

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60283

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Eric Covener <co...@gmail.com> ---
Sounds like a potential passenger bug. If all of the rails/passenger stuff is
not necessary for the memory growth, please show a basic configuration and
memory growth observations for a static file.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 60283] Apache 2.2.15 + File Streaming = Memory Leak

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60283

--- Comment #2 from etornam.banini@cerner.com ---
(In reply to Eric Covener from comment #1)
> Sounds like a potential passenger bug. If all of the rails/passenger stuff
> is not necessary for the memory growth, please show a basic configuration
> and memory growth observations for a static file.

We have looked into it from the passenger side and have determined that
passenger is not the cause of the memory issue. We are using a simple rails app
to download a static file from one folder and write it elsewhere. We are using
a simple curl to initiate the download. 

File size(GB) |  Thread size
    10        |   ~1
    20        |    1.5
    50        |    2
    80        |    3.2
    100       |    4

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org