I've experienced this at least 20 times this week. Suddenly, the CPU usage reaches 100% and it stays there, Memory usage inside Idea gets close to the maximum allowed by Xmx. The memory usage reported by the task manager for idea.exe is huge (see below) and keeps increasing.
vmoptions example: Xmx 350m
idea.exe private bytes 514656
virtual size 697812 (earlier today it was even more than 900MB!)
Most of the time it happened while returning to Idea from another application and attempting to fix a line with invalid code.
For instance, I had something like:
Foo foo = Foo.createFoo(param1, param2, Constants., param4);
I pressed Ctrl-Space to get the list of public fields in Constants and then the heap jumped from 198 to 350MB, the CPU to 100%.
I tried each time to get a cpu/mem snapshot, but Idea and the entire system are unresponsive and after 10 minutes of so, I killed idea.exe. The zip files with the snapshots were not finished and thus they were invalid.
I'm running it on a Dell laptop, 2GB of RAM, Win XP Pro. Idea is launched with jdk1.6.0_02
Needless to say, it's very annoying. Yesterday I had to kill it more than 10 times.
Any help would be appreciated.