Chinaunix首页 | 论坛 | 博客
  • 博客访问: 437943
  • 博文数量: 126
  • 博客积分: 35
  • 博客等级: 民兵
  • 技术积分: 1262
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-19 16:39
文章分类

全部博文(126)

文章存档

2017年(2)

2016年(20)

2015年(64)

2014年(24)

2013年(16)

我的朋友

分类: C/C++

2015-01-07 15:31:35

top -H -p pid
pstack

 [root@gz-WEB-1 ~]# top


top - 15:30:20 up 111 days, 21:57,  5 users,  load average: 3.51, 3.42, 2.34
Tasks: 535 total,   2 running, 533 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.4%us,  0.8%sy,  0.0%ni, 97.6%id,  0.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  16291936k total, 16072908k used,   219028k free,  2067724k buffers
Swap: 33554424k total,    13236k used, 33541188k free,  7986196k cached


  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                
58072 root      20   0  9.8g 4.7g 9748 S 229.8 30.2  24:28.33 bigdata_httpget

  1. [root@gz-WEB-1 ~]# top -H -p 59189
  2. top - 15:28:44 up 111 days, 21:55, 5 users, load average: 3.69, 3.42, 2.23
  3. Tasks: 71 total, 2 running, 69 sleeping, 0 stopped, 0 zombie
  4. Cpu(s): 1.4%us, 0.8%sy, 0.0%ni, 97.6%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
  5. Mem: 16291936k total, 16126272k used, 165664k free, 2089220k buffers
  6. Swap: 33554424k total, 13184k used, 33541240k free, 8014984k cached
  7. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
  8. 59190 root 20 0 9960m 4.7g 9748 R 67.5 30.2 7:35.18 bigdata_httpget
  9. 59189 root 20 0 9960m 4.7g 9748 R 59.6 30.2 7:35.48 bigdata_httpget
  10. 59288 root 20 0 9960m 4.7g 9748 S 59.6 30.2 4:30.33 bigdata_httpget

[root@gz-WEB-1 ~]# pstack 59190
Thread 1 (process 59190):
#0  0x0000003c7d6ce117 in sched_yield () from /lib64/libc.so.6
#1  0x0000000000418344 in CTaskDispath::Run() ()
#2  0x0000000000406dd9 in CActiveThread::Process() ()
#3  0x0000000000406d22 in CActiveThread::fun_thread_active(void*) ()
#4  0x0000003c7da07851 in start_thread () from /lib64/libpthread.so.0
#5  0x0000003c7d6e767d in clone () from /lib64/libc.so.6
[root@gz-WEB-1 ~]# pstack 59189
Thread 1 (process 59189):
#0  0x0000003c7d6ce117 in sched_yield () from /lib64/libc.so.6
#1  0x000000000041855a in CAdaptThread::Run() ()
#2  0x0000000000406dd9 in CActiveThread::Process() ()
#3  0x0000000000406d22 in CActiveThread::fun_thread_active(void*) ()
#4  0x0000003c7da07851 in start_thread () from /lib64/libpthread.so.0
#5  0x0000003c7d6e767d in clone () from /lib64/libc.so.6
[root@gz-WEB-1 ~]# pstack 59288
Thread 1 (process 59288):
#0  0x0000003c7d6ab53d in waitpid () from /lib64/libc.so.6
#1  0x0000003c7d63e349 in do_system () from /lib64/libc.so.6
#2  0x0000003c7d63e680 in system () from /lib64/libc.so.6
#3  0x000000000040861e in LoadByDirectory(std::map, SFileHandler, std::less >, std::allocator const, SFileHandler> > >&, char*, char*) ()
#4  0x0000000000409661 in DealFile::DoFileParser(unsigned int) ()
#5  0x0000000000408ec2 in DealFile::MatchThread(void*) ()
#6  0x0000003c7da07851 in start_thread () from /lib64/libpthread.so.0
#7  0x0000003c7d6e767d in clone () from /lib64/libc.so.6
You have new mail in /var/spool/mail/root


阅读(716) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~