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 20C4DF84D for ; Thu, 9 May 2013 16:16:28 +0000 (UTC) Received: (qmail 55447 invoked by uid 500); 9 May 2013 16:16:27 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 55394 invoked by uid 500); 9 May 2013 16:16:27 -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 55312 invoked by uid 99); 9 May 2013 16:16:27 -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:16:27 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tucu00@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-wg0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 16:16:23 +0000 Received: by mail-wg0-f50.google.com with SMTP id m15so3308314wgh.29 for ; Thu, 09 May 2013 09:16:02 -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=fWhv1+wFFr8AOwa7jLg2bqchs/WKt4ZYsBlzGyFnJvs=; b=NVuRFm4+4mk7/WUwTLkSXdY7Lnuva3n7k94aEVkhojBftKYK7EGPEP6DK0lBPU7INy x/OBOqP0srmFVRfMQqc0NJK4TuxxthyhDb3lxaAmOQDypin6nTS7Vb6ETUklmIsLbF9P X2H0aZmtMtbCW82KIakU1vnHOTjAA+tehb9W0lKq7q0BAfkvCmazDxqudHntQc7Pw62X 1JyPsCcQBWTqKjf4kG2iT/w7VJIu9Ev88O2SyxuBCI6WQcyTl1FmdrMWRb084qEdubQA gbY97jMw5Rj3qjV2LenjdP2gUNrme7QjgQKokCLKeytAtPUZxYRY3I6wdVIGjDXLM/I9 WKwA== X-Received: by 10.194.61.10 with SMTP id l10mr19153234wjr.32.1368116162166; Thu, 09 May 2013 09:16:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.7.9 with HTTP; Thu, 9 May 2013 09:15:42 -0700 (PDT) In-Reply-To: References: From: Alejandro Abdelnur Date: Thu, 9 May 2013 09:15:42 -0700 Message-ID: Subject: Re: OOM with JDBCConfigurationImpl holding 1+ GB of heap To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=047d7ba97e04db87f904dc4b5d95 X-Virus-Checked: Checked by ClamAV on apache.org --047d7ba97e04db87f904dc4b5d95 Content-Type: text/plain; charset=ISO-8859-1 Thanks Kevin, will try that. On Thu, May 9, 2013 at 8:59 AM, Kevin Sutter wrote: > 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* > > > > > > --047d7ba97e04db87f904dc4b5d95--