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

  • SEARCH
  • Home
  • 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 6192833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:00:47+00:00 2026-05-24T03:00:47+00:00

We have a GWT based application deployed on Tomcat. Every other day the application

  • 0

We have a GWT based application deployed on Tomcat. Every other day the application crashes with OutOfMemoryException. So i have started taking the heap dump of the application when it is close to using maximum allocated memory.

The behavior of application is the following,

  1. User Logs in to the application
  2. Enters input to the application which is to be ananlyzed on the server using a cluster setup.
  3. The client polls the server every 15 seconds for the status of the job and updates the UI controls. The polling is done using requestfactory calls pulling some data from server.
  4. If the job is done , we display the results to the user using a flextable. There can be around 1000 rows with 6 columns.

Heap Dump,

We took a heap dump of the tomcat process using jmap to see what is holding on to the memory. The following pictures are taken using Eclipse Memory Analyzer with the heap dump.

Overview of the heap dump

Domiator Tree

Dominator Tree

Expanded dominator tree

We can see that there are lots of hashmap entries being kept in the heap with retained size of 25k and there are about 6 million of them.

Questions:

  1. com.google.gwt.core.client.impl.WeakMapping shows shallow heap of 16
    bytes but the retained heap is almost all the memory we allocated
    for the application.
  2. Is it because we are polling the server every 15 seconds and retrieving data which is somehow being referenced and not GCed.
  3. How do we unreference these hashmap.
  4. Is it anything completely different from the scenarior mentioned here.

We have so far used jconsole, jprofiler, MAT, jhat in analyzing the application. And we have no clue where the issue.

Appreciate your help.

  • 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-05-24T03:00:48+00:00Added an answer on May 24, 2026 at 3:00 am

    There was a memory leak in WeakMapping which has been fixed in trunk and the 2.4 branch.

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

Sidebar

Related Questions

I have a GWT based application. I want to add access control to it.
I have a couple of questions regarding a modular GWT based application framework. I
I have a GWT application where users keep the browser based side of the
I have a basic GWT Maven project going. I added SmartGWT and started playing
I am new to GWT. I have developed a GWT application in version-1.6.4 and
We have a GWT app that has multiple screens, based off of a menu.
When I try to terminate my GWT based web application from within Eclipse ,
I have gwt web project, which must use application.properties (on client side) loaded as
Having just wrapped up a GWT-1.5 based project, I'm taking a look at what
We are developing a web based application on glassfish V3. We have 2 application

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.