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 772E111DD9 for ; Thu, 9 May 2013 13:07:13 +0000 (UTC) Received: (qmail 26427 invoked by uid 500); 9 May 2013 13:07:12 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 26029 invoked by uid 500); 9 May 2013 13:07:06 -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 26001 invoked by uid 99); 9 May 2013 13:07:05 -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 13:07:05 +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 curtisr7@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 May 2013 13:07:00 +0000 Received: by mail-ob0-f180.google.com with SMTP id xk17so742902obc.11 for ; Thu, 09 May 2013 06:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Ub3pkFFVtgoy/W9adfJIhLh6/93GCgXuatrnD5rQ3l4=; b=P3neRC9lFi9Eo2fHf2ZryGU+j32G5jkTvZzfIWiWYQ/jpetRtpDQdi9oA8VLNWLAkR 8jkUCkqehx85jm0rhiQoHuNa5I6cW5+qIkl2gfWShQ/8GoAqh9rsoYZ+/7eraryLp+8u tfD02+8rzyUaxSOdUEgvThSWpso19wDlOxYNHhcsDkJysehbkRcFQiPobOizuVANojet zBBUNR2kNff3w/wo0uPy7/rm57JuAv09ZtRJxIP9sZowgCjA9P5rinH1S+bLBQVLen3G B+rG5M+z0SxKKZg6F+B32CNBucciEpJaKlICPo0K28VsnzYTGd6IDpag+VpIwNt1ZDcc OckA== MIME-Version: 1.0 X-Received: by 10.60.144.170 with SMTP id sn10mr4278234oeb.40.1368104799756; Thu, 09 May 2013 06:06:39 -0700 (PDT) Received: by 10.60.23.36 with HTTP; Thu, 9 May 2013 06:06:39 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 May 2013 08:06:39 -0500 Message-ID: Subject: Re: OOM with JDBCConfigurationImpl holding 1+ GB of heap From: Rick Curtis To: users Content-Type: multipart/alternative; boundary=047d7b33c87c9b5f9e04dc48b859 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b33c87c9b5f9e04dc48b859 Content-Type: text/plain; charset=ISO-8859-1 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* --047d7b33c87c9b5f9e04dc48b859--