tomcat8 spring-boot war内存泄漏

时间:2016-11-03 06:13:38

标签: spring-boot tomcat8

我有一个正在处理tomcat8的应用程序,在重复取消部署/部署时(我使用parallel versions)我注意到服务器内存也增加了tomacat管理器点击查找泄漏显示如下

  

以下Web应用程序已停止(重新加载,取消部署),   但是他们以前运行的类仍然在内存中加载   导致内存泄漏(使用分析器确认):/

我试图使用分析器来检查内存中的内容但是无法弄清楚,因为我不知道从哪里开始。

停止应用程序显示以下日志

2016-11-03 05:50:25.388 [               ]  INFO 29986 --- [http-nio-8080-exec-34] o.a.c.c.C.[.[.teltacworldwide.co].[/]    : Destroying Spring FrameworkServlet 'dispatcherServlet'
2016-11-03 05:50:25.392 [               ]  INFO 29986 --- [http-nio-8080-exec-34] o.a.c.c.C.[.[.teltacworldwide.co].[/]    : Closing Spring root WebApplicationContext
2016-11-03 05:50:25.393 [               ]  INFO 29986 --- [http-nio-8080-exec-34] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7fe83fea: startup date [Wed Nov 02 15:09:26 GMT 2016]; root of context hierarchy
2016-11-03 05:50:25.403 [               ]  INFO 29986 --- [http-nio-8080-exec-34] o.s.c.support.DefaultLifecycleProcessor  : Stopping beans in phase 2147483647
2016-11-03 05:50:25.411 [               ]  INFO 29986 --- [http-nio-8080-exec-34] o.s.m.s.s.StompBrokerRelayMessageHandler : Stopping...
2016-11-03 05:50:25.412 [               ]  INFO 29986 --- [http-nio-8080-exec-34] o.s.m.s.s.StompBrokerRelayMessageHandler : BrokerAvailabilityEvent[available=false, StompBrokerRelay[192.168.70.149:61613]]
2016-11-03 05:50:25.465 [               ]  WARN 29986 --- [globalEventExecutor-1-2] io.netty.channel.AbstractChannel         : Can't invoke task later as EventLoop rejected it

java.util.concurrent.RejectedExecutionException: event executor terminated
        at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:715) ~[netty-all-4.0.31.Final.jar:4.0.31.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:300) ~[netty-all-4.0.31.Final.jar:4.0.31.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:691) ~[netty-all-4.0.31.Final.jar:4.0.31.Final]
        at io.netty.channel.AbstractChannel$AbstractUnsafe.invokeLater(AbstractChannel.java:826) [netty-all-4.0.31.Final.jar:4.0.31.Final]
        at io.netty.channel.AbstractChannel$AbstractUnsafe.access$800(AbstractChannel.java:378) [netty-all-4.0.31.Final.jar:4.0.31.Final]
        at io.netty.channel.AbstractChannel$AbstractUnsafe$5.run(AbstractChannel.java:571) [netty-all-4.0.31.Final.jar:4.0.31.Final]
        at io.netty.util.concurrent.GlobalEventExecutor$TaskRunner.run(GlobalEventExecutor.java:233) [netty-all-4.0.31.Final.jar:4.0.31.Final]
        at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [netty-all-4.0.31.Final.jar:4.0.31.Final]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]

0 个答案:

没有答案