开发的spring-boot跑在win2008上内存爆满-内存泄露问题排查

2017-01-05 11:09:54来源:oschina作者:qingfeng哥人点击



#问题描述
开发一个基于spring-boot的API程序,跑在win7 64 位上没有问题,运行很多天,没啥事
但是跑服务器win2008上却逐渐爆满内存
#问题排查
搜索java内存泄露排查方法
```
03-Jan-2017 17:09:35.807 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 33787 ms
03-Jan-2017 20:21:49.134 信息 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.core.StandardContext.reload Reloading Context with name [] has started
03-Jan-2017 20:22:10.428 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
03-Jan-2017 20:22:10.521 警告 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [oracle.jdbc.driver.BlockSource.ThreadedCachingBlockSource.BlockReleaser] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
oracle.jdbc.driver.BlockSource$ThreadedCachingBlockSource$BlockReleaser.run(BlockSource.java:327)
03-Jan-2017 20:22:13.969 严重 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.ContextConfig.processAnnotationsJar Unable to process Jar [file:/ WEB-INF/lib/spring-boot-1.4.3.RELEASE.jar] for annotations
java.io.FileNotFoundException:/WEB-INF/lib/spring-boot-1.4.3.RELEASE.jar (配额不足,无法处理此命令。)
at java.util.zip.ZipFile.open(Native Method)
```

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台