You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Peter Cseh (JIRA)" <ji...@apache.org> on 2016/06/01 18:03:59 UTC

[jira] [Commented] (OOZIE-2542) Option to disable OpenJPA BrokerImpl finalization

    [ https://issues.apache.org/jira/browse/OOZIE-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15310779#comment-15310779 ] 

Peter Cseh commented on OOZIE-2542:
-----------------------------------

Looks like a good idea.
The logging part always logs the value "non-finalizing" instead of the actual value of _brokerImplConfig_, otherwise the patch looks good.

> Option to  disable OpenJPA BrokerImpl finalization 
> ---------------------------------------------------
>
>                 Key: OOZIE-2542
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2542
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Purshotam Shah
>            Assignee: Purshotam Shah
>         Attachments: OOZIE-2542-V1.patch
>
>
> We noticed that GC is taking a long time in our production. Looking at the live objects, we can see a lot of FinalizingBrokerImpl.
> {code}
>   10:         33881        8402488  org.apache.openjpa.kernel.FinalizingBrokerImpl
>   15:         91943        3677720  java.lang.ref.Finalizer
> 1134:             1            384  java.lang.ref.Finalizer$FinalizerThread
> 1672:             4            128  org.apache.hadoop.yarn.proto.YarnProtos$FinalApplicationStatusProto
> 1926:             4             96  org.apache.hadoop.yarn.api.records.FinalApplicationStatus
> {code}
> By default Broker Finalization is enable to safeguard the accidental resource leaks that may occur if a developer fails to explicitly close EntityManagers when finished. Since we are closing all EntityManagers on final block. We should not have any issue.
> More details @ http://openjpa.apache.org/builds/1.2.3/apache-openjpa/docs/ref_guide_optimization.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)