首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >异常:从线程“UncaughtExceptionHandler -9”中抛出java.lang.OutOfMemoryError

异常:从线程“UncaughtExceptionHandler -9”中抛出java.lang.OutOfMemoryError
EN

Stack Overflow用户
提问于 2015-08-07 22:34:42
回答 2查看 1.5K关注 0票数 2

我刚刚安装了spring-tool-suite-3.7.0.RELEASE-e4.5-win32-x86_64,运行sts-bundle\sts-3.7.0.RELEASE\STS.exe,然后运行sts-bundle\sts-3.7.0.RELEASE\exclepsec.exe

我遇到了内存不足的问题。轨迹中的启动错误:**

代码语言:javascript
复制
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.
org.eclipse.m2e.logback.configuration: Logback config file: C:\Users\sBriet\Docu
ments\workspace-sts-3.7.0.RELEASE\.metadata\.plugins\org.eclipse.m2e.logback.con
figuration\logback.1.6.1.20150625-2338.xml
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://935.fwk1294950326:1/org/slf4j/impl/Sta
ticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://935.fwk1294950326:2/org/slf4j/impl/Sta
ticLoggerBinder.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.ContextSelectorSta
ticBinder]
org.eclipse.m2e.logback.configuration: Initializing logback
Error while informing user about event loop exception:
Exception in thread "Thread-11"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler i
n thread "Thread-11"
Error while informing user about event loop exception:

**

我已经增加了STS.ini文件中的可用内存:**

代码语言:javascript
复制
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx1536m
-XX:MaxPermSize=512m
-Xverify:none
-Dorg.eclipse.swt.browser.IEVersion=10001

**

我怎样才能摆脱这个问题?首先,我不需要单击gui中的任何东西,内存不足在30秒后会自动出现。建议的解决方案"http://www.slf4j.org/codes.html#multiple_bindings“没有为这种情况提供任何解决方案。

EN

回答 2

Stack Overflow用户

发布于 2015-08-08 04:14:51

解决方案:必须使用jdk 8来解决这个问题。我不能让它在jdk 7上工作!

我运行(在一个超过1000行的150x30大命令窗口中):

eclipsec.exe -consoleLog

我得到了下面的错误(由其他人报告)。

代码语言:javascript
复制
> C:\sts-bundle\sts-3.7.0.RELEASE>eclipsec.exe -consoleLog
!SESSION 2015-08-07 15:48:30.291 -----------------------------------------------
eclipse.buildId=3.7.0.201506290652-RELEASE-e45
java.version=1.7.0_03
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -consoleLog

!ENTRY org.eclipse.fx.core 4 0 2015-08-07 15:48:37.928
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.fx.core [412]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"
  Unresolved requirement: Require-Bundle: org.eclipse.jdt.annotation; bundle-version="[2.0.0,3.0.0)"; resolution:="optional"
    -> Bundle-SymbolicName: org.eclipse.jdt.annotation; bundle-version="2.0.100.v20150311-1658"
   org.eclipse.jdt.annotation [421]
     Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"

    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!FrameworkEvent org.eclipse.fx.osgi.util 4 0 2015-08-07 15:48:37.999!消息ENTRY错误

票数 1
EN

Stack Overflow用户

发布于 2016-04-10 09:37:20

用ZendStudio (它基于Eclispe)得到这个问题

我删除了位于ZendStudio目录racine中的jre目录,zend确实正确地启动了,没有错误(它将在您的机器上使用jre安装,对于Linux是真的,不知道其他操作系统)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31880323

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档