Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9198987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:25:10+00:00 2026-06-17T22:25:10+00:00

Can any one please explain possible ways to happen memory leaks while using GWT

  • 0

Can any one please explain possible ways to happen memory leaks while using GWT in development mode as well live mode?

I refer the following question

How to resolve a memory leak in GWT?

as found the below link in one of the answers ..

https://developers.google.com/web-toolkit/articles/dom_events_memory_leaks_and_you

They are mostly deal with Widget creations and browser events. is there any other possible block holes to happen memory leaks like while doing RPC’s ..using much rendering methods ..etc etc??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:25:11+00:00Added an answer on June 17, 2026 at 10:25 pm

    The link you listed talked about how GWT avoids the kinds of memory leaks that browsers are known for – cases where nothing anywhere is referencing the dom element or the widget, but the browser still won’t free it from memory. The only case you need to be careful for is when you create your own widgets that hold other widgets – in that situation you need to be careful about invoking attach and detach methods on each child. Sticking with known-good containers and panels will totally save you from this, as well as never invoking attach or detach methods directly.

    Beyond that, memory leaks are just like every other kind of development – we need to be careful about keeping references of things you aren’t using any more. I disagree with some of the answers in the linked question – Java memory leak tools aren’t great at helping to track those objects over Dev Mode, since they think about the JVM and Java objects, not Browsers and JavaScript.

    Instead, compile with style set to PRETTY, and use a tool like Chrome’s Inspector. That can be used to look at objects that are consuming memory, and tell what is holding on to them. The strategy is the same as with any other heap analysis tool (JProfiler, VisualVM, etc). And the standard rules for writing code apply – if you are holding on to an object you don’t need, null it out or remove it from the collection that is holding it. Clearly if you still need it, keep it – and instead something higher up should letting go of that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How does Python compare string and int? Can any one explain the
Can anyone please explain me the use of development certificates and how I can
Can anyone please explain how to replace the values of one column with the
can anyone please explain the concept of dispatcher, is it one dispatcher per thread
can any one explain this? Overload resolution and partial ordering are used to select
Is there any possible way when in one file - please note, just one
Possible Duplicate: Java Generics Hi, Can anyone please explain the difference of the three
Can any body help me to explain the impacts of PRAGMAS while i am
Can anyone please explain me what delegateEvents in backbone.js does? The documentation did not
Can anyone please explain or suggest some good tutorial for the method of matrix

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.