[Websphere]如何产生javacore文件和heapdump文件
来源:互联网 发布:大数据采集工具 编辑:程序博客网 时间:2024/05/20 15:59
2. 如何产生javacore文件(关于cpu的)和heapdump文件(关于内存的)
2.1 choose one cluster member, set the following before this server start:
在was启动前设置下面环境变量(可以加在启动脚本中)
export IBM_HEAPDUMP=true
export IBM_HEAP_DUMP=true
export IBM_HEAPDUMP_OUTOFMEMORY=true
export IBM_HEAPDUMPDIR=<directory path>
2.2please use set command to make sure you do not have DISABLE_JAVADUMP parameter
then start this cluster member.
用set命令检查参数设置,确保没有设置DISABLE_JAVADUMP,然后启动server
2.3when you find free memory < 50% when no heavy access, please run kill -3 <pid>
执行kill -3 <pid>命令可以生成javacore文件和heapdump文件(pid为was java进程的id号,可以用ps -ef|grep java 查到),可以多执行几次,按照下面操作进行
ps -ef > psef1.txt
ps aux > psaux1.txt
vmstat 5 10 > vmstat.txt
kill -3 <app server id>
wait for 2 mins
kill -3 <app server id>
wait for 2 mins
kill -3 <app server id>
netstat -an> netstat2.txt
ps -ef > psef2.txt
ps aux > psaux2.txt
将上面产生的 txt 文件和/usr/WebSphere/AppServer/javacore*文件和heapdump文件拷贝到本地,然后删除这些文件,因为这些文件会占用较大的文件系统空间。
将/usr/WebSphere/AppServer/logs/wlmserver1(或2)目录下当天产生的日志拷贝出来
- [Websphere]如何产生javacore文件和heapdump文件
- [Websphere]如何产生javacore文件和heapdump文件
- 如何产生javacore文件和heapdump文件
- 1.如何产生javacore和heapdump文件
- 如何产生javacore和heapdump文件
- websphere如何产生javacore和heapdump
- websphere如何产生javacore和heapdump
- websphere如何产生javacore和heapdump
- Websphere产生大量javacore与heapdump文件的分析
- Websphere产生大量javacore与heapdump文件的分析
- 如何查看javacore和heapdump文件
- 如何查看javacore和heapdump文件
- 如何查看javacore和heapdump文件
- 如何查看javacore和heapdump文件
- 如何查看javacore和heapdump文件
- 如何手动生成heapdump和javacore文件
- JVM javacore 和 heapdump 文件生成选项
- jvm 生成javacore和heapdump文件
- exe文件双击不能执行的毛病
- 给初学编程者的忠告
- 专注
- SQL SERVER 2005中的数据参照完整性
- 分享一些MPI代码以及PPT(by Robinvane Suen)
- [Websphere]如何产生javacore文件和heapdump文件
- 如何使页面不被浏览器Cache保留
- 在javacript中获取控件坐标
- 面向对象的思维方法
- 分页控件的用法
- 饮茶之道
- 一个怪异的服务器问题
- c#.net常用函数列表.txt
- 解决因为编码方式导致的乱码