You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michele Mazzucco <Mi...@ncl.ac.uk> on 2007/03/28 16:11:25 UTC

[Axis2] memory issues on the client side

Hi all,

I've reopened JIRA 2328 because, even if the Callback object is removed
from the hash map when the asynchronous response is received, I still
see a big memory usage. 
I'm using two ServiceClient objects, configured using the same
configuration context. After they have sent a few thousands messages
(while the number of waiting responses is low, say about 10) the
applications is using more that 1 GB of memory.

Any clue?

Michele


p.s. The cleanup is called only when all responses are received


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] memory issues on the client side

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Hi all,

it looks like the memory keeps growing only if the response is received.
If there's a firewall in the middle which prevents the client from
receiving the response (i.e. the server processes the request, but the
response is not delivered) the memory does not grow.


Michele

On Wed, 2007-03-28 at 11:43 -0400, Davanum Srinivas wrote:
> Michele,
> 
> Could i pester you to attach a profiler to see where the memory gets
> accumulated? So that we can fix it in time for 1.2..
> 
> thanks,
> dims
> 
> On 3/28/07, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> > Hi all,
> >
> > I've reopened JIRA 2328 because, even if the Callback object is removed
> > from the hash map when the asynchronous response is received, I still
> > see a big memory usage.
> > I'm using two ServiceClient objects, configured using the same
> > configuration context. After they have sent a few thousands messages
> > (while the number of waiting responses is low, say about 10) the
> > applications is using more that 1 GB of memory.
> >
> > Any clue?
> >
> > Michele
> >
> >
> > p.s. The cleanup is called only when all responses are received
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] memory issues on the client side

Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Dims,

it looks like the root of the problem is that there's only one listener
for each configuration context (see the link below), so the memory keeps
growing but it's never released.

http://www.nabble.com/-Axis2--ServiceClient-question-tf2496516.html#a6959251


Michele

On Wed, 2007-03-28 at 11:43 -0400, Davanum Srinivas wrote:
> Michele,
> 
> Could i pester you to attach a profiler to see where the memory gets
> accumulated? So that we can fix it in time for 1.2..
> 
> thanks,
> dims
> 
> On 3/28/07, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> > Hi all,
> >
> > I've reopened JIRA 2328 because, even if the Callback object is removed
> > from the hash map when the asynchronous response is received, I still
> > see a big memory usage.
> > I'm using two ServiceClient objects, configured using the same
> > configuration context. After they have sent a few thousands messages
> > (while the number of waiting responses is low, say about 10) the
> > applications is using more that 1 GB of memory.
> >
> > Any clue?
> >
> > Michele
> >
> >
> > p.s. The cleanup is called only when all responses are received
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: [Axis2] memory issues on the client side

Posted by Davanum Srinivas <da...@gmail.com>.
Michele,

Could i pester you to attach a profiler to see where the memory gets
accumulated? So that we can fix it in time for 1.2..

thanks,
dims

On 3/28/07, Michele Mazzucco <Mi...@ncl.ac.uk> wrote:
> Hi all,
>
> I've reopened JIRA 2328 because, even if the Callback object is removed
> from the hash map when the asynchronous response is received, I still
> see a big memory usage.
> I'm using two ServiceClient objects, configured using the same
> configuration context. After they have sent a few thousands messages
> (while the number of waiting responses is low, say about 10) the
> applications is using more that 1 GB of memory.
>
> Any clue?
>
> Michele
>
>
> p.s. The cleanup is called only when all responses are received
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org