Не знаю, где этот пост: там должен быть общим «Eclipse висячим» нитью!
Моя проблема заключалась в зависании Eclipse (в Windows) через некоторое время от нескольких минут до нескольких минут после запуска.
Глядя на файл журнала «workspace.metadata.log», я указал только в неправильном направлении (удаление случайных плагинов, на которые указывают стоп-трассы).
Я мог бы спасти себя много неприятностей, посмотрев сначала на EventVwr, так как оказалось, проблема разрешения в:
"%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache"
Здесь ошибка, которая появляется в EventVwr:
taskhost (2404) WebCacheLocal: An attempt to open the file
"C:\Users\Malcolm.Boekhoff\AppData\Local\Microsoft\Windows\WebCache\V01.chk"
for read/write access failed with system error 5 (0x00000005): "Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
в частности, проверьте разрешения на файл "V01.log":
icacls "%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache" /T
Исправить это, добавив себя с полным доступом:
icacls "%USERPROFILE%\AppData\Local\Microsoft\Windows\WebCache" /T /Q /C /GRANT "%USERDOMAIN%\%USERNAME%:F"
Дальнейшее чтение:
Вот неловкое список временных испорченные, что я пытался благодаря Google.Ни один из них не работал:
- Disable: "Code Recommendations"
- Disable: "General"."Notifications" (used to be under "Mylyn")
- Disable: "Install/Update"."Automatic Updates"
- Disable: "Java"."Code Coverage"
- Disable: "News": "Preferences"."General"
- Remove the "org.eclipse.rse.*.jar" files, except for "org.eclipse.rse.shells.ui_3.0.500.201403271554.jar", from the "plugins" directory.
- Remove all maven jars
- Remove all gradle jars
- Specify: "-Declipse.log.level=ALL" in VM args (I think I forgot to also specify "-debug")
- etc.
Если кому-то интересно, вот мое затмение командной строки:
start "eclipse" /max "c:\eclipse-jee-oxygen-1a-win32-x86_64\eclipse\eclipse" -nosplash -clean -consoleLog -debug -data "c:\eclipse-jee-oxygen-1a-win32-x86_64\workspace" -product "org.eclipse.epp.package.jee.product" -vm "c:/Program Files/Java/jdk1.8.0_121/bin/java" "-vmargs" "-Declipse.log.level=ALL" "-Xmx2048m"
Вот ява лог консоли, что вы видите, когда вы используете «бен/Java» (как выше) вместо "бен/javaw":
Install location:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/
Configuration file:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/configuration/config.ini loaded
Configuration location:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/configuration/
Framework located:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi_3.12.50.v20170928-1321.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.1.0.v20170516-1513.jar
eclipse.properties not found
Framework classpath:
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi_3.12.50.v20170928-1321.jar
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/
file:/c:/eclipse-jee-oxygen-1a-win32-x86_64/eclipse/plugins/org.eclipse.osgi.compatibility.state_1.1.0.v20170516-1513.jar
Debug options:
file:/c:/mcb/religare/work/.options not found
Time to load bundles: 32
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry aft
er the state location is initialized.
Starting application: 5075
org.eclipse.m2e.logback.configuration: Logback config file: C:\eclipse-jee-oxygen-1a-win32-x86_64\workspace\.metadata\.plugins\org.eclipse.m2e.logback.configura
tion\logback.1.8.2.20171007-0217.xml
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://1008.fwk985397764:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://1008.fwk985397764:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
org.eclipse.m2e.logback.configuration: Initializing logback
Application Started: 10507
# !SESSION 2017-10-20 13:07:49.562
# version: 1.1
# verbose: true
# The following option strings are specified for this debug session:
| main | 2017-10-20 13:07:49.562 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt t
o set focus during set focus for: [email protected]375 |
Кроме того, с помощью "-debug", вы получите файл "trace.log" в .metadata каталоге (но не файл ".log", даже с «ВСЕ»):
# !SESSION 2017-10-20 13:07:49.562
# version: 1.1
# verbose: true
# The following option strings are specified for this debug session:
| main | 2017-10-20 13:07:49.562 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]375 |
| main | 2017-10-20 13:09:47.775 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]cf |
| main | 2017-10-20 13:09:49.555 | org.eclipse.e4.ui.workbench | /debug | org.eclipse.e4.ui.internal.workbench.WorkbenchLogger | trace | 158 | Ignored attempt to set focus during set focus for: [email protected]cf |
Не могли бы вы pl. скажите мне больше? Я столкнулся с аналогичной проблемой, но не уверен, где найти каталог сессий, о котором вы упоминали. – shrini1000
Я обновил свой ответ, чтобы включить в него несколько подробностей о моей проблеме и особенностях ее исправления. Надеюсь, это поможет. –
@EricG, пожалуйста, скажите мне, где я могу найти каталог, мое затмение снова и снова зависло –