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 =. .
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. .
ps -ef > psef1。.txt。.
ps aux> psaux1. . Txt. .
vmstat 5 10 > vmstat。.txt。.
kill -3. .
kill -3. .
kill -3. .
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. .
Or: kill-QUIT. .
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 =. .
(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=""> 50% when no heavy access, please run kill -3 。.>