Overriding detach method and memory increasing

Please give sample code for detach method for my vaadin application. I have some big problem in memory increasing whenever clicking the tree item which loads
form for every click .

          I have used visualvm and char[ ]

, byte
creating more instances . I have reduced somewhat . But still my system memory is increasing 20MB after clicking all the Tree item.

  I have increased heap size in tomcat .

please give some solution to solve this .

Thank you

Maybe you have forgotten to call super.detach() in your overridden method.