
00:00:00
外卖卷:非常划算 扫码领劵 省点小钱钱
ps -efps -ef | grep root
ps -lu rootpgrep 查找进程pgrep -l re
2 kthreadd
28 ecryptfs-kthrea
29515 redis-serverps -ajxtoplsof -i:3306lsof -u usernamelsof -c initlsof -p 23295lsof +d mydir1/kill PIDkill -9 3434kill %jobtop
(->)P输入 top 命令后,进入交互界面;接着输入字符命令后显示相应的进程状态:
P:根据 CPU 使用百分比大小进行排序。M:根据驻留内存大小进行排序。i:使 top 不显示任何闲置或者僵死进程。使用命令 pmap 来输出进程内存的状况,可以用来分析线程堆栈:
pmap PID
ps -fe| grep redis
weber 13508 13070 0 08:14 pts/0 00:00:00 grep --color=auto redis
weber 29515 1 0 2013 ? 02:55:59 ./redis-server redis.conf
pmap 29515
29515: ./redis-server redis.conf
08048000 768K r-x-- /home/weber/soft/redis-2.6.16/src/redis-server
08108000 4K r---- /home/weber/soft/redis-2.6.16/src/redis-server
08109000 12K rw--- /home/weber/soft/redis-2.6.16/src/redis-serverps -u colin115 | awk '/av_/ {print "kill -9 " $1}' | shps -fe| grep colin115|grep HOST |awk '{print $2}' | xargs kill -9;
评论