[see JavaProfilers]
http://www.alphaworks.ibm.com/tech/jinsight
I have found Jinsight from alphaworks (http://www.alphaworks.ibm.com/tech/jinsight) to be a good tool for profiling Java code. The trick is to establish small test cases and loop over them many times to wash out the effects of any dynamic optimizations that may be going on. [moved here from ProfileFirst]
Back to EarlyProfiling