You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Michele Mazzucco (JIRA)" <ji...@apache.org> on 2007/03/15 15:11:09 UTC

[jira] Created: (AXIS2-2328) Out of memory error in Callback receiver

Out of memory error in Callback receiver
----------------------------------------

                 Key: AXIS2-2328
                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: client-api
    Affects Versions: nightly
         Environment: linux, sun jdk 1.5.0_10
            Reporter: Michele Mazzucco
            Priority: Critical


The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michele Mazzucco updated AXIS2-2328:
------------------------------------

    Attachment: memory_allocation.jpg

As I said the problem is in the connection listener. It continues to allocate memory, but it's never freed

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, memory_allocation.jpg, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485149 ] 

Michele Mazzucco commented on AXIS2-2328:
-----------------------------------------

Dims,

I think the problem is quite serious. I've tried to change my client so that it creates several ServiceClients object which send and wait for less messages, but I was not able to fix the issue this way.
I think the root is described here
http://www.nabble.com/-Axis2--ServiceClient-question-tf2496516.html#a6959251
I'm using only 1 (multi threaded ) configuration context, so the memory is released only at the end (or when I get an out of memory error :().


> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490879 ] 

Deepal Jayasinghe commented on AXIS2-2328:
------------------------------------------

Hi Michele,
is there any possibility of sending us a patch :)

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, memory_allocation.jpg, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490883 ] 

Michele Mazzucco commented on AXIS2-2328:
-----------------------------------------

Deepal,

where do you think the problem is? 
I've looked at it some time ago, and I've found that there's only one object (connection listener???) per configuration context. It would be much better to use a separate connection listener for each ServiceClient. Does it make any sense?

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, memory_allocation.jpg, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485122 ] 

Michele Mazzucco commented on AXIS2-2328:
-----------------------------------------

Dims,

yes, the problem is the DefaultConnectionListener class:

   [java] org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:97) ERROR [HttpListener-6060-1] - Connection listener terminated due to a runtime error
     [java] java.lang.OutOfMemoryError: Java heap space


Michele

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Reopened: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michele Mazzucco reopened AXIS2-2328:
-------------------------------------


I think there's still a memory leak somewhere. In fact after about 2 hours (and about 4000 requests sent from 2 clients created using the same configuration context) the memory usage is > 1 GB (and the number of responses to receive is < 10).

p.s. I call the cleanup method on the two ServiceClient objects ONLY once all responses have been received.

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2328.
-------------------------------------

    Resolution: Fixed

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505718 ] 

Michele Mazzucco commented on AXIS2-2328:
-----------------------------------------

Deepal,

the problem appears only if you use the same callback to process all responses. Is this you scenario?


Michele

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, memory_allocation.jpg, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481415 ] 

Davanum Srinivas commented on AXIS2-2328:
-----------------------------------------

Fixed in svn rev 518825

thanks,
dims

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-2328:
----------------------------------------

    Assignee: Deepal Jayasinghe

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>         Assigned To: Deepal Jayasinghe
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, memory_allocation.jpg, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michele Mazzucco updated AXIS2-2328:
------------------------------------

    Attachment: AXIS2-2328.patch

Please find attached the patch to fix the problem. The callback is removed from the hash map when the asynchronous response is received

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-2328.
--------------------------------------

    Resolution: Fixed

I think now the issue is fixed , I invoke about 5000 requests and it work fine for me.

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Assignee: Deepal Jayasinghe
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, memory_allocation.jpg, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2328) Out of memory error in Callback receiver

Posted by "Michele Mazzucco (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12486021 ] 

Michele Mazzucco commented on AXIS2-2328:
-----------------------------------------

If it can help, I've noticed that if the firewall does not allow the client to receive the response (i.e. the request is executed by the server, but the response never reaches the client) the memory usage remains more or less stable. Memory problems seems to arise only in the correct scenario (i.e. when the client receives responses)

> Out of memory error in Callback receiver
> ----------------------------------------
>
>                 Key: AXIS2-2328
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2328
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: nightly
>         Environment: linux, sun jdk 1.5.0_10
>            Reporter: Michele Mazzucco
>            Priority: Critical
>         Attachments: AXIS2-2328.patch, memory_allocation.jpg, Picture 1.png
>
>
> The CallbackReceiver stores the callback object into a hash map, but it never removes it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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