Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Memory consumption
Memory consumption [message #499528] Mon, 23 November 2009 09:08 Go to next message
David CHAUTARD is currently offline David CHAUTARDFriend
Messages: 102
Registered: July 2009
Senior Member
Hello,
I have a problem of memory consumption in my RCP.
When I launch my application, the memory consumption is about 100Mo, but during its used, it can rise to 600Mo, and it never decreases after.

I would like to know if it is possible to deallocate memory and how, in order to decrease memory consumption?

Thanks for your help.
David.
Re: Memory consumption [message #499529 is a reply to message #499528] Mon, 23 November 2009 09:23 Go to previous messageGo to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
You likely have a memory leak somewhere; some static variable holding a pointer to something for example.

You may need to get a profiling tool (like Jprofiler) to find the objects that are in memory and why they are there.


Re: Memory consumption [message #501365 is a reply to message #499528] Tue, 01 December 2009 23:10 Go to previous messageGo to next message
Christian is currently offline ChristianFriend
Messages: 72
Registered: July 2009
Member
David CHAUTARD schrieb:
> Hello,
> I have a problem of memory consumption in my RCP.
> When I launch my application, the memory consumption is about 100Mo, but
> during its used, it can rise to 600Mo, and it never decreases after.
>
> I would like to know if it is possible to deallocate memory and how,
> in order to decrease memory consumption?
>
> Thanks for your help.
> David.
>

Probably you have some kind of Packratting problem.
Following steps may help you to find the culprit for your problem.

Connect to your program with jconsole
dump the heap to a file xyz.hprof (MBeans -> com.sun.management ->
HotSpotDiagnostics -> Operations)


then use Eclipse MAT ( http://www.eclipse.org/mat/ ) to analyze the heap
to find some object that dominates large ammounts of data...
Re: Memory consumption [message #501388 is a reply to message #499528] Wed, 02 December 2009 05:46 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Have a look at the MAT project. Little intro:
http://www.vogella.de/articles/EclipseMemoryAnalyser/article .html

David CHAUTARD wrote:
> Hello,
> I have a problem of memory consumption in my RCP.
> When I launch my application, the memory consumption is about 100Mo, but
> during its used, it can rise to 600Mo, and it never decreases after.
>
> I would like to know if it is possible to deallocate memory and how,
> in order to decrease memory consumption?
>
> Thanks for your help.
> David.
>
Re: Memory consumption [message #501875 is a reply to message #501388] Fri, 04 December 2009 09:16 Go to previous message
David CHAUTARD is currently offline David CHAUTARDFriend
Messages: 102
Registered: July 2009
Senior Member
Hello,
thanks for your answers.
I try to use Memory Analyzer (MAT), but I can't generate the .hprof file. I launch my product, with the VM arguments (Run configuration) :

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8084
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-XX:+HeapDumpOnOutOfMemoryError


Then I perform some actions in order to increase the memory consumption. I can see the consumption climbing from 200Mo to 570Mo in the Windows tasks manager, but no file is generated.

Did I forget something, what should I do to get this file?
Thanks,
David.
Previous Topic:Open a View
Next Topic:Add new plug-ins to a RCP
Goto Forum:
  


Current Time: Tue Mar 19 09:10:53 GMT 2024

Powered by FUDForum. Page generated in 0.02471 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top