Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 52708 invoked from network); 6 Nov 2009 15:50:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 15:50:55 -0000 Received: (qmail 87633 invoked by uid 500); 6 Nov 2009 15:50:55 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 87570 invoked by uid 500); 6 Nov 2009 15:50:54 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 87559 invoked by uid 99); 6 Nov 2009 15:50:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 15:50:54 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 15:50:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6524F234C045 for ; Fri, 6 Nov 2009 07:50:32 -0800 (PST) Message-ID: <758292707.1257522632400.JavaMail.jira@brutus> Date: Fri, 6 Nov 2009 15:50:32 +0000 (UTC) From: "Albert Lee (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-1375) OutOfMemory runs in container environment in a long stress run In-Reply-To: <1145020132.1257371852411.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee resolved OPENJPA-1375. --------------------------------- Resolution: Fixed > OutOfMemory runs in container environment in a long stress run > -------------------------------------------------------------- > > Key: OPENJPA-1375 > URL: https://issues.apache.org/jira/browse/OPENJPA-1375 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 1.3.0, 2.0.0-M3 > Reporter: Albert Lee > Assignee: Albert Lee > Fix For: 1.3.0, 2.0.0 > > > Long stress run in the app server/container environment caused a OutOfMemoery exception with a heap dump that showed the following: > FetchConfigurationImpl$ConfigurationState > + WsJpaFetchConfigurationImpl > + Array of Object > + IdentityHashMap > + EntityManagerImpl > What happened is the container pooled the entity manager and clear the context when a transaction is completed. However the IdentityHashMap in EntityManagerImpl, which maps the fetch configuration to fetch plan, is not being flush/clear. This caused the growth of the IdentityHashMap and eventually the OOM in a long run. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.