users@glassfish.java.net

Re: Glassfish v 3 (3.0.1 b21 win xp) potential memory leak persisting objects

From: <glassfish_at_javadesktop.org>
Date: Thu, 17 Jun 2010 11:05:27 PDT

After the batches and EM.flush() call EM.clear() to remove the managed objects from the persistence context.

And for cache settings use @Cacheable(false) or eclipselink.cache.shared.default=false.
Setting the cache type to NONE is not recommended.
[Message sent by forum member 'gyorke']

http://forums.java.net/jive/thread.jspa?messageID=474692