开发的spring-boot跑在win2008上内存爆满-内存泄露问题排查
2017-01-04 11:03
666 查看
#问题描述
开发一个基于spring-boot的API程序,跑在win7 64 位上没有问题,运行很多天,没啥事
但是跑服务器win2008上却逐渐爆满内存
#问题排查
搜索java内存泄露排查方法
暂时的解决的办法是将tomcat版本降级到7的最新版,就不会爆了
don't know why
2017-03-04
之后任然出现该问题。内存居高不下,查看任务管理器又看不出用了那么的内存。
苦苦搜索类似问题,终于有一篇说道是 windows server 2008系统不释放缓存的云云,按照他们的说法去解决还真的是。
http://jingyan.baidu.com/article/75ab0bcbe2d95bd6874db26a.html
对就是这个 Microsoft Windows Dynamic Cache Service
真的解决了问题
开发一个基于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)
暂时的解决的办法是将tomcat版本降级到7的最新版,就不会爆了
don't know why
2017-03-04
之后任然出现该问题。内存居高不下,查看任务管理器又看不出用了那么的内存。
苦苦搜索类似问题,终于有一篇说道是 windows server 2008系统不释放缓存的云云,按照他们的说法去解决还真的是。
http://jingyan.baidu.com/article/75ab0bcbe2d95bd6874db26a.html
对就是这个 Microsoft Windows Dynamic Cache Service
真的解决了问题
相关文章推荐
- spring boot + embed tomcat + standalone jar的内存泄露问题
- hadoop1.0 TaskTracker因为分布式缓存导致内存泄露的一次问题排查
- SSH内存泄露及Spring Quartz问题
- org.springframework.web.servlet.view.InternalResourceViewResolver 内存泄露问题
- Android开发中内存泄露问题
- 第13章 SpringBoot开发中的常见问题与解决方案
- 内存泄露问题排查
- 项目----1(在项目开发中AsyncTask与Activity生命周期不一导致内存泄露的问题)
- android开发避免Context引起的内存泄露问题
- Android内存泄露检测工具和实际开发中遇到的内存泄露问题解析
- android开发中,可能会导致内存泄露的问题
- Spring Boot开发问题(一.feignclient远程其他restful风格的项目时POST中)
- android开发中,可能会导致内存泄露的问题
- android开发中,可能会导致内存泄露的问题
- 在 WINCE 开发中使用 GDI 绘图时,碰到的内存泄露问题
- 【转】android开发中,可能会导致内存泄露的问题
- springboot 开发入门,及问题汇总
- Android开发编码规范导致的内存泄露问题
- Android 开发使用MVP产生的内存泄露问题
- idea开发springboot 写html不会刷新的问题,这个是手动刷新的