top - 17:23:50 up 12 days, 1:44, 8 users, load average: 4.85, 3.56, 3.76
Tasks: 556 total, 1 running, 555 sleeping, 0 stopped, 0 zombieCpu(s): 7.4%us, 4.4%sy, 0.4%ni, 71.6%id, 15.5%wa, 0.0%hi, 0.6%si, 0.0%stMem: 32072M total, 31972M used, 100M free, 265M buffersSwap: 2047M total, 81M used, 1965M free, 23734M cachedPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
17363 webserve 20 0 4475m 2.9g 10m R 54 9.4 163:29.84 java16452 webserve 20 0 4475m 2.9g 10m S 6 9.4 6:03.00 java11283 webserve 20 0 4475m 2.9g 10m S 2 9.4 7:21.35 java11284 webserve 20 0 4475m 2.9g 10m S 2 9.4 7:21.41 java11285 webserve 20 0 4475m 2.9g 10m S 2 9.4 7:20.89 java 比如上面信息就可以看到 17363 线程CPU使用较高, 把这个值转换为 16 进制, 然后在第2步打印的 线程栈中进行搜索, 就可以知道这个线程栈是做什么的了.