Idea 6.0.5: cpu-bound on code-surround-with in a JSP

I was fixing client's code and doing a simple code-surround-with in a JSP caused a CPU-bound condition for a 15+ seconds or so.

3 comments

To get the developers what they need to analyze the problem, take a cpu snapshot from inside IDEA during that slowdown and attach it to a new issue you create.

0

I'd love to do that if I knew how. The CPU snapshot button is not there on the official release. How do I get the snapshot?

0

Here's what you need to know:

Open IDEA_HOME/bin/idea.vmoptions (idea.exe.vmoptions on Windows), add
the following line at the bottom:
-Xrunyjpagent:port=10100

Then run IDEA and you should notice 2 new buttons in the toolbar, one for taking CPU snapshot, another one for memory snapshot. Press the CPU button and then perform action which takes a lot of CPU resources on your machine. When finished press this button again to stop recording, save snapshot.

0

Please sign in to leave a comment.