Hi,

On Wed, Dec 21, 2011 at 6:38 PM, Afkham Azeez <az...@wso2.com> wrote:

>
>
> 2011/12/21 Güçlü Akkaya <guclu.akk...@ardictech.com>
>
>> **
>>
>> Hi all,
>>
>> I have written a web service for uploading and downloading files as MTOM
>> attachments.(By setting MTOM true in the configuration of the web service.)
>> Currently i am trying to make some load tests. However each time i use the
>> download function of the web service the RAM usage increases. For possible
>> memory leaks i was checking the host wso2 server with jconsole. *The
>> heap usage drops to normal after the function terminates*.
>>
> If the used memory increases while a certain task is performed, and
> returns to the original memory level after the task is completed, by
> definition, it is NOT a memory leak.
>

+1. BTW, with the next major release of WSO2 Carbon/App Server, MTOM
attachment streaming feature will be available. The key issue that was
blocking this was fixed recently [1].

With this feature Axis2 (which is the underlying SOAP engine for Carbon)
will be able to stream MTOM attachments without building them in the memory
and hence the RAM usage will be minimum.

[1] https://issues.apache.org/jira/browse/AXIOM-377

Thanks,
Sadeep

>  In the attachment you can find the heap histogram before the function is
>> used and the function used after 10 times downloading a file of 70mb.
>>
>> Thanks
>>
>>
>> Fatih Güçlü Akkaya
>>
>> Software Development Engineer
>>
>>
>>
>>
>>
>>
>> ARDIC ARGE BILGI VE TEKNOLOJI ÇÖZÜMLERI
>>
>> APPLIED RESEARCH DEVELOPMENT INNOVATION CENTER
>>
>> Tel:       + 90 262 642 42 52
>>
>> GSM:     + 90 554 542 48 50
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Sadeep Jayasumana

Software Engineer
WSO2 Inc.
Email - sad...@wso2.com
Mobile - +94 77 22 66 507
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to