facebook

slow restart after Eclipse crash

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #234833 Reply

    Mike Cico
    Member

    After a craash, or if eclipse gets deadlocked, when I restart it can take upwards of 1/2 an hour to restart it. I’ve removed the .lock file, but it seems like its doing some kind of rescanning of things in such situations.

    It doesn’t lock the CPU or anything, but it just takes forever. I’m not sure if it’s spinning at a low-frequency, or if it’s waiting on some other lock file in the workspace, or whatever.

    I’m using MyEclipse 4.0m2, on the GA release of Eclipse 3.1. But, this happened with earlier versions of Eclipse as well. It seems like it’s a general eclipse issue, not necessarilya MyEclipse issue.

    Thanks,

    Mike Cico

    #234834 Reply

    Brian Fernandes
    Moderator

    Mike, that is an enormous amount of time to start Eclipse.

    How are you starting eclipse, do you use any command line parameters?

    Please state your OS and JDK versions as well.

    Best,
    Brian.

    #234947 Reply

    Mike Cico
    Member

    Here’s my shortcut args:

    C:\eclipse3.1\eclipse\eclipse.exe -vmargs -Xmx512M -Dosgi.splashLocation=”C:\Program Files\MyEclipse40For31\MyEclipseSplash.bmp”

    Again, it only seems to happen after a crash, or if it gets hung and I have to kill it and restart it. It’s something I had an issue with in 3.0.x as well. What’s a good debug switch to turn on so I can track what’s happening during startup?

    #234955 Reply

    Brian Fernandes
    Moderator

    Mke,

    You forgot to mention your OS and JDK.

    I don’t know what to make of the issue yet, do you have many / large projects in your workspace and is Build Automatically turned on (it usually is)…

    What happens just before the crash, is there a common reason due to which it crashes? Try adding the -clean switch to the shortcut just once (remove it for subsequet runs), that could help clear things up.

    Let us know how things turn out,

    Best,
    Brian.

    #234956 Reply

    Scott Anderson
    Participant

    Mike,

    Eclipse might be thrashing around trying to recover the workbench state from the large number of cached config files it keeps. There’s really no way to know. However, the next time it crashes, I’d try restarting it by adding the -clean option (eclipse.exe -clean …) to see if just telling it to rebuild the plugin cache and not worry about what’s already there will speed things up.

    #234981 Reply

    Mike Cico
    Member

    OS is WinXP, using JDK 1.5_03

    It rarely actually crashes, usually it gets hung up doing that makes me have to kill it…the “something” I haven’t isolated yet.

    I do have one really large project. In general, I and my co-workers have found that the initial rampup of a new project with a large src base is very time consuming with Eclipse in general. I’ve found that it’s best to create an empty project and create the source path later where I can add the proper includes/excludes, etc.

    But, once the intial setup is done, and the initial Type indexing is done, Eclipse is very responsive, and quick to start up.

    And no, re-organizing the src area is *not* an option ;-).

    Thanks guys, I’ll try to use the -clean option next time I have to kill and restart…

    Mike

    #235028 Reply

    Scott Anderson
    Participant

    Mike,

    One other thing that helps in general is to close any projects you’re not actively developing. That makes them ‘invisible” to Eclipse so they won’t get rebuilt during a workspace rebuild. So, if you’ve got a bit project that you rarely work on, it might make sense.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: slow restart after Eclipse crash

You must be logged in to post in the forum log in