I have finally found time to write a small tool which can help profiling Java applications.
Its name is threadTop and it connects to your application via JMX.
It can measure
- thread contention
- thread CPU usage
I think it can be very useful when combined with jstack.
Waiting for your feedback :