[ajug-members] JPA/Hibernate OutOfMemoryException
John Camerin
john.camerin at gmail.com
Tue Nov 7 11:38:35 EST 2006
Use jvmstat to make sure you know where you are running out of memory. The
cause may not be that the total heap size is not large enough
On 10/23/06, J. Talafous <jtalafous at gmail.com> wrote:
>
> I'm writing a thick client (pharmaceutical/scientific) using JPA with
> Hibernate as the provider and have been quite successful using this
> article as a guide:
>
>
> http://today.java.net/pub/a/today/2006/06/08/more-ejb3-persistence-api-for-client-side-developer.html
>
> Unfortunately, when I scale up, I am finding that Hibernate is running
> out of heap space when I EntityManager.persist() the entire object
> graph that I have built in my thick client, even with -Xmx1500m, etc.
> All works quite well in smaller object graphs.
>
> Since the whole reason I am using JPA is to avoid dealing with a
> database, I can bet that I am not using JPA/Hibernate efficiently.
> For example, I am cascading everything, and wonder if that is causing
> it. Any links, ideas, etc. in getting better memory usage would be
> greatly appreciated. Thanks in advance.
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20061107/f6850ec0/attachment.html
More information about the ajug-members
mailing list