Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8D3BF783 for ; Thu, 9 May 2013 16:00:34 +0000 (UTC) Received: (qmail 187 invoked by uid 500); 9 May 2013 16:00:34 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 128 invoked by uid 500); 9 May 2013 16:00:34 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 119 invoked by uid 99); 9 May 2013 16:00:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 16:00:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kwsutter@gmail.com designates 209.85.217.177 as permitted sender) Received: from [209.85.217.177] (HELO mail-lb0-f177.google.com) (209.85.217.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 16:00:29 +0000 Received: by mail-lb0-f177.google.com with SMTP id 13so3161201lba.8 for ; Thu, 09 May 2013 09:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=jfoo6rfh2uCqXXNNURT859RcSbtVF1Y1xspAN22p0x4=; b=CzTU2nlykF0Q04oaOwYd+FQNao6DppgzVBsGWGfLDMw43gxvL+tiBJAn/XXze3Zk0q UA7e0cK58T8/b5Bvtvt01UBHbK3Cw1ALSXTaVMSGqLT79yM+3peJUL4AZ/emvcpCsnm3 0W4jsMUAyhSCQVMkYXchMjnAWKI/+ciA/hsjbuwtqUIz2Slp0vftX76J7cj7CTUyVnAb SLF1/eZZWPSBm05J69pQNk7ZF2iwKlBq0yUyUbrKw3b8lVMs3HBPJzZG67lZn6qy+Qys KeuMcRwYz9JtN23vtdpxdf98LEmuop6ZA0zIWRpNBRXCeUgns+/TgJyh7Jm0BYg+32Uf j7nw== X-Received: by 10.112.204.100 with SMTP id kx4mr1250360lbc.17.1368115208274; Thu, 09 May 2013 09:00:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.181.169 with HTTP; Thu, 9 May 2013 08:59:48 -0700 (PDT) In-Reply-To: References: From: Kevin Sutter Date: Thu, 9 May 2013 10:59:48 -0500 Message-ID: Subject: Re: OOM with JDBCConfigurationImpl holding 1+ GB of heap To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=001a11c3cb6800492f04dc4b25d5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3cb6800492f04dc4b25d5 Content-Type: text/plain; charset=ISO-8859-1 Don't use this: That is probably your issue. Reference this page for more information: http://openjpa.apache.org/entity-enhancement.html Good luck, Kevin On Thu, May 9, 2013 at 10:17 AM, Alejandro Abdelnur wrote: > Hi Rick, > > Thanks for looking into this, the persistence.xml file we are using is: > > > > https://github.com/apache/oozie/blob/trunk/core/src/main/resources/META-INF/persistence.xml > > The EMF is instatiated here: > > > > https://github.com/apache/oozie/blob/trunk/core/src/main/java/org/apache/oozie/service/JPAService.java#L156 > > > Thanks again. > > Alejandro > > > > On Thu, May 9, 2013 at 6:06 AM, Rick Curtis wrote: > > > Can we see the contents of your persistence.xml file? > > > > > > On Wed, May 8, 2013 at 6:34 PM, Alejandro Abdelnur > > wrote: > > > > > We are seeing this using OpenJPA 2.1.0 in Oozie. > > > > > > A JDBCConfigurationImpl seems to be holding a large amount of memory > via > > > its dataCacheTimeout (then listeners) instance variable keeping > > > > > > Class # Objects Used Heap Retained Heap > > > ------------------------------------------------------------------- > > > > > > o.a.o.j.meta.MappingRepository 1,902 304,320 904,410,184 > > > o.a.o.j.meta.ClassMapping 3,824 1,223,680 105,073,624 > > > ------------------------------------------------------------------- > > > > > > > > > We are using a single EntityManagerFactory and we are closing all > > > EntityManager instances correctly (via a command pattern). > > > > > > All caching settings are default ones. > > > > > > Any hint where to look would be appreciated it. > > > > > > Thanks > > > > > > Alejandro > > > > > > > > > > > -- > > *Rick Curtis* > > > --001a11c3cb6800492f04dc4b25d5--