- 浏览: 466241 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
alvin198761:
renzhengzhi 写道我参与过12306余票查询系统的开 ...
别给12306 辩解了 -
renzhengzhi:
我参与过12306余票查询系统的开发,用户请求被前面3层缓存拦 ...
别给12306 辩解了 -
renzhengzhi:
写的很好。
JAVA线程dump的分析 -
liyonghui160com:
说好的附件呢
分布式服务框架 Zookeeper -- 管理分布式环境中的数据 -
ghpaas:
orbeon作为xforms标准的实现,不论其设计器还是运行时 ...
XForms 1.1 中文翻译—第1章 关于XForms标准
Running native profiling on AIX
Read the information provided
AIX provides a debug extension to the malloc subsystem for debugging memory allocation errors and native memory leaks. This extension activates trace points in the malloc routines and records allocations that are not subsequently freed. This tool can be used to identify the source of leaking native memory in the Java process.
As AIX debug malloc is built into the malloc routines, you do not have to install additional tooling or utilities. To activate AIX debug malloc, set the following environment variable:
MALLOCDEBUG=[trace,output:malloc.out,report_allocations,verbose,stack_depth:3]
where the options have the following meanings:
trace | Activate tracing of the malloc subsystem. |
output | Specify tracing to a log file; in this case, malloc.out. |
report_allocations | Report outstanding allocations when the application stops. |
stack_depth | Report outstanding allocations with the specified stack depth; in this case, 3. |
Notes:
- The stack depth of 3 provides only a limited stack trace. However, the use of larger stack depths with a Java application can cause crashes because the debug malloc facility does not understand the stack frames used for JIT compiled code.
- Some of these options are available only in AIX 5.3
The following developerWorks article describes the usage of AIX debug malloc and provides a simple script to combine similar stack traces: http://www.ibm.com/developerworks/aix/library/au-mallocdebug.html?ca=dgr-lnxw82MALLOCDEBUG
When the Java process stops, a report is written to either stdout or to the specified file, in the following format:
Allocation #1111: 0x3174BC68 Allocation size: 0x400 Allocation traceback: 0xD02F4370 malloc 0x31791258 Java_com_ibm_jtc_demos_LeakyJNIApp_nativeMethod 0x301A477C ?? Allocation #1112: 0x3174C078 Allocation size: 0x400 Allocation traceback: 0xD02F4370 malloc 0x31791258 Java_com_ibm_jtc_demos_LeakyJNIApp_nativeMethod 0x301A477C ?? Allocation #1113: 0x3174C488 Allocation size: 0x400 Allocation traceback: 0xD02F4370 malloc 0x31791258 Java_com_ibm_jtc_demos_LeakyJNIApp_nativeMethod 0x301A477C ?? Allocation #1114: 0x3174C898 Allocation size: 0x400 Allocation traceback: 0xD02F4370 malloc 0x31791258 Java_com_ibm_jtc_demos_LeakyJNIApp_nativeMethod 0x301A477C ?? Allocation #1115: 0x3174CCA8 Allocation size: 0x400 Allocation traceback: 0xD02F4370 malloc 0x31791258 Java_com_ibm_jtc_demos_LeakyJNIApp_nativeMethod 0x301A477C ?? Allocation #1116: 0x3174D0B8 Allocation size: 0x400 Allocation traceback: 0xD02F4370 malloc 0x31791258 Java_com_ibm_jtc_demos_LeakyJNIApp_nativeMethod 0x301A477C ?? Allocation #1117: 0x3174D4C8 Allocation size: 0x400 Allocation traceback: 0xD02F4370 malloc 0x31791258 Java_com_ibm_jtc_demos_LeakyJNIApp_nativeMethod 0x301A477C ??
This example shows the allocations made by the Java process that was not freed at the point that the Java processes ended. The Java Virtual Machine itself makes a number of allocations at startup that persist for the lifetime of the JVM and are never freed. Ignore the first 1000 allocations to account for this startup allocation. Any subsequent allocation is a potential leak suspect.
发表评论
-
Storix简介
2012-03-27 12:10 976简介 Storix ... -
asa阿萨
2012-03-25 23:58 1阿迪撒旦撒旦 -
适配器布局
2010-10-28 11:23 919网络性能取决于所选的硬件,如机器中的适配器类型和适配器布局 ... -
工作负载管理诊断
2010-07-13 23:15 792工作负载管理仅指评估工作负载的每个组成部分的优先级。 ... -
与磁盘或内存相关的问题
2010-07-13 23:12 847与磁盘或内存相关的问题 正如大部分实内存可用来缓冲文 ... -
在 AIX V5.3 中使用 MALLOCDEBUG 隔离并解决内存泄漏
2010-07-01 15:02 1211引言 在编写应用程序 ... -
AIX性能——预处理器和编译器利用
2010-06-27 20:37 1021在指令重新整理中,有几个优化级别给予编译器以不同程度的自由 ... -
AXI性能——系统调整
2010-06-27 20:37 850在有效实现应用程序后,系统总体性能的进一步提高就成了系统调 ... -
AIX性能调整——当前的机器指令
2010-06-27 20:35 808如果未出现 TLB 或高速缓存未命中的情况,绝大多数机器指令都 ... -
可分派线程
2010-06-27 20:33 797当某个线程可分派但不在运行时,它不能完成任何有用的事情。更糟的 ... -
等待线程
2010-06-27 20:31 855无论何时只要执行的程序发出不能立刻满足的请求,例如同步 I ... -
AXI性能调整——中断处理程序
2010-06-27 20:30 980通知操作系统发生了外部事件的机制是中断当前运行线程并将控制 ... -
AIX性能调整——可执行程序
2010-06-27 20:28 875当请求运行某个程序 ... -
AIX性能调整——硬件层次结构
2010-06-27 20:26 981通常,从一个硬件级别移动到另一级别所需要的时间主要由较低级 ... -
AIX性能调整——程序执行模型
2010-06-27 20:21 845为了清楚地检查工作负载的性能特征,需要有一个动态而非静态的 ... -
AIX4.3 TL12安装指南
2010-06-18 11:01 1117Installation instructions Te ... -
系统工作负载
2010-05-16 22:40 770系统工作负载的完整准确的定义对于预测或理解它的性能是很关键 ... -
列出可用的软件产品(lslpp 命令)
2010-05-13 09:16 1129要显示关于系统上可用软件产品的信息,请使用 lslpp 命 ... -
列出可用的字体(font 命令)
2010-05-13 09:14 1105要显示可用于显示器的字体列表,请使用 lsfont 命令。 ... -
列出可用的显示设备(lsdisp 命令)
2010-05-13 09:14 760要列出系统上当前可用的显示设备,即提供显示设备标识名称、插 ...
相关推荐
查看Aix进程占用内存大小 内存从大到小排序 CPU占用率从大到小排序 内存从大到小排序(详细执行命令)
介绍如何使用aix的工具来发现内存泄露,内容不多,但却是很实用
IBM小机操作系统AIX的内存管理原理,及相应命令
aix内存分配说明,jvm heap size分配详解
从IBM 站点 一个perl 的脚本转过来的。打印内存利用情况。 python 3.0
优化 AIX 内存性能的基本步骤及重用命令,整理自IBM知识库。优化 AIX 内存性能的基本步骤及重用命令,整理自IBM知识库
对AIX内存日常运行监控,分析日志错误监控VMM工作原理,有效预防AIX服务器出现故障
AIX使用命令行,查看内存 CPU信息,AIX使用命令行,查看内存 CPU信息,
显示AIX内存使用详细情况, 适用于AIX 4.3 - 7.1
在AIX上面分析数据库的内存消耗,分析内存的工具 以及AIX内存管理原理
AIX查看cpu_内存序列号AIX查看cpu_内存序列号
AIX 5L 内存性能优化 AIX高手挑战赛必考内容
讲述关于AIX的内存管理机制,使您更详细的了解AIX操作系统的内存管理机制
AIX 5L 内存性能优化.txtAIX 5L 内存性能优化.txtAIX 5L 内存性能优化.txtAIX 5L 内存性能优化.txtAIX 5L 内存性能优化.txtAIX 5L 内存性能优化.txt
介绍了AIX的内存原理,对AIX环境下的代码有一定的帮助
AIX5L内存性能优化.pdf
您可能还不是很清楚 AIX® 中的虚拟内存管理器 (VMM) 是如何工作的、以及它与性能优化之间的关系如何。而且,在最近几年中,有一些优化命令和参数发生了变化,如果您较长时间没有使用 AIX 了,那么您可能会发现,您...
分析AIX上的java应用服务器软件产生的dump文件。
在IBM pSeries690系统中使用的POWER4TM处理器支持两种形式的内存页。除传统POWER架构的4K内存页外,同时支持新...本文主要介绍AIX操作系统对大内存页的支持,及客户如何配置、使用大内存页,应用程序如何申请大内存页。