Java 1.4.2内存分析工具
我们有一个在 Weblogic 8.1.3 上运行的应用程序,使用捆绑的 1.4.2 JDK,并且它的内存泄漏速度相当快。
我已经阅读了一些有关如何修复内存泄漏的内容,但大多数内容似乎都假设正在使用的 JDK 是 5 或更高版本。有没有适用于早期版本的工具?
除此之外,我们发现的信息非常少:泄漏似乎只发生在完整的生产环境中,而不是测试环境中。
- 我们有两台运行 weblogic 的机器,为了负载平衡而集群
- 泄漏一次发生在一个集群服务器上(?!),但绝不会同时发生
- 泄漏有时(但并非总是)从服务器切换到Weblogic 重新启动时服务器。
因此,我认为必须在服务器启动时创建一个对象,该对象可以在泄漏背后的一台(但不是两台)服务器上创建。这看起来是一个合理的开始寻找的地方吗?
We have an application running on Weblogic 8.1.3, using the bundled 1.4.2 JDK, and it's leaking memory moderately rapidly.
I've done some reading around about how to fix memory leaks, but most of it seems to assume that the JDK being used is 5 or higher. Are there any tools available for earlier versions?
Other than that, there's very little information that we've found: the leak only seems to occur on the full production environment, rather than the test environments.
- We have two machines running weblogic, clustered for load balancing
- The leak occurs on one of the clustered servers at a time (?!), but never both
- The leak sometimes, but not always, switches from server to server when Weblogic is restarted.
So I figure that there must be an object created at server startup that can be created on one (but not both) servers that is behind the leak. Does this seem a reasonable place to start looking?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JProfiler 支持分析当前版本 (7.0) 中的 Java 1.4
您可以看看 此屏幕演示介绍如何使用 JProfiler 搜索内存泄漏。
免责声明:我公司开发JProfiler
JProfiler supports profiling Java 1.4 in its current version (7.0)
You could have a look at this screen cast on how to search for memory leaks with JProfiler.
Disclaimer: My company develops JProfiler
您是否尝试运行
jvisualvm
并查看使用的内存(堆转储)?-> http://download.oracle.com/javase/6 /docs/technotes/tools/share/jvisualvm.html
Have you tryed to run
jvisualvm
and look into the memory used (heap dump)?-> http://download.oracle.com/javase/6/docs/technotes/tools/share/jvisualvm.html