Java Heap Space and RAP [message #650033] |
Fri, 21 January 2011 09:09  |
Eclipse User |
|
|
|
Hi,
i have big problems with my Java Heap Space and my RAP Application. The Heap Space grows on each click. Is there a chance to free memory. I set erery widget a user need in a self implemented session. The session are in a ArrayList. If the user is inactive for more than 30 minutes i remove the session from the session ArrayList. But there is no positive memory effect.
Thank for your help
Tobias
|
|
|
Re: Java Heap Space and RAP [message #650119 is a reply to message #650033] |
Fri, 21 January 2011 14:20  |
Eclipse User |
|
|
|
Hi Tobias,
if you suspect your application to leak memory, you should first analyze
it with a suitable tool. I can recommend VisualVM, a simple tool shipped
with the Hotspot JVM, that let's you connect to your running VM, create
and analyze heap dumps. For advanced heap dump analysis, you can also try
the Eclipse Memory Analyzer (MAT).
When you find objects that should have been garbage collected already,
check which other objects are still referencing them. Trying to fix a
memory leak without exactly understanding it will most likely not work.
Hope this helps, Ralf
--
Ralf Sternberg
Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.10554 seconds