Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Finding memory leaks.

  • 06-06-2008 11:51AM
    #1
    Registered Users, Registered Users 2 Posts: 427 ✭✭


    Hey
    I have memory leaks in a very large program. Can anyone suggest a decent profiling tool which I can use to spot them?
    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 151 ✭✭viboy


    What language ?
    The below is based on my experience, with an extremely large c++ application.

    Rational / IBM Puirfy is excellent at this. Unlike some other tools it does not require wholesale changes to the source code. This is commerical. but not too costly.

    Under i386 linux valgrind seemed to be okay.


  • Registered Users, Registered Users 2 Posts: 427 ✭✭Kevo


    Thanks for the reply.

    It's written in Java and unfortunately I am not able to spend any money. Any ideas?


  • Registered Users, Registered Users 2 Posts: 391 ✭✭Dopey


    Hi Kevo,

    JProfiler is good at this although I've heard that YourKit is better.

    You can get trial licenses for both.

    http://www.ej-technologies.com/download/jprofiler/trial.php
    http://www.yourkit.com/download/

    Good luck.


  • Moderators, Science, Health & Environment Moderators Posts: 10,093 Mod ✭✭✭✭marco_polo


    Could try jvmstat from sun.

    http://java.sun.com/performance/jvmstat/

    It also comes as a module that can be integrated with Netbeans IDE.

    http://profiler.netbeans.org/


  • Registered Users, Registered Users 2 Posts: 6,513 ✭✭✭run_Forrest_run


    JProfiler is quite good, you can download a 10 day evaluation version. Also if you are using Eclipse as your IDE it will install the necessary plugins for you.

    Also if you have any SWT widgets in your application you can use SLEAK for checking for widgets not disposed of.


  • Advertisement
Advertisement
Advertisement