Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » JPA 1.2 Overhead
JPA 1.2 Overhead [message #654369] Tue, 15 February 2011 08:26 Go to next message
Eclipse UserFriend
Hi there!
I am doing a huge data import using jpa 1.2 and eclipselink and i have to estimate the required heap space.
is there any documentation or method of calculation of the overhead that is generated by jpa in comparison to pure jse classes?
Re: JPA 1.2 Overhead [message #654597 is a reply to message #654369] Wed, 16 February 2011 08:03 Go to previous messageGo to next message
Eclipse UserFriend
I would recommend you to write simple test (for example inserting 100000 rows) and monitor heap usage using jvisualvm (included in every recent JDK).
Re: JPA 1.2 Overhead [message #654918 is a reply to message #654369] Thu, 17 February 2011 10:46 Go to previous message
Eclipse UserFriend
Also ensure you disable caching for the import, enable batch writing if your database supports it, and ensure weaving is used.

Also don't do the whole insert in one transaction or one EntityManager, break it up into batches of say 1000.

Also consider the properties,

"eclipselink.persistence-context.persist-on-commit"="false "
"eclipselink.persistence-context.close-on-commit"="true"

If you are really adventurous you could also process multiple batches at the same time on multiple threads.
Previous Topic:EclipseLink & Cell Names with White Space
Next Topic:Incorrect PostgreSQL's BLOB support in EclipseLink JPA
Goto Forum:
  


Current Time: Fri Jul 25 17:55:54 EDT 2025

Powered by FUDForum. Page generated in 0.04496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top