wicket-dnd icon indicating copy to clipboard operation
wicket-dnd copied to clipboard

Ajax-replacing a element that is a DnD DragSource seems to leak memory?

Open d2a-raudenaerde opened this issue 6 years ago • 2 comments

Hi Sven,

I'm analysing the performance of our application, and it seems there is memory leaking. When trying to analyse in chrome developer tools what was going on, it seemed there was some leakage related to element that where marked as DragSource. I took two heap-snapshots. One before ajax-replacing a Component used as DragSource, and one after. There is a lot going on, but there is extra heap afterwards. The I removed the DragSource and tried again, resulting in a lot less extra memory. I'm not up-to-par yet analysing heap dumps in chrome, but maybe you an shed a light on what would 'leak' if a Component is replace by Ajax?

d2a-raudenaerde avatar Mar 16 '18 14:03 d2a-raudenaerde

Hi Rob,

does this happen regardless of any DnD? I.e. is it sufficient to replace markup containing a DragSource, or do you have to drag something before?

Sven

svenmeier avatar Mar 17 '18 15:03 svenmeier

I've tried with wicket-dnd-examples: Each click on one of the checkboxes updates markup with a DragSource and DropTarget.

With Chrome's memory tools I didn't notice any leaks.

svenmeier avatar Mar 19 '18 15:03 svenmeier