1, use the command top -p <pid>, display memory situation your java process, pid is your java process ID, such as 123
2, according to H, get memory circumstances of each thread
3, find the maximum memory and cpu usage thread pid, such as 15248
4 performs printf 0x% x 15248 obtained 0x3b90, this is the hexadecimal thread id
5, performed jstack 123 | grep -A 10 3b90, 3b90 obtained after the line of the thread where the thread stack information 10 line
6, the stack information see the corresponding codes to identify potential problems
View java resource occupancy
Guess you like
Origin www.cnblogs.com/lijiale/p/11896991.html
Recommended
Ranking