无法接受连接。:java.lang.OutOfMemoryError:超出GC开销限制
我在JBossIDE和服务器JBoss7.1中发现以下错误无法接受连接。:java.lang.OutOfMemoryError:超出GC开销限制,java,spring,ejb,Java,Spring,Ejb,我在JBossIDE和服务器JBoss7.1中发现以下错误 14:42:35,330 WARN [org.hornetq.core.remoting.server.impl.RemotingServiceImpl] (hornetq-failure-check-thread) Java heap space: java.lang.OutOfMemoryError: Java heap space 14:42:35,375 WARNING [org.jboss.netty.channel.so
14:42:35,330 WARN [org.hornetq.core.remoting.server.impl.RemotingServiceImpl] (hornetq-failure-check-thread) Java heap space: java.lang.OutOfMemoryError: Java heap space
14:42:35,375 WARNING [org.jboss.netty.channel.socket.oio.OioServerSocketPipelineSink] (Old I/O server boss ([id: 0x0095146e, localhost/127.0.0.1:6455])) Failed to accept a connection.: java.lang.OutOfMemoryError: GC overhead limit exceeded
14:42:43,397 ERROR [org.hornetq.utils.OrderedExecutorFactory] (Thread-0 (HornetQ-server-HornetQServerImpl::serverUUID=6ba001c9-31f8-11ea-a949-4437e6a1cfcc-9252887)) Caught unexpected Throwable: java.lang.OutOfMemoryError: GC overhead limit exceeded
14:42:43,397 WARNING [org.jboss.netty.channel.socket.oio.OioServerSocketPipelineSink] (Old I/O server boss ([id: 0x012e6421, localhost/127.0.0.1:6445])) Failed to accept a connection.: java.lang.OutOfMemoryError: GC overhead limit exceeded
14:42:47,337 ERROR [org.hornetq.utils.OrderedExecutorFactory] (Thread-24 (HornetQ-server-HornetQServerImpl::serverUUID=6ba001c9-31f8-11ea-a949-4437e6a1cfcc-9252887)) Caught unexpected Throwable: java.lang.OutOfMemoryError: GC overhead limit exceeded
您可以从代码的堆转储进行分析,也可以使用jvisualvm或任何其他工具。 您还可以使用java内置命令捕获
outOfMemoryError
在抛出java.lang.OutOfMemoryError时生成堆转储的命令行选项:
java -XX:+HeapDumpOnOutOfMemoryError
默认情况下,它将转储存储在运行应用程序的目录中的java_pid.hprof文件中。如果要指定另一个文件或目录,可以在HeapDumpPath选项中进行设置:
java -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=<file-or-dir-path>
java-XX:+HeapDumpOnOutOfMemoryError-XX:HeapDumpPath=
您的应用程序@mowgli中存在内存泄漏,我建议您对jvm进行堆转储,然后使用一些堆转储分析器(如mat)分析转储