How to resolve a memory leak in GWT?

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 ?

Answers:

Answer

I can recommend 2 things:

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

Good luck!

Answer

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).

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.