Hello Witek,
What version of TopLink Essentials are you using. There have been a couple memory issues diagnosed and resolved. Are you clearing the EntityManagers after each transaction? What does your application code look like, what sequence of JPA calls are made when merging/persisting Entities? Do the memory problems exist for both merging and persisting? Is the merge() api used to 'persist' the Entities?
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]
http://forums.java.net/jive/thread.jspa?messageID=203657