Logo

www.clouddoll.com


How to generate javacore file (on the cpu's) and heapdump file (on the ...

How to generate javacore file (on the cpu's) and heapdump files (on memory). .


1 choose one cluster member, set the following before this server start:。.


Was started in the pre-set the following environment variable (which can be added to the startup script). .


export IBM_HEAPDUMP=true。.


export IBM_HEAP_DUMP = true. .


export IBM_HEAPDUMP_OUTOFMEMORY=true。.


export IBM_HEAPDUMPDIR =. .


2please use set command to make sure you do not have DISABLE_JAVADUMP parameter。.


then start this cluster member. .


Use the set command check parameter settings, make sure that no settings, and then start the server DISABLE_JAVADUMP.


3when you find free memory <50% when no heavy access, please run kill -3. .


Implementation of kill-3.


Command can generate files and heapdump javacore file (pid as was java process id number, you can use ps-ef | grep java found), can be several times more than the implementation, operation carried out in accordance with the following. .


ps -ef > psef1。.txt。.


ps aux> psaux1. . Txt. .


vmstat 5 10 > vmstat。.txt。.


kill -3. .


wait for 2 mins。.


kill -3. .


wait for 2 mins。.


kill -3. .


netstat -an> netstat2。.txt。.


ps-ef> psef2. . Txt. .


ps aux > psaux2。.txt。.


Txt files will be generated above, and / usr / WebSphere / AppServer / javacore * files and heapdump files are copied to the local, and then delete these files because these files will occupy a large file system space. .


Will/usr/WebSphere/AppServer/logs/wlmserver1 (or 2) directory of log copy day..


Process with the kill -3 javacore number to generate documents with heapdump. .


1. windows:。.


Javaw to modify the script to run java, and add the parameter-XX: + HeapDumpOnCtrlBreak. .


After running the program, press CTRL + break, you can get a heapdump file.


-Djava. . Awt. . Headless = true-XX: + HeapDumpOnOutOfMemoryError. .


2. solaris:。.


First, run the script to add in the parameters-XX: + HeapDumpOnCtrlBreak. .


Use of ps-ef | grep java process running the program is found,.


Enter the command kill -3. .


, You can get a heapdump file.


Or: kill-QUIT. .


-Djava。.awt。.headless=true -XX:+HeapDumpOnOutOfMemoryError。.


3. . AIX. .


(1) choose one cluster member, set the following before this server start:。.


Was started in the pre-set the following environment variable (which can be added to the startup script). .


export IBM_HEAPDUMP=true。.


export IBM_HEAP_DUMP = true. .


export IBM_HEAPDUMP_OUTOFMEMORY=true。.


export IBM_HEAPDUMPDIR =. .


export IBM_JAVADUMP_OUTOFMEMORY=true。.


(2) please use set command to make sure you do not have DISABLE_JAVADUMP parameter. .


then start this cluster member。.


Check with the set command to set parameters to ensure that no set DISABLE_JAVADUMP, then start server. .


(3)when you find free memory < 50% when no heavy access, please run kill -3 。. 50%="" when="" no="" heavy="" access,="" please="" run="" kill="" -3="">


Implementation of the kill -3. .


The command file and can be generated heapdump file javacore (the process with PID was java's ID number, you can use ps-ef | grep to java), you can perform several times, in accordance with the following operations.