Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse freezes in Windows 7

Apparently after aplying some latest updates of Windows 7, Eclipse stopped working properly. It freezes very often for 30 second to 2 minutes. In fact the system also freezes, for example the music that is played in WMP stops, loading web pages stops, etc.

I tried it first with the newest Eclipse Kepler and thought it was only the new version but then fell back to Juno and the same thing happens.

My JRE is Java 7u45 but I also tested it with 7u7 and no changes.

It seems that in the time of freeze some I/O operations are taking place as the hard disk light flickers constantly.

It totally prevents from doing anything both in Eclipse as well as in the system itself.

Has anybody experienced such a problem lately? I have googled it up and all I found were some bug reports for Eclipse and 64-bit version of Windows.

EDIT: I tested it on a different machine with almost the same configuration and it works impeccably. Any idea how I can check on my machine, what causes the problem?

Still it happens only when I run Eclipse I have no other problem with any other application.

EDIT: I ran the Eclipse with -consolelog and here is the stack trace of exception thrown during the freeze.


2013-11-15 12:31:06,480 [main] INFO  c.n.h.c.p.n.NettyAsyncHttpProvider - Number of application's worked threads is 8
2013-11-15 12:32:56,300 [Recommenders-Dependency-Info-Service-0] ERROR o.e.r.i.r.p.ClasspathEntryInfoProvider - Extracing jar information failed with exception.

java.lang.RuntimeException: java.io.IOException: Die Anforderung konnte wegen eines E/A-Gerõtefehlers nicht ausgef³hrt werden at org.eclipse.recommenders.utils.Throws.throwUnhandledException(Throws.java:47) ~[na:na] at org.eclipse.recommenders.utils.Fingerprints.internal_sha1v2(Fingerprints.java:59) ~[na:na] at org.eclipse.recommenders.utils.Fingerprints.sha1(Fingerprints.java:64) ~[na:na] at org.eclipse.recommenders.utils.archive.ArchiveDetailsExtractor.createFingerprint(ArchiveDetailsExtractor.java:56) ~[na:na] at org.eclipse.recommenders.internal.rcp.providers.ClasspathEntryInfoProvider$3.run(ClasspathEntryInfoProvider.java:247) ~[na:na] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.7.0_45] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_45] at java.lang.Thread.run(Unknown Source) [na:1.7.0_45] Caused by: java.io.IOException: Die Anforderung konnte wegen eines E/A-Gerõtefehlers nicht ausgef³hrt werden at java.io.FileInputStream.readBytes(Native Method) ~[na:1.7.0_45] at java.io.FileInputStream.read(Unknown Source) ~[na:1.7.0_45] at com.google.common.io.ByteStreams.readBytes(ByteStreams.java:708) ~[na:na] at com.google.common.io.ByteStreams.getDigest(ByteStreams.java:760) ~[na:na] at com.google.common.io.Files.getDigest(Files.java:642) ~[na:na] at org.eclipse.recommenders.utils.Fingerprints.internal_sha1v2(Fingerprints.java:57) ~[na:na] ... 8 common frames omitted

!ENTRY org.eclipse.m2e.logback.appender 4 0 2013-11-15 12:32:56.310 !MESSAGE Extracing jar information failed with exception. 2013-11-15 12:34:44,130 [Recommenders-Dependency-Info-Service-0] ERROR o.e.r.i.r.p.ClasspathEntryInfoProvider - Extracing jar information failed with exception.

like image 803
Jagger Avatar asked Nov 04 '13 21:11

Jagger


1 Answers

That German message could indicate serious issues. Encountered similar issues with multiple machines recently.

The checklist was like this:

  • Make sure, that files are backed up
  • Before further investigation, a quick hard disk health test
    • Check the health diagnostic (SMART) data of your hard drive, using a tool like HD Tune
      • If there are errors, especially the ones related to SSD wear level or pending/replaced sectors, your hard drive is basically saying goodbye
  • The file system may be corrupted
    • Check & fix the file system (if required at boot time)
    • Independent of checkdisk results, one could use FSC to verify system files
  • Check eclipse configuration
    • Reduce available concurrency and resource allocation settings of indexer plugins in Eclipse to a minimum
    • Disable indexing plugins
    • Test with an out of the box eclipse installation
    • One may delete local maven repositories and other temporary or intermediate storage locations
  • Check for IO overload.
    • Have a look at the disk view in the resource monitor (accessible via taskmanager) for identifying IO intensive processes
      • Do you have many files checked out and running something like Tortoise Shell-Extensions?
        • Try to work in Eclipse without the Windows Shell & Explorer: Kill all explorer.exe instances via the task manager (CTRL+Shift-ESC). One can run 'explorer' again from within the task manager, if needed.
          • If no problems occur, remove or reconfigure such shell extensions, reboot and continue as normal (here, I got one problem solved)
    • Disable on access anti virus protection temporarily, perhaps after a full scan
    • Stop and/or Uninstall other IO intensive background processes
  • There could be driver problems
    • Try updating or downgrading to a recently replaced storage driver (or the driver shipped with Windows, if possible)
  • Boot and test in safe mode (press F8 before Windows splash screen on startup)
    • If you can work without problems here, the problem is most likely caused by services or other software components, something that has been disabled in safe mode (one would need to do further investigation regarding problematic software)
  • Check for data transfer errors or other hardware failures
    • Check (pull & plug) the cables
    • Test the disk at other connectors (or better other controllers) or in another computer
    • Copy your working directories onto another physical drive (perhaps an external disk) and see, if you can work there without errors
    • 'offline' memory testing using a tool like: memtest86+
like image 102
Sam Avatar answered Nov 12 '22 23:11

Sam