With Netbeans it is easy to launch your JUnit tests with the Profiler. You just have to click on the file in the "Projects" Tag and choose "Profile File" (this works only in non-EJB-projects :-(). The profiler will be launchend and executed with all unit tests in the chosen class. It is fast and convenient way to find potential hotspots in advance. It is hard to find memory leaks this way, but you can check the performance of your algorithms... The profiler looks like this.
airhacks.fm the podcast:
Stay in touch: airhacks.news.