Skip to content

Commit 68ce6e2

Browse files
authored
Create OS-hpux
0 parents  commit 68ce6e2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

OS-hpux

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
hp-ux操作系统命令:
2+
For a single process (in this case PID 4161)
3+
UNIX95= ps -p 4161 -o pid,sz,pcpu,ruser,args
4+
5+
For all processes:
6+
UNIX95= ps -e -o pid,sz,pcpu,ruser,args
7+
8+
Top 5 highest cpu user
9+
UNIX95= ps -e -o pcpu,pid | sort -n -r |grep -v "%CPU"|head -5
10+
11+
查看进程的某些线程: pstack pid |head -30
12+
$ pstack 11247|head -100
13+
14+
/opt/java6/bin/jstack 11247 > jstack_java.log

0 commit comments

Comments
 (0)