[oops, forgot to send a list copy]
Begin forwarded message:
> From: Andrus Adamchik <andru..bjectstyle.org>
> Date: April 6, 2004 3:19:33 PM EDT
> To: "Michele Cuozzo" <miccu..csys.it>
> Subject: Re: java.lang.OutOfMemoryError
>
> Hi,
>
> You don't provide any details of your application. So I assume this is
> Cayenne 1.0.* and you use DataContext to read data. Here is a few
> ideas.
>
> You should start by increasing the JVM heap size (e.g.: -Xms256m).
>
> Also keep in mind that DataContext caches all its objects. So when
> processing a batch of objects, do a commit every once in a while (e.g.
> every 5000 objects or something) and instantiate a new DataContext,
> letting the old one to be garbage collected. From my experience and
> earlier messages on cayenne-user I can tell that Cayenne can handle
> many more objects in memory without cleanup.
>
> Hope this helps.
>
> Andrus
>
> On Apr 6, 2004, at 12:41 PM, Michele Cuozzo wrote:
>
>> Hi,
>> first of all complimetns for your work that's very useful...
>>
>> I'm using the cayenne framework for developing an application for
>> manuscripts cataloguing, the application db was developed using your
>> modeler...
>>
>> I'm importing data from severals access databases and merging it in
>> the modeler generated database, my problem is that when the number of
>> imported records grows ( ~ thousands ) I get
>> a java.lang.OutOfMemoryError...
>>
>> What can I do,
>> please help me
>>
>> thanks in advance for your courtesy
>>
>> Michele Cuozzo
>> Advanced Computer Systems S.p.A.
>> Multimedia Division
>> Via della Bufalotta, 378
>> 00139 Rome (Italy)
>>
>> Tel. +39 06 87090517
>> e-mail m.cuozz..csys.it
>> web http://www.acsmultimedia.com
>
This archive was generated by hypermail 2.0.0 : Tue Apr 06 2004 - 15:20:15 EDT