Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mat-dev] Eclipse

Hello,

This weekend I have started to use the tool of Memory Analyzer in Eclipse Classic 3.6.2, but I am having many problems with the execute.

1º) For start I have installed the tool of Memory Analyzer (Help -> Install new software...).
2º) Then I created a new Java Project.
3º) In the new Java Project, I have created a Class with this code:


    import java.util.ArrayList;
import java.util.List;
 
public class MemoryAnalicer {
           private static List<Integer> memoryLeakArea=new ArrayList<Integer>();
           public static void main(String [] args){
                       int iteration=0;
                       while(true){
                                  Integer increaseNumber=new Integer(iteration);
                                  memoryLeakArea.add(increaseNumber);
                                  iteration++;
                                  System.out.println(iteration);
                       }
           }          
}
4º) With this code I want detect the memory leaks that it generate with the execute, I know that with the Memory Analyzer it's possible
but I don't know how.


For this reason, I would like it to ask you if you can hep me with the problems that I have with Memory Analyzer.

Thanks so much for the answer,
Best regards,
Esteban.

Back to the top