Persisted object when closing MPart ? [message #1730528] |
Tue, 26 April 2016 09:56  |
Eclipse User |
|
|
|
Hello,
I have a big application which display biological datasets (i.e. bacterial genomes). When one of my Mpart is created it creates an object named Track which take 2Go of RAM memory.
When the MPart is removed and hides, the object Track still persist and the memory is not liberated by the garbage collector. Even if I specifically mention Track = null; It never triggers the garbage collection.
Any idea why my objects persist in memory like that ?
Here a summary of my MPart:
public class GenomeTranscriptomeView {
private TracksComposite tracksComposite;
private Track track;
private ArrayList<String> bioCondNames;
private Genome genome;
@Inject
EPartService partService;
@Inject
MPart part;
@ Inject
@ Named (IServiceConstants.ACTIVE_SHELL)
private Shell shell;
@Inject
public GenomeTranscriptomeView(){
}
@PostConstruct
public void createPartControl(Composite parent) {
/*
/ Create the MPart and inititate the object Track = 2Go in memory
*/
}
@PreDestroy
public void preDestroy(){
track = null;
tracksComposite.dispose();
partService.hidePart(part, true);
}
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24972 seconds