[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] memory usage
|
- From: Tim Hollosy <hollosyt@xxxxxxxxx>
- Date: Mon, 19 Oct 2009 18:50:13 -0400
- Delivered-to: eclipselink-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=3K1j5/DEt7b4FZqa1p7hTBxntFdZJoUs5gDK4Qr0e/I=; b=dkmoPhz7opeEnwdp8DmoIH1KW7Cc48Hsn3kSAIQsyMUPXlSXX4Dr0FQxjoiA34kE+V SAb6FkPQi02Z+kZyJGJWkxz6AkmtGznIdSX1hxbBvgDzUyWy2Y4H2dIFxaURGcEllZVE +B9dxNeJTNZn2hIJGwwQNGAWPcxeYoHMPHSy8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mnAkhbdLLYD/RFpke+rHmS5iHG23geFJGQ0HL1EA4d7YE0HXAsCkGAlIE6JgU/Pfqz Gxs2D1SGHWreML/NeNOaxVxhTy3wxoWUo6VmmTHtBYuSjEKbAUICvTrtLq07vlUEb8Ze D1M2W/R+wbeDt7d/s3DNRKi2Vli/mbijN/u9I=
One other thing to look at is batch writing:
http://wiki.eclipse.org/Optimizing_the_EclipseLink_Application_%28ELUG%29#How_to_Use_Batch_Writing_for_Optimization
Not sure if it will solve the memory issues, but may help.
./tch
On Mon, Oct 19, 2009 at 6:07 PM, David Parker <dap@xxxxxxxxxxxxxxxxxxxx> wrote:
> Yeah, we are using multiple transactions, i.e.
> get an EntityTransaction
> do work
> EntityTransation.commit()
> set the local tx to null
>
> On Oct 19, 2009, at 5:59 PM, Dave Brosius wrote:
>
> Is the import all in one transaction? I'd be curious if you broke up the
> import (even for a test) into multiple transactions whether the issue would
> go away.
>
> -----Original Message-----
> From: "David Parker" <dap@xxxxxxxxxxxxxxxxxxxx>
> Sent: Monday, October 19, 2009 5:51pm
> To: "EclipseLink User Discussions" <eclipselink-users@xxxxxxxxxxx>
> Subject: [eclipselink-users] memory usage
>
> I am running a long data import that uses eclipselink 1.1.2 for
> persistence. I see memory increasing slowly but surely as it goes
> along. The YourKit profiler does not identify anything as a link, but
> I do seem to have an increasing "retained size" for
>
> org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork
> [Stack Local]
>
> I see there is a clear method on TransactionWrapperImpl, but that does
> not seem to be in the JPA EntityTransaction API.
>
> Is there a best practice for long running data imports? Should I be
> clearing something?
>
> Thanks.
>
>
> =============================================
> David Parker
> dap@xxxxxxxxxxxxxxxxxxxx
>
>
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
> =============================================
> David Parker
> dap@xxxxxxxxxxxxxxxxxxxx
>
>
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>