java - WebSphere 7 - How can I determine which objects are using up heap memory at runtime? -
issue: have intermittent out of memory issues websphere recovering. trying determine how can find out using of memory. have app dynamics not work websphere.
is way way determine using of memory have heap dump out of memory crash?
server: websphere 7.5
java version: ibm 1.6
you can generate heap dump (snapshot of heap @ point of time) , thread dump/javacore (list of threads in jvm @ point of time) while websphere application server running.
to obtain dumps, need use wsadmin
tool. start wsadmin
tool , execute following commands.
jacl version:
set jvm [$admincontrol querynames websphere:type=jvm,process=<servername>,node=<nodename>,*] $admincontrol invoke $jvm generateheapdump $admincontrol invoke $jvm dumpthreads
jython version (untested):
jvm = admincontrol.querynames ('websphere:type=jvm,process=<servername>,node=<nodename>,*') admincontrol.invoke(jvm, 'generateheapdump') admincontrol.invoke(jvm, 'dumpthreads')
replace servername
& nodename
values. sure take multiple dumps, before error , after recovery.
once command completed, filenames returned. move these files different workstation (because analysis resource-intensive process) , analyze them using tool of choice.
Comments
Post a Comment