linuxÉó²éÀú³ÌµÄÒªÁì
ÔÚ linux ϵͳÖÐÉó²éÀú³ÌµÄÒªÁìÓУºps ÏÂÁÌṩÕýÔÚÔËÐÐÀú³ÌµÄ»ù±¾ÐÅÏ¢£»ps aux ÏÂÁÏÔʾËùÓÐÄ¿½ñÀú³ÌµÄÏêϸÐÅÏ¢£»top ÏÂÁʵʱÉó²éÀú³Ì cpu ºÍÄÚ´æʹÓÃÂÊ£»htop ÏÂÁtop ÏÂÁîµÄ½»»¥Ê½°æ±¾£¬Ìṩ¸üÖÜÈ«µÄÐÅÏ¢£»pstree ÏÂÁÏÔʾÀú³ÌÖ®¼äµÄ²ã¼¶¹Øϵ¡£
ÔõÑùÉó²é Linux Àú³Ì
ÔÚ Linux ϵͳÖУ¬Éó²éÀú³ÌÓÐÒÔϼ¸ÖÖÒªÁ죺
1. ps ÏÂÁî
ps ÏÂÁîÊÇÉó²éÀú³Ì×î³£ÓõÄÏÂÁî¡£ËüÌṩÓйØÄ¿½ñÕýÔÚÔËÐеÄÀú³ÌµÄ»ù±¾ÐÅÏ¢¡£
ps
µÇ¼ºó¸´ÖÆ
2. ps aux ÏÂÁî
ps aux ÏÂÁîÌṩÁËÓйØËùÓÐÄ¿½ñÀú³ÌµÄÏêϸÐÅÏ¢£¬°üÀ¨Àú³Ì ID (PID)¡¢Óû§Ãû¡¢CPU ºÍÄÚ´æʹÓÃÇéÐΡ£
ps aux
µÇ¼ºó¸´ÖÆ
3. top ÏÂÁî
top ÏÂÁîÏÔʾϵͳÖÐÕýÔÚÔËÐеÄÀú³ÌµÄʵʱÊÓͼ¡£ËüÌṩÁËÓйØÀú³Ì CPU ʹÓÃÂÊ¡¢ÄÚ´æʹÓÃÂʺÍÔËÐÐʱ¼äµÄÏêϸÐÅÏ¢¡£
top
µÇ¼ºó¸´ÖÆ
4. htop ÏÂÁî
htop ÏÂÁîÊÇ top ÏÂÁîµÄ½»»¥Ê½°æ±¾¡£ËüÔÊÐíÄúת¶¯ä¯ÀÀÀú³ÌÁÐ±í£¬²¢Ìṩ¸üÖÜÈ«µÄÀú³ÌÐÅÏ¢¡£
htop
µÇ¼ºó¸´ÖÆ
5. pstree ÏÂÁî
pstree ÏÂÁîÏÔʾϵͳÖеÄÀú³ÌÊ÷¡£ËüÒÔͼÐη½·¨ÏÔʾÀú³Ì²ã¼¶£¬Ê¹Äú¿ÉÒÔÇáËÉÉó²éÀú³ÌÖ®¼äµÄ¹Øϵ¡£
pstree
µÇ¼ºó¸´ÖÆ
ÕâЩÏÂÁîÌṩÁËÉó²é Linux Àú³ÌµÄ²î±ð·½·¨£¬Äú¿ÉÒÔƾ֤ÐèÒªµÄÐÅϢѡÔñʹÓÃÄÄÖÖÏÂÁî¡£
ÒÔÉϾÍÊÇlinuxÉó²éÀú³ÌµÄÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡