You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2010/10/17 19:45:23 UTC

[jira] Commented: (SYNAPSE-701) Remove the finalize method of the TemporaryData.java in commons module of synapse

    [ https://issues.apache.org/jira/browse/SYNAPSE-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921874#action_12921874 ] 

Andreas Veithen commented on SYNAPSE-701:
-----------------------------------------

The method is not redundant because there is no way to guarantee that the release method is ever called. This issue is caused by an architectural flaw in Axis2 [1]. By removing this method, you will create a resource leak that may cause a disk full error.

[1] http://veithen.blogspot.com/2009/10/inside-axis2-and-axiom-can-somebody.html

> Remove the finalize method of the TemporaryData.java in commons module of synapse
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-701
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-701
>             Project: Synapse
>          Issue Type: Bug
>            Reporter: Supun Kamburugamuva
>            Assignee: Supun Kamburugamuva
>
> A finalize method can cause delayed garbage collection as well as it doesn't guarantee a clean. This can lead to potential Out of Memory errors if these classes are used very frequently. Also this method is redundant because this object has a explicit release method. So I suggest we remove this redundant method.

-- 
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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org