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 zombie
Cpu(s): 7.4%us, 4.4%sy, 0.4%ni, 71.6%id, 15.5%wa, 0.0%hi, 0.6%si, 0.0%st
Mem: 32072M total, 31972M used, 100M free, 265M buffers
Swap: 2047M total, 81M used, 1965M free, 23734M cached java
PID 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 java
16452 webserve 20 0 4475m 2.9g 10m S 6 9.4 6:03.00 java
11283 webserve 20 0 4475m 2.9g 10m S 2 9.4 7:21.35 java
11284 webserve 20 0 4475m 2.9g 10m S 2 9.4 7:21.41 java
11285 webserve 20 0 4475m 2.9g 10m S 2 9.4 7:20.89 java
好比上面信息就能夠看到 17363 線程CPU使用較高, 把這個值轉換爲 16 進制, 而後在第2步打印的
線程棧中進行搜索, 就能夠知道這個線程棧是作什麼的了. web