You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2016/01/13 21:55:41 UTC

[Bug 58852] New: Memory consumption when sending large files with method PUT

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

            Bug ID: 58852
           Summary: Memory consumption when sending large files with
                    method PUT
           Product: JMeter
           Version: 2.13
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: felix.schumacher@internetallee.de

Created attachment 33435
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33435&action=edit
Use less memory when using large files on PUT method

When sending large files with PUT method, at HTTPHC4Impl and HTTPHC3Implwill
store the entire content in the sampler. This will lead to OutOfMemory errors
rather quickly.

As in POST method, we should store a short message in the sampler, to reduce
the amount of memory needed.

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

[Bug 58852] Memory consumption when sending large files with method PUT

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

Ahmad <an...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #2 from Ahmad <an...@hotmail.com> ---
Hi Felix
I tested the fix with 1GB * 10 users and 4GB heap and that worked with no
issues.

I tested the fix with 5GB * 10 users and got OOM exception ((with 4GB heap as
well).  

is there a way to improve the fix to allow for larger Object sizes and higher
concurrency?? 

Is there a formula to increase the heap size (taking into account object sizes
and concurrent users?)>??


thanks

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

[Bug 58852] Memory consumption when sending large files with method PUT

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |numberzero1029@gmail.com

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
*** Bug 47660 has been marked as a duplicate of this bug. ***

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

[Bug 58852] Memory consumption when sending large files with method PUT

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

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEEDINFO

--- Comment #3 from Felix Schumacher <fe...@internetallee.de> ---
How big is the response to your PUT requests? (See "Save response as MD5 hash?"
in http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request)

I have tested upload with POST and PUT with 10G each without any problems.

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

[Bug 58852] Memory consumption when sending large files with method PUT

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
As per last answer on this discussion:
http://mail-archives.apache.org/mod_mbox/jmeter-user/201601.mbox/%3CSNT148-W94797335406CF5C8BA15FEDDF60%40phx.gbl%3E

I am closing issue as fixed

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

[Bug 58852] Memory consumption when sending large files with method PUT

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

Felix Schumacher <fe...@internetallee.de> changed:

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

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Date: Sat Jan 16 15:23:12 2016
New Revision: 1724996

URL: http://svn.apache.org/viewvc?rev=1724996&view=rev
Log:
Use less memory for PUT requests.

Bugzilla Id: 58852

Modified:
   
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
   
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
    jmeter/trunk/xdocs/changes.xml

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

[Bug 58852] Memory consumption when sending large files with method PUT

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hi Felix,
Can this one be closed ?
Thanks

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