views:

203

answers:

1

Lately I have been experiencing Eclipse Galileo (3.5) slowing down under Java 1.5b12 OR Java 1.6b10, every 10 to 15 minutes for about 30 seconds, it hits a 90-95% CPU load. The progress view shows nothing, however.

I'm suspecting a plugin is causing issues, but what I'd need is some tool or plugin to monitor Eclipse for what it is doing during those spikes.

Does such a plugin or tool exist?


Edit #1: added details about Eclipse version and Java version (d'uh, sorry)

+2  A: 

If you have the right eclipse.ini, you can then monitor an eclipse session with JConsole.

I had the same issue with old eclipse3.4 or 3.4.1 installation. In both cases, switching to eclipse3.5 with the latest JDK solved the problem.

VonC
info on what the "right eclipse.ini" is would be appreciated, sounds great.
Epaga
ahh...now I get it, the links on the numbers are links to eclipse.ini's. Thought they were links to the Eclipse pages. :D
Epaga
Thanks, I will be trying this and see if it helps (I also never tried build 1.6b16 yet).
Epaga
Updating to 1.6b16 really helped - the slowdowns went away, thanks!
Epaga
FYI: jvisualvm can watch an eclipse without any tinkering. Does your ini file expose additional information relevant for surveillance?
Thorbjørn Ravn Andersen
@Thorbjørn Ravn Andersen: yes: `-Dcom.sun.management.jmxremote` registers the JVM instrumentation MBeans and publishes the RMI connector via a private interface to allow JMX client applications to monitor a local Java platform, that is, a JVM running on the same machine. See http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html
VonC
See also http://stackoverflow.com/questions/516142/does-java-6-open-a-default-port-for-jmx-remote-connections
VonC