
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、java heap dumpquestion how do you lect a tbsm server jvm heap dump? answer options for getting java heap dump 1) request java to dump heap on an out of memory error a the following to the jvm tings: -xx:+heapdumponoutofmemoryerror -xx:+heapdumponoutofmemoryerror this option available in 1.5.0_07 and
2、 1.4.2_12, procing an hprof binary foat heap hprof heap dumps are platform independent and so you dont ne to analyze the dump on the same system that produced it running with -xx:+heapdumponoutofmemoryerror does not impact performae - it is simply a flag to indie that a heap dump should be generated
3、 when the first thread throws outofmemoryerror. optional ao: -xx:heapdumppath= -xx:heapdumppath specifies path to directory or name for heap dump. (inoduced in 1.4.2 up 12, 5.0 update 7.) path to filename for heap dump, i.e. -xx:heapdumppath=/some/directory/filename.hprof note: on windows, the jvm c
4、an stay trashing (running garbage collections) before it actually reports an oom.2) force a heap dump, on demand (unix only) on unix, add the following to the jvm settings: -xx:+heapdumponctrlbreak this was available on unix in beginning with sdk 1.4.2.11 and jdk 1.5.0.05. then do: -quit p where is
5、pid is the running java process for the application. in 4.1.1, the command dumps the data into a tt file in $nchome. you may do a : . -name javacore* inside $nchome. if using tbsm 4.2 or 4.2.1 the heap dump should be created in the hope directory of the profile i.e. $tip_home/profiles/tbsmprofile or
6、 $tip_home/profiles/tipprofile note: kill -quit is equivilant to kill -3 and kill -sigquit note: for windows -xx:+heapdumponctrlbreak was only introduces in 1.5.0_14. this is above the release of java in tbsm 4.2.1 (1.5.0 sr 11) so this option is not possible in current tbsm versions on windows.3) u
7、sing ewas (tbsm 4.2 and 4.2.1) you can get a full jvm heap dump uses ewas. note, that this is only works in linux , windows, and aix. $tip_home/bin/wsadmin -username tipadmin -password tipadmin password the script will take you to the was admin prompt: for impact: wsadmin set objectname $admincontro
8、l querynames websphere:type=jvm,process=server1,node=impactnode,* for data server wsadmin set objectname $admincontrol querynames websphere:type=jvm,process=server1,node=tbsmnode,* for dashboard server wsadmin set objectname $admincontrol querynames websphere:type=jvm,process=server1,node=tipnode,*
9、this command will set up the variable objectname, then in the prompt invoke it: wsadmin $admincontrol invoke $objectname generateheapdump the command will dump the heap as .phd file in $tip_home/profiles/tbsmprofile or $tip_home/profiles/tipprofile. it should give you the full path and name of the f
10、ile. note: that in linux if the application goes out of memory, it dump the above 2 steps by default. in solaris, you have to specify it in a script.4) jconsole you could utilize jconsole by calling the hotspotdiagnostic mbean and the dumpheap operation if its available from your sun jvm. note: jcon
11、sole is not shipped with the jre in tbsm. you will need to install the 1.6 java jdk for jconsole. 1.6 jdk can be installed on a client machine and can connect remotely to the tbsm jvm if the following startup jvm options are set for tbsm. jconsole from 1.6 jdk can connect to earlier version of jvm,
12、i.e. s like you can use a 1.5 sun jdks jconsole to connect to a sun 1.4.2 jvm: tstart=180 . you can run jconsole on jdk 5.0 and still connect to an application running on jdk 1.4.2. you will get access to your application mbeans through the mbeans tab but you wont get access to the m m tabs and plat
13、form mbeans as they didnt exist in jdk 1.4.2. if you need to access m m tabs (threads, memory usage etc.), your application have to run on jdk 5.0, started with -dcom.n.management.jmxremote java option. set the following options: -dcom.sun.management.jmxremote.port=8086 -dcom.sun.management.jmxremot
14、e.ssl=false -dcom.sun.management.jmxremote.authenticate=false see link for information to open jconsole (just type jconsole), and go to the mbeans tab. in the left hand structure look for the following er; com.sun.management. expand and click on hotspotdiagnostic. in the right hand window click on o
15、perations. there should be an option to dump the heap memory.5) jmap (only for version 1.6 on windows) jmap prints shared object memory maps or heap memory details of a given process or core file or a remote debug server. this is not available on the jre shipped with tbsm. for this (like jconsole) the jdk is required. it is available on version 1.5 for linux and 1.6 for windows jdk. usage: jmap -histo pid (to print histogram of java object heap of the jvm process) jmap -dump: dump-options pid (to dump java heap of the jvm process) dump-options: format=b binary default file= fi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年注会考前心理素质提升试题及答案
- 园路仿石砖施工方案
- 项目管理质量控制试题及答案
- 资格认证考试实战秘籍试题及答案
- 项目管理作为职业发展的选择试题及答案
- 银行客户生命周期管理试题及答案
- 考生常见疑惑与解答试题及答案
- 2025年注会备考流程的详细解析试题及答案
- 2024年项目管理资格的重要复习阶段试题及答案
- 橡胶制品在汽车安全气囊的快速充气性能考核试卷
- 第六届全国物流设计大赛一等奖作品
- LY/T 3302-2022人造板生产木粉尘燃爆防控技术规范
- 高考与四级英语的差距词汇
- 水土保持工程质量评定规程sl3362006
- 苯乙酸安全技术说明书(msds)
- 2022-2023学年统编版选择性必修三 逻辑与思维 10-2 体会认识发展的历程 教案-
- 万邦特种材料股份有限公司年产18000吨特种纸迁建项目环境影响报告书
- 【建模教程】-建模-数学建模夏令营
- 高中英语高频词汇拓展延伸
- 诚信友善教学反思(十篇)
- 2023版思想道德与法治专题6遵守道德规范锤炼道德品格PPT
评论
0/150
提交评论