linuxÖеÄһЩϵͳ²ÎÊý½éÉÜ
Àí½â
Linux
µ÷ÓŲÎÊý
ÔÚÎÒÃǽéÉÜ
Linux
ϵͳµÄ¸÷ÖÖµ÷ÓŲÎÊýºÍÐÔÄÜ
¼à²â¹¤¾ß֮ǰ£¬ÐèÒªÏÈÌÖÂÛһЩ¹ØÓÚÐÔÄܵ÷ÓŵIJÎÊý¡£ÒòΪ
Linux
ÊÇÒ»¸ö¿ªÔ´²Ù×÷ϵͳ£¬ËùÒÔÓÖ´óÁ¿¿ÉÓõÄÐÔÄܼà²â¹¤¾ß¡£¶ÔÕâЩ¹¤¾ßµÄÑ¡ÔñÈ¡¾öÓÚÄãµÄ¸öÈËϲºÃºÍ¶ÔÊý¾Ý
ϸ½ÚµÄÒªÇó¡£ËùÓеÄÐÔÄܼà²â¹¤¾ß¶¼ÊÇ°´ÕÕͬÑùµÄ¹æÔòÀ´¹¤×÷µÄ£¬ËùÒÔÎÞÂÛÄãʹÓÃÄÄÖÖ¼à²â¹¤¾ß¶¼ÐèÒªÀí½âÕâЩ²ÎÊý¡£ÏÂÃæÁгöÁËһЩÖØÒªµÄ²ÎÊý£¬ÓÐЧµÄÀí½âËüÃÇÊǺÜÓÐÓô¦µÄ¡£
£¨
1
£©´¦ÀíÆ÷²ÎÊý
CPU utilization
ÕâÊÇÒ»¸öºÜ¼òµ¥µÄ²ÎÊý£¬ËüÖ±¹ÛµÄÃèÊöÁËÿ¸ö
CPU
µÄÀûÓÃÂÊ¡£ÔÚ
xSeries
¼Ü¹¹ÖУ¬Èç¹û
CPU
µÄÀûÓÃÂʳ¤Ê±¼äµÄ³¬¹ý
80
£¥£¬¾Í¿ÉÄÜÊdzöÏÖÁË´¦ÀíÆ÷µÄÆ¿¾±¡£
Runable processes
Õâ¸öÖµÃèÊöÁËÕýÔÚ×¼±¸±»Ö´ÐеĽø³Ì
£¬ÔÚÒ»¸ö³ÖÐøʱ¼äÀïÕâ¸öÖµ²»Ó¦¸Ã³¬¹ýÎïÀí
CPU
ÊýÁ¿µÄ
10
±¶£¬·ñÔò
CPU
·½Ãæ¾Í¿ÉÄÜ´æÔÚÆ¿¾±¡£
Blocked
ÃèÊöÁËÄÇЩÒòΪµÈ´ý
I/O
²Ù×÷½áÊø¶ø²»Äܱ»Ö´ÐеĽø³Ì£¬
Blocked
¿ÉÄÜÖ¸³öÄãÕýÃæÁÙ
I/O
Æ¿¾±¡£
User time
ÃèÊöÁË´¦ÀíÓû§½ø³ÌµÄ°Ù·Ö±È£¬°üÀ¨
nice time
¡£Èç¹û
User time
µÄÖµºÜ¸ß£¬ËµÃ÷ϵͳÐÔÄÜÓÃÔÚ´¦Àíʵ¼ÊµÄ¹¤×÷¡£
System time
ÃèÊöÁË
CPU
»¨·ÑÔÚ´¦ÀíÄÚºË
²Ù×÷°üÀ¨
IRQ
ºÍÈí¼þ
ÖжÏÉÏÃæµÄ°Ù·Ö±È¡£Èç¹û
system time
ºÜ¸ß˵Ã÷ϵͳ¿ÉÄÜ´æÔÚÍøÂç
»òÕßÇý¶¯
¶ÑÕ»·½ÃæµÄÆ¿¾±¡£Ò»¸öϵͳͨ³£Ö»»¨·ÑºÜÉÙµÄʱ¼äÈ¥´¦ÀíÄں˵IJÙ×÷¡£
Idle time
ÃèÊöÁË
CPU
¿ÕÏеİٷֱȡ£
Nice time
ÃèÊöÁË
CPU
»¨·ÑÔÚ´¦Àí
re-nicing
½ø³ÌµÄ°Ù·Ö±È¡£
Context switch
ϵͳÖÐÏß³Ì
Ö®¼ä½øÐн»»»µÄÊýÁ¿¡£
Waiting
CPU
»¨·ÑÔڵȴý
I/O
²Ù×÷ÉϵÄ×Üʱ¼ä£¬Óë
blocked
ÏàËÆ£¬Ò»¸öϵͳ²»Ó¦¸Ã»¨·ÑÌ«¶àµÄʱ¼äÔڵȴý
I/O
²Ù×÷ÉÏ£¬·ñÔòÄãÓ¦¸Ã½øÒ»²½¼ì²â
I/O
×ÓϵͳÊÇ·ñ´æÔÚÆ¿¾±¡£
Interrupts
Interrupts
Öµ°üÀ¨Ó²
Interrupts
ºÍÈí
Interrupts
£¬Ó²
Interrupts
»á¶ÔϵͳÐÔÄÜ´øÀ´¸ü¶àµÄ²»ÀûÓ°Ïì¡£¸ßµÄ
Interrupts
ÖµÖ¸³öϵͳ¿ÉÄÜ´æÔÚÒ»¸öÈí¼þµÄÆ¿¾±£¬¿ÉÄÜÊÇÄں˻òÕßÇý¶¯³ÌÐò¡£×¢Òâ
Interrupts
ÖµÖаüÀ¨
CPU
ʱÖÓµ¼ÖµÄÖжϣ¨ÏÖ´úµÄ
xServer
ϵͳÿÃë
1000
¸ö
Interrupts
Öµ£©¡£
£¨
2
£©ÄÚ´æ²ÎÊý
Free memory
Ïà±ÈÆäËû²Ù×÷ϵͳ£¬
Linux
¿ÕÏÐÄÚ´æµÄÖµ²»Ó¦¸Ã×öΪһ¸öÐÔÄܲο¼µÄÖØÒªÖ¸±ê£¬ÒòΪ¾ÍÏñÎÒÃÇ֮ǰÌáµ½¹ýµÄ£¬
Linux
Äں˻á·ÖÅä´óÁ¿Ã»Óб»Ê¹ÓõÄÄÚ´æ×÷ΪÎļþ
ϵͳµÄ»º´æ£¬ËùÒÔÕâ¸öֵͨ³£¶¼±È½ÏС¡£
Swap usage
Õâ¸öÖµÃ
Ïà¹ØÎĵµ£º
Ŀ¼
1 ÒýÑÔ... 3
1.1 ±³¾°... 3
1.2 ±àдĿµÄ... 3
1.3 ¶¨Òå... 3
1.4 ²Î¿¼×ÊÁÏ... 3
2. ApacheÓëJBoss·þÎñÆ÷¼ò½é... 3
2.1 Apache·þÎñÆ÷... 3
2.2 JBoss·þÎñÆ÷... 3
3. ApacheÓëJBoss·þÎñÆ÷ÅäÖÃÕûºÏ... 3
3.1 ÈÃApacheÓëJBossÒ»Æð¹¤×÷... 3
3.1.1 ¼ò½é... 3
3.1.2 »·¾³... 3
3.1.3 °²×°... 4
3.1.4 ÅäÖÃ... ......
ÒòΪLINUX
µÄÄÚºË
»úÖÆ£¬Ò»°ãÇé¿öϲ»ÐèÒªÌØÒâÈ¥ÊÍ·ÅÒѾʹÓõÄcache¡£ÕâЩcacheÆðÀ´µÄÄÚÈÝ¿ÉÒÔÔö¼ÓÎļþÒÔ¼°µÄ¶ÁдËٶȡ£
ÏÈ˵ÏÂfreeÃüÁîÔõô¿´ÄÚ´æ
[root@ahsq proc]# free
total used free shared buffers cached
Mem: 515588 295452 220136 0 2060 64040
-/+ buffers/cache: 229352 286236
Swap: 682720 112 ......
Ò». ʲôÊÇÐźÅÁ¿
ÐźÅÁ¿(Semaphore)-- Ï൱һ¸öÐźŵƣ¬³ÌÐòÀïÊÇÒ»¸ö·Ç¸ºÕûÊý£¬±íʾ״̬.
¿ÉÒÔÓÃÀ´±£»¤Á½¸ö»ò¶à¸ö¹Ø¼ü´úÂë¶Î£¬ÕâЩ¹Ø¼ü´úÂë¶Î²»Äܲ¢·¢µ÷Óá£ÔÚ½øÈëÒ»¸ö¹Ø¼ü´úÂë¶Î֮ǰ£¬Ï̱߳ØÐë»ñÈ¡Ò»¸öÐźÅÁ¿¡£
Èç¹û¹Ø¼ü´úÂë¶ÎÖÐûÓÐÈκÎỊ̈߳¬ÄÇôÏ̻߳áÁ¢¼´½øÈë¸Ã¿òͼÖеÄÄǸö²¿·Ö¡£Ò»µ©¸Ã¹Ø¼ü´úÂë¶ÎÍê³ÉÁË£¬ÄÇô¸Ã ......
»úÆ÷¼ÓµçÆô¶¯ºó,BIOS¿ªÊ¼¼ì²â²ÎÊý,ÈçÄÚ´æµÄ´óС,ÈÕÆÚºÍʱ¼ä,´ÅÅÌ
É豸ÒÔ¼°ÕâЩ´ÅÅÌÉ豸ÓÃÀ´Òýµ¼µÄ˳Ðò,ͨ³£Çé¿öÏ£¬BIOS¶¼ÊDZ»ÅäÖóÉÊ×Ïȼì²é
ÈíÇý»òÕß¹âÇý£¨»òÁ½Õ߶¼¼ì²é£©£¬È»ºóÔÙ³¢ÊÔ´ÓÓ²ÅÌÒýµ¼¡£Èç¹ûÔÚÕâЩ¿ÉÒƶ¯µÄÉè
±¸ÖУ¬Ã»ÓÐÕÒµ½¿ÉÒýµ¼µÄ½éÖÊ£¬ÄÇôBIOSͨ³£ÊÇתÏòµÚÒ»¿éÓ²ÅÌ×î³õµÄ¼¸¸öÉÈÇø£¬
Ñ°ÕÒÓÃÓÚ×°ÔزÙ×÷Ï ......
×÷ÕߣºÎ¤¶«É½,»ªÇåÔ¶¼ûǶÈëʽѧԺ½²Ê¦¡£
Ëæ×ÅǶÈëʽÐÐÒµÓ²¼þƽ̨µÄÐÔÄÜÔöÇ¿£¬ÏîÄ¿ÐèÇóºÍ¹¦ÄÜÈÕÒ渴ÔÓ£¬ARM¹«Ë¾ÍƳöµÄ CORTEX-M3£¬¸üÊÇÈÃÒÔÍù×öµ¥Æ¬»úµÄ¹¤³ÌʦÔÚоƬºÍ¼¼ÊõÑ¡ÐÍÃæÁÙÁ½ÄÑÑ¡Ôñ£¬±¾×¨Ì⽫´ÓоƬ¼Û¸ñ¡¢Õû¸öϵͳµÄÓ²¼þÈí¼þÉè¼Æ¼°Î¬»¤µÄ³É±¾µÈ¸÷¸ö·½Ãæ¸øÄúÌṩһ¸ö²Î¿¼£¬ ²¢´Ó¼¼Êõ½Ç¶È·ÖÎöµ¥Æ¬»úºÍ´ø²Ù×÷ϵͳµÄÏµÍ ......