具体步骤如下:
1、 设置Windows的环境变量,使WAS JVM在产生javacore的同时产生HeapDump文件(缺省只会产生
javacore)。点击windows桌面->鼠标右键-属性-进入系统属性对话框-进入高级页面-点击环境变量-在系统变量中-分别加入以下变量名和变量值
变量名
变量值
IBM_HEAPDUMP true
IBM_HEAP_DUMP true
IBM_HEAPDUMPDIR c:\
2、
注销当前用户,重新登录
3、 可以通过手工或windows 服务的方式启动WAS,如果使用手工方式,如下:
===For
WAS5.x====
cd c:\WebSphere\AppServer\bin
startServer.bat server1
===For
WAS6.x====
cd c:\WebSphere\AppServer\profiles\default\bin
startServer.bat
server1
4、
WAS启动正常后,在C:\WebSphere\AppServer\bin或C:\WebSphere\AppServer\profiles\default\bin目录中通过以下命令让JVM产生JavaCore和HeapDump文件
键入wsadmin.bat命令,进入wsadmin管理命令行,键入如下代码:
set
jvm [$AdminControl completeObjectName
type=JVM,process=server1,*]
$AdminControl invoke $jvm
dumpThreads
javacore.TIMESTAMP.NUMBER.txt 文件会自动在C:\WebSphere\AppServer或C:\WebSphere\AppServer\default\或您指定的目录中产生。
补充:
IBM_HEAPDUMP_OUTOFMEMORY
true
IBM_JAVADUMP_OUTOFMEMORY true
WAS在以上两项环境变量的设置下,一旦JVM出现内存申请失败抛出Out of
Memory错误时,JVM将会自动产生JavaCore和HeapDump。
在生产环境下,谨慎使用此两项环境变量的设置,以防把文件系统撑爆。
分享到:
相关推荐
was6培训资料:L04-WASv6_WRD.pdf
was6培训资料:L05-WASv6_Security.pdf
was6培训资料:L07-WASv6_Performance.pdf
was6培训资料:L03-WASv6_AppManagement.pdf
was6培训资料:L06-WASv6_WLM_HA.pdf
Application Server V6 and of Java™ 2 Enterprise Edition (J2EE) applications for new customers. It also provides an overview of what types of clients can be used to call applications running in ...
was6培训资料:L01-WASv6_Install_Config.pdf
was6培训资料:L02-WASv6_Sys_Admin.pdf
was6培训资料:L08-WASv6_Service Integration and JMS.pdf
WASv6_AppInstall<br/>IBM 教程系列 待续……
安装WAS6集群E:\WASV61_ND_WINX64_CD1\WASV61_ND_WINX64\WAS---./install was6 和was7一样,was8唯一的不同就是在IM工具上安装卸载
WASV7 方案建议书
IBM的WASv7.0的价值,Discovering business application services, featuring IBM WebSphere Application Server ND V7.0
该程序是基于labview的图像边缘提取,图像处理
比较全面的 websphere application 介绍
WAS v7 Tuning Script Templates v1.0 was7 调优模板
WASv61_AdminConsole_Enhancements.pdf
WAS_V6_安装_Windows,在windows下的安装和配置
WAS V61 security red book
WAS_V7_for_AIX_5.3_安装以及性能调优