进程状态检查
使用下列方法可以检查线程数量
root@h101 memcached-1.4.24# ps fuax | grep mem
root 777 0.0 0.0 0 0 ? S 13:43 0:00 _ vmmemctl
root 8857 0.0 0.0 103252 824 pts/0 S+ 15:52 0:00 | _ grep mem
cc 8835 0.0 0.0 786084 1640 ? Ssl 15:50 0:00 /usr/local/bin/memcached -d -m 1024 -p 12345 -u cc -c 512 -t 10
root@h101 memcached-1.4.24# netstat -ant | grep 12345
tcp 0 0 0.0.0.0:12345 0.0.0.0:* LISTEN
tcp 0 0 :::12345 :::* LISTEN
root@h101 memcached-1.4.24# pstree -p 8835
memcached(8835)─┬─{memcached}(8836)
├─{memcached}(8837) ├─{memcached}(8838) ├─{memcached}(8839) ├─{memcached}(8840) ├─{memcached}(8841) ├─{memcached}(8842) ├─{memcached}(8843) ├─{memcached}(8844) ├─{memcached}(8845) └─{memcached}(8846)root@h101 memcached-1.4.24# ps -mp 8835
PID TTY TIME CMD
8835 ? 00:00:00 memcached
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -
- - 00:00:00 -root@h101 memcached-1.4.24# 本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。