How to resolve a memory leak in GWT?

后端 未结 2 1346
余生分开走
余生分开走 2020-12-30 17:24

What\'s the best way to resolve a GWT memory leak due to the fact that GWT is compiled in javascript and code is written in JAVA ?

相关标签:
2条回答
  • 2020-12-30 17:52

    In GWT development mode you can use a Java profiler such as VisualVM or JProfiler (disclaimer: JProfiler is developed by my company) to analyze the heap.

    The GWT development mode should show the same leak as well, except for the less likely case that the leak related to the Javascript translation (which would then be a bug in GWT).

    0 讨论(0)
  • 2020-12-30 18:07

    I can recommend 2 things:

    1. Read this article
    2. Nullify all references when you done with them.

    Good luck!

    0 讨论(0)
提交回复
热议问题