Re: Memory leak (kind of) in ERXObjectStoreCoordinatorSynchronizer
Benoit Havret <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
I've run into this problem when I was inserting a lot of data into DB from csv files. Even though I changed EC periodically my app would eventually crash after an outOfMemmoryError... Memory was being filled by snapshots of objects that were never freed. My solution to this problem is to create a new objectore manually and then remove this objectStore from the synchronizer. ERXObjectStoreCoordinator objectStore = new ERXObjectStoreCoordinator( true); ERXObjectStoreCoordinatorSynchronizer.synchronizer().removeObjectStore( objectStore); Benoit ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ Wonder-disc mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wonder-disc