I have found very nice profiler, included into jdk.
You can find it in bin directory.
It's called jvisualvm.
I have web application on tomcat. I start it via Idea.
I can connect to this application and monitor heap size and other parameters.
But if I try to profile it, it crashes.. See attached file with the log.
I tried to start tomcat as standalone application and everything is ok: profiling is working.
Did anybody have the same problem?