Här finns en intressant artikel (del 1 av 2) om hur man hittar minnesläckor med hjälp av profileraren i NetBeans.