4

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)

Epaga
  • 38,231
  • 58
  • 157
  • 245
  • 3
    Eclipse is the Borg of the IDE world - it assimilates all projects and adds their distinctiveness to its collective. It's beginning to achieve consciousness. – Pete Kirkham Sep 11 '09 at 08:20
  • 1
    Yeah I almost feel like watching my network performance to make sure my Eclipse isn't starting to work together with other Eclipses to take over the world... – Epaga Sep 11 '09 at 08:22
  • What version of eclipse/JDK are you using? – VonC Sep 11 '09 at 08:23
  • You did see the two links for the "right eclipse.ini", right? I will edit my answer to make them more visible though. – VonC Sep 11 '09 at 08:30
  • Note: the exact version (build) of JDK6 used to launched eclipse is important. I recommend the latest one (6b16). More details in the "eclipse.ini 3.5" link mentioned in my answer. – VonC Sep 11 '09 at 08:34
  • Glad this new setup works for you. I believe this is the *combination* of the JDK *and* the `eclipse.ini` settings that make eclipse runs so well (or at least much better). – VonC Sep 11 '09 at 14:13
  • sounds like a garbage collection piling up... glad the latest JDK fixed it – Thorbjørn Ravn Andersen Sep 13 '09 at 10:32

1 Answers1

3

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • info on what the "right eclipse.ini" is would be appreciated, sounds great. – Epaga Sep 11 '09 at 08:27
  • 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 Sep 11 '09 at 08:32
  • Thanks, I will be trying this and see if it helps (I also never tried build 1.6b16 yet). – Epaga Sep 11 '09 at 08:37
  • Updating to 1.6b16 really helped - the slowdowns went away, thanks! – Epaga Sep 11 '09 at 14:11
  • FYI: jvisualvm can watch an eclipse without any tinkering. Does your ini file expose additional information relevant for surveillance? – Thorbjørn Ravn Andersen Sep 13 '09 at 10:24
  • @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 Sep 13 '09 at 10:33
  • See also http://stackoverflow.com/questions/516142/does-java-6-open-a-default-port-for-jmx-remote-connections – VonC Sep 13 '09 at 11:04