Experiencing a memory leak with HasMany

35 views
Skip to first unread message

Jaakko Holster

unread,
Apr 11, 2013, 4:18:11 AM4/11/13
to batm...@googlegroups.com
Has anyone experienced memory leak with HasMany association? We have rather complex model with 10+ HasMany associations. Subsequent .load() calls returning an identical result set each increases memory consumption by several megabytes. E.g. after 50 .load() calls the total memory consumption of Chrome Renderer process has grown from initial ~150 megs to 300+ megs (and stays there even after GC cycle).

If we replace all HasMany associations with simple arrays or Batman.Sets (and change our code accordingly), no memory is anymore leaked (e.g. reloading identical result set doesn't increase heap size).

Any ideas? I played a bit with Chrome's Heap Snapshot but wasn't able to figure out the actual source of the leak.

Jaakko Holster

unread,
Apr 11, 2013, 4:21:53 AM4/11/13
to batm...@googlegroups.com
Additional info: the leak occurs with modern browsers (latest Safari, Chrome, Firefox) so it's no an IE issue.

Kristian Plettenberg-Dussault

unread,
May 8, 2013, 5:41:10 PM5/8/13
to batm...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages