GWT Server Memory Leak

204 views
Skip to first unread message

Aldo Neto

unread,
Jul 26, 2012, 9:54:36 PM7/26/12
to google-web-toolkit
Hi,

I'm deploying my app in a local webserver and I'm experiencing a Memory Leak. I analysed the heap with the jmap/Eclipse Memory Analyzer Tool and apparently the objects returned to the client are not being freed. I'm closing all Entity Managers after using them in a search (for instance), but it seems that the objects are still being referenced. Is there any configuration or specific method that I must call in order to get the objects freed?

Thanks,
Aldo

Thomas Broyer

unread,
Jul 26, 2012, 10:01:37 PM7/26/12
to google-we...@googlegroups.com, google-web-toolkit
GWT-RPC or RequestFactory? Which version of GWT? What are they referenced from?

Aldo Neto

unread,
Jul 26, 2012, 10:14:19 PM7/26/12
to google-we...@googlegroups.com
Request Factory. GWT 2.3. 

Last question I didn't understand correctly, but after analyzing the heap dump I saw many entities still present in memory. Apparently the entity manager didn't release them completely, although I'm calling em.close() every time.

Tks for you reply.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oAyEPChLO_gJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Thomas Broyer

unread,
Jul 27, 2012, 7:21:53 AM7/27/12
to google-we...@googlegroups.com


On Friday, July 27, 2012 4:14:19 AM UTC+2, Aldo wrote:
Request Factory. GWT 2.3.

This is a known issue then, which has been fixed in 2.4: http://code.google.com/p/google-web-toolkit/issues/detail?id=6193
 
Last question I didn't understand correctly, but after analyzing the heap dump I saw many entities still present in memory. Apparently the entity manager didn't release them completely, although I'm calling em.close() every time.

I bet they're referenced from map entries, themselves referenced from the WeakMapping class. This is what I wanted to check with the last question.

lucyjava

unread,
Jan 11, 2016, 11:04:37 AM1/11/16
to GWT Users

We have very similar memory leak symptom as described in this post and the bug6193, although we are using GWT 2.6.1, request factory, hibernate, production mode. Please see the screenshot of the heap dump analysis, it is showing the object reference pattern as WeakMapping->ProxyAutoBean->JsonSplittable, is there a fix in the latest GWT code that might address this issue?
Reply all
Reply to author
Forward
0 new messages