Jerome Cance
Jerome Cance

Reputation: 8183

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 ?

Upvotes: 3

Views: 4666

Answers (2)

aviad
aviad

Reputation: 8278

I can recommend 2 things:

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

Good luck!

Upvotes: 6

Ingo Kegel
Ingo Kegel

Reputation: 48015

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

Upvotes: 1

Related Questions