Sun ONE logo     ÉÏÒ»¸ö      Ŀ¼      Ë÷Òý      ÏÂÒ»¸ö     
Sun ONE Application Server 7, Update 1 ¹ÜÀíÔ±Ö¸ÄÏ



¼àÊÓ Sun ONE Application Server

±¾ module ÌṩÁËÓйؼàÊÓµÄÐÅÏ¢£¬Í¬Ê±½éÉÜÁËÔÚ Sun ONE Application Server ÖÐʹÓõļòµ¥ÍøÂç¹ÜÀíЭÒé (SNMP) µÄÌØÕ÷ºÍ¹¦ÄÜ¡£

±¾ module °üÀ¨ÒÔÏÂÖ÷Ì⣺

¹ØÓÚ¼àÊÓ Sun ONE Application Server

Äú¿ÉÒÔͨ¹ýÊÕ¼¯ÏµÍ³ÉϹؼüÊý¾ÝµãµÄ»î¶¯Í³¼ÆÊý¾ÝÀ´¼àÊÓ Sun ONE Application Server¡£Í³¼ÆÊý¾ÝÏÔʾÁË·þÎñÆ÷´¦ÀíµÄÇëÇóµÄÊýÄ¿ÒÔ¼°ÕâЩÇëÇóµÄ´¦Àí×´¿ö¡£Äú¿ÉÒԲ鿴µ¥¸öÐéÄâ·þÎñÆ÷µÄijЩͳ¼ÆÊý¾Ý£¬Ò²¿ÉÒԲ鿴Õû¸öÓ¦ÓóÌÐò·þÎñÆ÷ʵÀýµÄͳ¼ÆÊý¾Ý¡£Äú¿ÉÒÔʹÓà asadmin ¹«ÓóÌÐò»ò SNMP À´¼àÊÓ Sun ONE Application Server¡£

±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺

ͳ¼ÆÊý¾Ý

´ó¶àÊý Sun ONE Application Server Ó¦ÓóÌÐò×é¼þºÍ×Óϵͳ£¨°üÀ¨ HTTP ·þÎñÆ÷£©¶¼»áʼÖÕÆôÓÃͳ¼ÆÊý¾ÝµÄÊÕ¼¯£¬Òò¶ø²»ÐèÒªÈκÎÆôÓù¦ÄÜ¡£µ«ÊÇ£¬Ä³Ð©Í³¼ÆÊý¾Ý½öµ±ÔÚ×ÓϵͳÉÏÃ÷È·ÆôÓÃÁ˼àÊÓ£¬»ò½öµ±ÆôÓÃÁËÏà¹Ø¹¦ÄÜʱ²Å»á½øÐÐÊÕ¼¯¡£ÕâЩͳ¼ÆÊý¾Ý°üÀ¨ÒÔÏÂÊý¾Ýµã£º

  • EJB ·½·¨µÄͳ¼ÆÊý¾Ý
  • »î¶¯ÊÂÎñ
  • Á¬½Ó£¨½öµ±ÆôÓÃÁË·þÎñÖÊÁ¿£©
  • DNS£¨½öµ±ÆôÓÃÁË DNS ¸ßËÙ»º´æ£©

¿ÉÒÔͨ¹ý¹ÜÀí½çÃæÆôÓöÔÓ¦ÓóÌÐò×Óϵͳ»ò×é¼þµÄ¼àÊÓ¹¦ÄÜ£¬Èç¡°¼àÊÓÓ¦ÓóÌÐò×é¼þºÍ×Óϵͳ¡±ÖÐËùÊö¡£

Èç¹û·þÎñÆ÷¼àÊÓÆ÷±¨¸æ¸Ã·þÎñÆ÷´¦ÀíµÄÇëÇó¹ý¶à£¬Äú¿ÉÄÜÐèÒªµ÷Õû·þÎñÆ÷ÅäÖûòϵͳµÄÍøÂçÄںˡ£Óйص÷Õû·þÎñÆ÷ÅäÖõÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡¶Sun ONE Application Server Performance Tuning and Sizing Guide¡·¡£

SNMP

Sun ONE Application Server ͨ¹ýËüµÄÐÅÏ¢ÊÕ¼¯¹¤¾ß£¬Ê¹Óüòµ¥ÍøÂç¹ÜÀíЭÒé (SNMP) ÌṩÍøÂç¹ÜÀíÐÅÏ¢£¬¸ÃЭÒéÓÃÓÚÔÚÍøÂ緶ΧÄÚ½»»»¹ÜÀíºÍ¼àÊÓÐÅÏ¢¡£³ÆΪ´úÀíµÄ³ÌÐòʹÓà SNMP ¼àÊÓÍøÂçÉϵĸ÷ÖÖÉ豸£¨¼¯ÏßÆ÷¡¢Â·ÓÉÆ÷¡¢ÍøÇŵȵȣ©¡£ÁíÒ»¸ö³ÌÐò¸ºÔð´Ó´úÀí´¦ÊÕ¼¯Êý¾Ý¡£ÓɼàÊÓ²Ù×÷´´½¨µÄÊý¾Ý¿â³ÆΪ¹ÜÀíÐÅÏ¢¿â (MIB)¡£ÕâЩÊý¾ÝÓÃÓÚ¼ì²éÍøÂçÉϵÄËùÓÐÉ豸ÊÇ·ñÕý³£ÔËÐС£

ʹÓà SNMP Ö»ÄܼàÊÓ HTTP ·þÎñÆ÷£»¶øʹÓÃÃüÁîÐнçÃæ (CLI) ¿ÉÒÔ¼àÊÓËùÓÐ×é¼þºÍϵͳ¡£

ÓÐ¹Ø SNMP µÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°¹ØÓÚ SNMP¡±ºÍ¡°ÉèÖà SNMP¡±¡£

¼àÊÓ HTTP ·þÎñÆ÷

ĬÈÏÇé¿öÏ£¬HTTP ·þÎñÆ÷µÄ¼àÊÓ±»ÆôÓã¬ÕâÒâζ×Ų»±ØרÃÅÆôÓÃËü¡£HTTP ·þÎñÆ÷µÄ¼àÊÓ»ùÓÚÒ»¸ö XML Îļþ£¬¿ÉÒÔ×÷Ϊһ¸ö°üº¬Èý¸ö¿É¼àÊÓÊôÐÔµÄÊôÐÔ¼¯Ê¹Óà asadmin ÃüÁî½øÐзÃÎÊ¡£¡°¿É¼àÊ HTTP ·þÎñÆ÷ÔªËØ¡±ºÍ¡°¿É¼àÊ HTTP ·þÎñÆ÷ÊôÐÔ¡±ÃèÊöÁ˸à XML ÎļþµÄÔªËØ¡¢×ÓÔªËغÍÊôÐÔ¡£



×¢Òâ

ʹÓà SNMP Ö»ÄܼàÊÓ HTTP ·þÎñÆ÷µÄͳ¼ÆÊý¾Ý¡£¶øʹÓÃÃüÁîÐнçÃæ¿ÉÒÔ»ñµÃ Sun ONE Application Server ËùÓÐ×Óϵͳ£¨°üÀ¨ HTTP ·þÎñÆ÷£©µÄͳ¼ÆÊý¾Ý¡£



ÓйØʹÓà asadmin µÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°Ê¹ÓÃÃüÁîÐнçÃ桱¡£

¼àÊÓÓ¦ÓóÌÐò×é¼þºÍ×Óϵͳ

Sun ONE Application Server ÖеÄijЩ×Óϵͳ»ò×é¼þ²»ÐèÒªÆôÓüàÊÓ£¬ÒòΪϵͳʼÖÕ»áÊÕ¼¯Ä³Ð©Ïà¹ØµÄͳ¼ÆÊý¾Ý¡£ÀýÈ磬¿ÉÒÔÆôÓûò½ûÓÃÓ¦ÓóÌÐò×é¼þ£¨ÀýÈçÈÝÆ÷£©µÄ¼àÊÓ¡£ÆôÓüàÊÓʱ£¬³ýÁËʼÖÕÊÕ¼¯µÄͳ¼ÆÊý¾ÝÍ⣬»¹»áÊÕ¼¯ÓйØËùÓÐ EJB ·½·¨µÄÆäËüͳ¼ÆÊý¾Ý¡£¶Ô JDBC Á¬½Ó³ØµÄ¼àÊÓʼÖÕ±»ÆôÓá£Á¬½Ó³ØÔÚµÚÒ»´Î·ÃÎÊʱ±»³õʼ»¯£¬Äú¿ÉÒÔÔÚÕâÖ®ºóµÄÈκÎʱ¿Ì¼àÊÓÏà¹Øͳ¼ÆÊý¾Ý¡£

ÓйؿɼàÊÓÊý¾ÝµãµÄÍêÕûÁÐ±í£¬Çë²Î¼û¡°¿É¼àÊÓµÄÊôÐÔÃû¡±¡£

Äú¿ÉÒÔͨ¹ý¹ÜÀí½çÃæ»òÃüÁîÐнçÃæ (CLI) Ϊѡ¶¨µÄÓ¦ÓóÌÐò×é¼þºÍ×ÓϵͳÆôÓüàÊÓ¡£ÀýÈ磬Ҫ´Ó CLI Ϊ EJB ÈÝÆ÷ÆôÓüàÊÓ£¬ÇëÔÚÖն˴°¿ÚÖмüÈëÒÔÏÂÃüÁ

set server1.ejb-container.monitoringEnabled=true
reconfig server1

ÆäÖÐ server1 ÊÇʵÀýÃû¡£

ÔÚ¹ÜÀí½çÃæÉϵġ°Containers¡±½ÚµãÏ¿ÉÒÔ·ÃÎÊÏàͬµÄ¹¦ÄÜ¡£

±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺

¼àÊÓÈÝÆ÷×Óϵͳ

ÆôÓà EJB ÈÝÆ÷µÄ¼àÊÓʱ£¬½«ÊÕ¼¯ÓëËùÓÐʵÌå bean¡¢×´Ì¬»á»° bean ¼°ÎÞ״̬»á»° bean µÄ·½·¨Ïà¹ØµÄͳ¼ÆÊý¾Ý¡£ÕâЩͳ¼ÆÊý¾Ý°üÀ¨£º

  • ´íÎó×ÜÊý
  • µ÷ÓÃ×ÜÊý
  • ³É¹¦×ÜÊý
  • ÒÔºÁÃë¼ÆµÄÖ´ÐÐʱ¼ä£¨¶ÔÓÚ·½·¨µÄ×îºóÒ»´Îµ÷Óã©

ÈÝÆ÷×ÓϵͳµÄËùÓÐÆäËüͳ¼ÆÊý¾ÝʼÖջᱻÊÕ¼¯¡£Ä³Ð©¼àÊÓµÄÊý¾Ýµã°üÀ¨ÓëÒÔÏÂÄÚÈÝÏà¹ØµÄͳ¼ÆÊý¾Ý£º

  • ³ØÖÐÎÞ״̬ bean µÄ³õʼ¡¢×îС¼°×î´óÊýÄ¿
  • ¸ßËÙ»º´æÖÐ״̬»á»° bean ºÍʵÌå bean µÄ×îС¼°Ê×Ñ¡ÊýÄ¿
  • ¸ßËÙ»º´æÖÐÎÞ״̬»á»° bean µÄ×îС¼°Ê×Ñ¡ÊýÄ¿
  • ÒÑ´´½¨ºÍÒÑÆÆ»µµÄ bean µÄÊýÄ¿
  • ÆäËüÏà¹Øͳ¼ÆÊý¾Ý

¼àÊÓ ORB ·þÎñ

¶ÔÓÚ ORB ·þÎñ£¬¼àÊÓµÄÊý¾Ýµã°üÀ¨Îª ORB Á¬½ÓºÍ ORB Ï̳߳ØÊÕ¼¯µÄͳ¼ÆÊý¾Ý¡£ORB ͳ¼ÆÊý¾ÝʼÖջᱻÊÕ¼¯£¬Òò´Ë²»±ØΪ ORB ·þÎñÆôÓüàÊÓ¡£

¼àÊÓÊÂÎñ·þÎñ

¶ÔÓÚ Java ÊÂÎñ·þÎñ (JTS) ·þÎñ£¬¼àÊÓµÄÊý¾Ýµã°üÀ¨£º

  • Íê³ÉµÄÊÂÎñ×ÜÊý
  • »Ø¹öµÄÊÂÎñ×ÜÊý
  • ÕýÔÚÖ´ÐеÄÊÂÎñ×ÜÊý
  • ÕýÔÚÖ´ÐеÄÊÂÎñÁбí

ÓйØÏêϸÐÅÏ¢£¬Çë²Î¼û¡°Ê¹Óà CLI ¹ÜÀíÊÂÎñ·þÎñ¡±¡£

·þÎñÖÊÁ¿ (QOS)

·þÎñÖÊÁ¿ÊÇָΪ·þÎñÆ÷ʵÀýÐéÄâ·þÎñÆ÷Àà»òÐéÄâ·þÎñÆ÷ÉèÖõÄÐÔÄÜÏÞÖÆ¡£ÀýÈ磬Èç¹ûÄúÊÇ Internet ·þÎñÌṩÉÌ (ISP)£¬Ôò¿ÉÄÜÏ£Íû¸ù¾ÝËùÌṩµÄ´ø¿íÊÕÈ¡²»Í¬µÄÐéÄâ·þÎñÆ÷·ÑÓá£Äú¿ÉÒÔÔÚÁ½·½Ãæ½øÐÐÏÞÖÆ£º´ø¿í´óСºÍÁ¬½ÓÊýÄ¿¡£

Sun ONE Application Server ÌṩµÄ·þÎñÖÊÁ¿ÐÅÏ¢ÓÃÓÚ¸ù¾ÝÒÔϸ÷ÏîÈ·¶¨·þÎñÆ÷ÔÚÔËÐÐʱµÄЧÂÊ£º

  • Æô¶¯Ê±¼ä
  • ·þÎñÆ÷ͨÐÅÁ¿ºÍͨÐÅÁ¿¶Ô´ø¿íµÄÓ°Ïì
  • ʵʱÊý¾ÝÓ뾲̬Êý¾Ý·ÖÎö
  • ÆäËüÊý¾ÝÔªËØ

ÓйØÏêϸÐÅÏ¢£¬Çë²Î¼û¡°Ê¹Óà CLI ¹ÜÀíÊÂÎñ·þÎñ¡±¡£

ʹÓà CLI ÌáÈ¡¼àÊÓÊý¾Ý

ʹÓà asadmin ÃüÁÄú¿ÉÒÔͨ¹ýÃüÁîÐнçÃæ (CLI) ʹÓà list ºÍ get ÃüÁîÌáÈ¡¼àÊÓÊý¾Ý¡£



×¢Òâ

set ÃüÁî½öÓÃÓÚÉèÖÃÊÂÎñ·þÎñµÄ¼àÊÓ£¬È硰ʹÓà CLI ¹ÜÀíÊÂÎñ·þÎñ¡±ÖÐËùÊö¡£



±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺

list --monitor ÃüÁî

list ÃüÁîÌṩÓйص±Ç°¼àÊÓµÄÖ¸¶¨·þÎñÆ÷ʵÀýÃû³ÆµÄÓ¦ÓóÌÐò×é¼þºÍ×ÓϵͳµÄÐÅÏ¢¡£Ê¹ÓôËÃüÁÄú¿ÉÒԲ鿴ij¸ö·þÎñÆ÷ʵÀýµÄ¿É¼àÊÓ×é¼þºÍ×Ó×é¼þ¡£

ʾÀý£º

asadmin> list --monitor server1

·µ»ØÒÔÏÂÆôÓÃÁ˼àÊÓµÄÓ¦ÓóÌÐò×é¼þºÍ×ÓϵͳÁÐ±í£º

iiop-service
transaction-service
application.converter
application.myApp
http-server

Äú»¹¿ÉÒÔÁгöÖ¸¶¨µÄ·þÎñÆ÷ʵÀýÖе±Ç°Ëù¼àÊÓµÄÓ¦ÓóÌÐò¡£µ±Ê¹Óà get ÃüÁî´Óij¸öÓ¦ÓóÌÐòÖлñÈ¡Ìض¨µÄ¼àÊÓͳ¼ÆÊý¾Ýʱ£¬Õâ»áºÜÓÐÓá£

ʾÀý£º

asadmin> list --monitor server1.application

·µ»Ø£º

converter
myApp

Óйظü¸´ÔÓµÄʾÀý£¬Çë²Î¼û¡°Petstore ʾÀý¡±¡£

get --monitor ÃüÁî

´ËÃüÁî¼ìË÷ÒÔϼàÊÓÐÅÏ¢£º

  • ×é¼þ»ò×ÓϵͳÖмàÊÓµÄËùÓÐÊôÐÔ
  • ×é¼þ»ò×ÓϵͳÖмàÊÓµÄÌض¨ÊôÐÔ

Èç¹ûÌض¨×é¼þ»ò×ÓϵͳÖв»´æÔÚËùÇëÇóµÄÊôÐÔ£¬½«·µ»ØÒ»¸ö´íÎó¡£ÀàËƵأ¬Èç¹û×é¼þ»ò×ÓϵͳÖÐËùÇëÇóµÄÌض¨ÊôÐÔ´¦Óڷǻ״̬£¬Ò²»á·µ»ØÒ»¸ö´íÎó¡£

ÓйØʹÓà get ÃüÁîµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°CLI Ãû³ÆÓ³É䡱¡£

ʾÀý 1

³¢ÊÔ»ñȡij¸ö×ÓϵͳµÄij¸öÌض¨ÊôÐÔµÄËùÓÐÊôÐÔ£º

asadmin> get --monitor server1.iiop-service.orb.system.orb-connection.*

total-inbound-connections=1
total-outbound-connections=1

ʾÀý 2

³¢ÊÔ»ñȡij¸ö J2EE Ó¦ÓóÌÐòµÄËùÓÐÊôÐÔ£º

asadmin> get --monitor server1.application.converter.*

Attribute name(s) not found

¸Ã J2EE Ó¦ÓóÌÐò¼¶±ðÉÏûÓб©Â¶¿É¼àÊÓµÄÊôÐÔ£¬Òò´Ë¸ÃÃüÁîʧ°Ü¡£

ʾÀý 3

³¢ÊÔ»ñȡij¸ö×ÓϵͳµÄij¸öÌض¨ÊôÐÔ£º

asadmin> get --monitor server1.transaction-service.inflight-tx

Attribute name = inflight-tx Value = No active transaction found.

ʾÀý 4

³¢ÊÔ»ñȡij¸ö×ÓϵͳÊôÐÔÖеÄij¸öδ֪ÊôÐÔ£º

asadmin> get --monitor server1.iiop-service.orb.system.orb-connection.bad-name

Could not get the attribute

Execution failed for the command:get --monitor server1.iiop-service.orb-connection.bad-name

CLI Ãû³ÆÓ³Éä

Sun ONE Application Server ʹÓÃÊ÷½á¹¹À´¸ú×ٿɼàÊӵĶÔÏó¡£Ê÷ÖеÄÿ¸ö½Úµã¶¼¾ßÓÐÃû³ÆºÍÀàÐÍ¡£Èç¹ûÊǵ¥ÔªËØÀàÐÍ£¬ÔòÈÎÒ⸸½ÚµãÏÂÖ»ÄÜÓÐÒ»¸ö¸ÃÀàÐ͵Ľڵ㡣ÓйØÊ÷ÖнڵãÀàÐ͵ÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°¿É¼àÊӵĶÔÏóÀàÐÍ¡±¡£

Ê÷Öеĸù¶ÔÏóÓÉ Sun ONE Application Server ʵÀýÃû±íʾ¡£ÀýÈ磬ÃûΪ server1 µÄʵÀýµÄ¸ù¼àÊÓ¶ÔÏóΪ£º

server1

È»ºó£¬ËùÓÐ×Ó¶ÔÏó½«Ê¹Óõã×Ö·û (.) ×÷Ϊ·Ö¸ô·û½øÐÐÖ¸¶¨¡£Èç¹û×Ó½ÚµãÊǵ¥ÔªËØÀàÐÍ£¬ÔòÖ»ÐèҪʹÓüàÊÓ¶ÔÏóÀàÐÍÀ´Ö¸¶¨¶ÔÏó£»·ñÔò£¬ÐèҪʹÓà type.name Ãû³Æ¸ñʽÀ´Ö¸¶¨¶ÔÏó¡£

ÀýÈ磬http-server ÊÇÒ»ÖÖÓÐЧµÄ¿É¼àÊÓ¶ÔÏóÀàÐÍ£¬²¢ÇÒÊǵ¥ÔªËØÀàÐÍ¡£ÒªÖ¸¶¨±íʾʵÀý server1 µÄ http-server µÄµ¥ÔªËØÀàÐÍ×ӽڵ㣬¸ÃÃû³ÆΪ£º

server1.http-server

ÔÙ±ÈÈ磬application ÊÇÒ»ÖÖÓÐЧµÄ¿É¼àÊÓ¶ÔÏóÀàÐÍ£¬²¢ÇÒÊǷǵ¥ÔªËØÀàÐÍ¡£ÒªÖ¸¶¨±íʾӦÓóÌÐò Petstore µÄ·Çµ¥ÔªËØÀàÐÍ×ӽڵ㣬¸ÃÃû³ÆΪ£º

server1.application.petstore

CLI Ãû³Æ»¹¿ÉÒÔÖ¸¶¨¿É¼àÊÓ¶ÔÏóÖеÄÌض¨ÊôÐÔ¡£ÀýÈ磬http-server ¾ßÓÐÒ»¸öÃûΪ summary µÄ¿É¼àÊÓÊôÐÔ¡£ÒÔÏÂÃû³ÆÖ¸¶¨Á˸à summary ÊôÐÔ£º

server1.http-server.summary

¼àÊÓ¶ÔÏóËù±©Â¶µÄÊôÐÔÃûûÓй̶¨µÄÃüÃû¹æ·¶¡£

ͨ³£Çé¿öÏÂÄú²»ÐèÒªÖªµÀÒªÔÚ CLI ÖÐʹÓõÄÓÐЧÃû³Æ£¬Äú¿ÉÒÔͨ¹ýʹÓà list ÃüÁî¼ì²é¿ÉÓõĿɼàÊÓ¶ÔÏó£¬Ò²¿ÉÒÔʹÓôøÓÐͨÅä·û²ÎÊýµÄ get ÃüÁîÔò¼ì²éÈÎÒâ¿É¼àÊÓ¶ÔÏóµÄËùÓпÉÓÃÊôÐÔ¡£

ÒÔÏÂʾÀýÏÔʾÁËijЩ¿Í»§»úÃû³ÆÓ³ÉäÇé¿ö£º

Petstore ʾÀý

Óû§Òª¼ì²é¶Ôij·½·¨µÄµ÷ÓôÎÊý£¬¸Ã·½·¨Î»ÓÚ²¿ÊðÔÚÃûΪ server1 µÄ Sun ONE Application Server ʵÀýÉ쵀 Petstore Ó¦ÓóÌÐòÖС£ÕâÀïͬʱʹÓÃÁË list ºÍ get ÃüÁÒÔ·ÃÎʸ÷½·¨µÄËùÏ£ÍûµÄͳ¼ÆÊý¾Ý¡£

  1. ÒÔ¶àģʽµ÷Óà CLI¡£
  2. ÉèÖÃһЩÓÐÓõĻ·¾³±äÁ¿£¬ÒÔ±ÜÃâʹÓÃÿ¸öÃüÁîʱ¶¼ÊäÈëÕâЩ±äÁ¿£º
  3. asadmin>export AS_ADMIN_USER=admin AS_ADMIN_PASSWORD=admin123

    asadmin>export AS_ADMIN_HOST=localhost AS_ADMIN_PORT=4848

  4. ÁгöʵÀý server1 µÄ¿É¼àÊÓ×é¼þ£º
  5. asadmin>list --monitor server1

    Êä³öΪ£º
    iiop-service
    transaction-service
    application.CometEJB
    application.ConverterApp
    application.petstore
    http-server
    resources

    ¿É¼àÊÓ×é¼þÁбí°üÀ¨ iiop-service¡¢http-server, transaction-service¡¢resources ÒÔ¼°ËùÓв¿Ê𣨼°ÆôÓ㩵ÄÓ¦ÓóÌÐò¡£

  6. Áгö Petstore Ó¦ÓóÌÐòÖеĿɼàÊÓ×Ó×é¼þ£¨¿ÉÒÔÓà -m ´úÌæ --monitor£©£º
  7. asadmin>list -m server1.application.petstore

    Êä³öΪ£º
    ejb-module.signon-ejb_jar
    ejb-module.catalog-ejb_jar
    ejb-module.uidgen-ejb_jar
    ejb-module.customer-ejb_jar
    ejb-module.petstore-ejb_jar
    ejb-module.AsyncSenderJAR_jar
    ejb-module.cart-ejb_jar

  8. Áгö Petstore Ó¦ÓóÌÐòµÄ EJB Ä£¿é sigon-ejb_jar ÖеĿɼàÊÓ×Ó×é¼þ£º
  9. asadmin>list -m server1.application.petstore.ejb-module.signon-ejb_jar

    Êä³öΪ£º
    entity-bean.UserEJB
    stateless-session-bean.SignOnEJB

  10. Áгö Petstore Ó¦ÓóÌÐòµÄ EJB Ä£¿é sigon-ejb_jar µÄʵÌå bean UserEJB ÖеĿɼàÊÓ×Ó×é¼þ£º
  11. asadmin>list -m server1.application.petstore.ejb-module.signon-ejb_jar.entity-bean.UserEJB

    Êä³öΪ£º
    bean-method.create0
    bean-method.findByPrimaryKey1
    bean-method.remove2
    bean-method.getUserName3
    bean-method.setPassword4
    bean-method.getPassword5
    bean-method.matchPassword6
    bean-method.remove7
    bean-method.isIdentical8
    bean-method.getEJBLocalHome9
    bean-method.getPrimaryKey10
    bean-pool
    bean-cache

  12. ÁгöʵÌå bean UserEJB£¨Î»ÓÚ Petstore Ó¦ÓóÌÐòµÄ EJB Ä£¿é sigon-ejb_jar ÖУ©µÄ·½·¨ getUserName3 µÄ¿É¼àÊÓ×Ó×é¼þ£º
  13. asadmin>list -m server1.application.petstore.ejb-module.signon-ejb_jar.entity-bean.UserEJB.bean-method.getUserNam e3

    Êä³öΪ£º

    No monitorable entities for element
    server1.application.petstore.ejb-module.signon-ejb_jar.entity-bean.UserEJB.bean-method.getUserNam e3

  14. ¸Ã·½·¨Ã»ÓпɼàÊÓµÄ×Ó×é¼þ¡£»ñÈ¡·½·¨ getUserName3 µÄËùÓпɼàÊÓµÄͳ¼ÆÊý¾Ý¡£
  15. asadmin>get -m server1.application.petstore.ejb-module. signon-ejb_jar.entity-bean.UserEJB.bean-method.getUserName3.*
    method-name = public abstract java.lang.String com.sun.j2ee.blueprints.signon.user.ejb.UserLocal.getUserName()
    total-num-errors = 0
    total-num-success = 2
    execution-time-millis = 1
    total-num-calls = 2

  16. ÄúÒ²¿ÉÒÔ»ñÈ¡Ìض¨µÄͳ¼ÆÊý¾Ý£¬ÀýÈçÖ´ÐÐʱ¼ä¡£
  17. asadmin>get -m server1.application.petstore.ejb-module. signon-ejb_jar.entity-bean.UserEJB.bean-method.getUserName3.execution-time-millis
    execution-time-millis = 1

¿É¼àÊӵĶÔÏóÀàÐÍ

ÓÃÓÚ¼àÊӵĶÔÏóÊ÷°üº¬¶à¸ö½Úµã¡£½ÚµãÊǶÔÏóÊ÷ÖеÄÌض¨ÌõÄ¿£¬ÓÉËüµÄÀàÐÍ¡¢Ãû³Æ¼°¸¸½ÚµãΨһ±êʶ¡£Ä³Ð©½ÚµãÀàÐÍÊǵ¥ÔªËØÀàÐÍ£¬ÕâÒâζ×ÅÔÚ¸¸½ÚµãÏÂÖ»ÄÜ´æÔÚÒ»¸ö¸ÃÀàÐ͵Ľڵ㡣µ¥ÔªËØÀàÐ͵Ľڵ㲢²»ÐèÒªÃû³Æ¡£

·Çµ¥ÔªËØÀàÐ͵ĽڵãÐèÒªÃû³Æ¡£¡°ÊµÀýÃû¡±ÁÐÃèÊöÁË¿ÉÄܵÄÃû³Æ¿Õ¼ä¡£

ÏÂ±í°´ÕÕ¸÷ÖÖ½ÚµãÀàÐÍÖ®¼äµÄ¸¸×Ó¹ØϵÃèÊöÁËÊ÷½á¹¹²¢ÁгöÁËijЩ½ÚµãÀàÐ͵ÄÃû³Æ¿Õ¼ä¡£

   ¼àÊÓ¶ÔÏóÀàÐÍ 

½ÚµãÀàÐÍ

µ¥ÔªËØ£¿

Ò¶£¿

×Ó½ÚµãÀàÐÍ

ʵÀýÃû

root

 

ÊÇ

 

·ñ

 

http-server iiop-service
resources
transaction-service application standalone-ejb-module

 

 

http-server

 

ÊÇ

 

·ñ

 

virtual-server
process

 

 

virtual-server

 

ÊÇ

 

ÊÇ

 

 

 

process

 

ÊÇ

 

ÊÇ

 

 

 

iiop-service

 

ÊÇ

 

ÊÇ

 

orb

 

 

orb

 

·ñ

 

·ñ

 

orb-connection orb-thread-pool

 

Ϊϵͳ ORB ±£ÁôÁË system¡£ËùÓÐÓû§ ORB ¶¼»ñÈ¡Ò»¸öÔ´×Ô TCP ¶ËµãµÄÃû³Æ¡£

 

orb-connection

 

ÊÇ

 

ÊÇ

 

 

 

orb-thread-pool

 

ÊÇ

 

ÊÇ

 

 

 

resources

 

ÊÇ

 

·ñ

 

jdbc-connection-pool

 

 

jdbc-connection-pool

 

·ñ

 

ÊÇ

 

 

ÕâЩÃû³ÆÓëÓû§´´½¨Á¬½Ó³Øʱָ¶¨µÄÃû³ÆÏàͬ¡£

 

transaction-service

 

ÊÇ

 

ÊÇ

 

 

 

application

 

·ñ

 

·ñ

 

ejb-module

 

ÔÚ server.xml ÖÐ×¢²áµÄÓ¦ÓóÌÐòµÄÃû³Æ¡£

 

ejb-module

 

·ñ

 

·ñ

 

stateless-session-bean stateful-session-bean entity-bean message-driven-bean

 

EJB Ä£¿éµÄÃû³Æ¡£ËüÔ´×Ô EJB JAR Ãû³Æ¡£

 

standalone-ejb-module

 

·ñ

 

·ñ

 

stateless-session-bean stateful-session-bean entity-bean message-driven-bean

 

ÔÚ server.xml ÖÐ×¢²áµÄ¶ÀÁ¢ EJB Ä£¿éµÄÃû³Æ¡£

 

stateless-session-bean

 

·ñ

 

·ñ

 

bean-pool
bean-method

 

²¿ÊðÃèÊö·ûÖÐµÄ bean Ãû³Æ¡£

 

stateful-session-bean

 

·ñ

 

·ñ

 

bean-cache
bean-method

 

²¿ÊðÃèÊö·ûÖÐµÄ bean Ãû³Æ¡£

 

entity-bean

 

·ñ

 

·ñ

 

bean-cache
bean-pool
bean-method

 

²¿ÊðÃèÊö·ûÖÐµÄ bean Ãû³Æ¡£

 

message-driven-bean

 

·ñ

 

·ñ

 

bean-pool
bean-method

 

²¿ÊðÃèÊö·ûÖÐµÄ bean Ãû³Æ¡£

 

bean-pool

 

ÊÇ

 

ÊÇ

 

 

 

bean-cache

 

ÊÇ

 

ÊÇ

 

 

 

bean-method

 

·ñ

 

ÊÇ

 

 

¶ÔÓÚÏûÏ¢Çý¶¯µÄ bean£¬ÆäÃû³ÆÊÇ onMessage£¬ËüÊÇ·½·¨Ãûºó¸úÒ»¸ö±íʾÆäËüÆóÒµ bean µÄÊý×Öºó׺£¨¸Ãºó׺ÓÃÀ´Î¨Ò»±êʶ¹ýÔصķ½·¨¡££©

 

¿É¼àÊÓµÄÊôÐÔÃû

²¢·Çÿ¸ö¿É¼àÊÓ¶ÔÏó¶¼ÐèÒª±©Â¶Æä¿É¼àÊÓÊôÐÔ¡£Ä³Ð©¶ÔÏóÖ»ÊÇÓÃÀ´±à×éÆäËü¶ÔÏ󡣶ÔÓÚ Sun ONE Application Server£¬³ýÁËÒ»¸ö http-server ½ÚµãÍ⣬ֻÓÐÊ÷µÄÒ¶½Úµã¾ßÓÐÊôÐÔ¡£http-server ½ÚµãÀàÐͼȾßÓÐ×ӽڵ㣬Ҳ¾ßÓÐÊôÐÔ¡£Ï±íÁгöÁ˸÷ÖÖ½ÚµãµÄ¿ÉÄܵĿɼàÊÓÊôÐÔÃû¡£

   http-server

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

summary

 

×Ö·û´®£¨¾ßÓиñʽ£©

 

HTTP ·þÎñÆ÷ÕªÒª¡£°üÀ¨ÐéÄâ·þÎñÆ÷ºÍ½ø³Ì¡£

×¢Ò⣺ÓйؾßÓиñʽµÄ×Ö·û´®Öб©Â¶ÁËÄÄЩÊý¾ÝµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°HTTP ·þÎñÆ÷µÄ¿É¼àÊÓ¶ÔÏó¡±Ò»½Ú¡£

 

   virtual-server

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

<vs-id>

 

×Ö·û´®£¨¾ßÓиñʽ£©

 

ÐéÄâ·þÎñÆ÷ÐÅÏ¢¡£Ã¿¸öÓ¦ÓóÌÐò·þÎñÆ÷ʵÀý¶¼¿ÉÄÜÓÐÒ»¸ö»ò¶à¸öÐéÄâ·þÎñÆ÷¡£¿ÉÒÔ´Ó http-server µÄÕªÒª (summary ) ÊôÐÔ»ñÈ¡ÐéÄâ·þÎñÆ÷ ID µÄÁÐ±í¡£¿ÉÒÔʹÓà server1.http-server.virtual-server.<vs-id> ¸ñʽµÄ get ÃüÁî²ÎÊý²éÕÒÌض¨ÐéÄâ·þÎñÆ÷µÄͳ¼ÆÊý¾Ý¡£¿ÉÒÔʹÓà server1.http-server.virtual-server.* ¸ñʽµÄ get ÃüÁî²ÎÊý²éÕÒËùÓÐÐéÄâ·þÎñÆ÷µÄͳ¼ÆÊý¾Ý¡£

×¢Ò⣺ÓйؾßÓиñʽµÄ×Ö·û´®Öб©Â¶ÁËÄÄЩÊý¾ÝµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°HTTP ·þÎñÆ÷µÄ¿É¼àÊÓ¶ÔÏó¡±Ò»½Ú¡£

 

   process

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

<pid>

 

×Ö·û´®£¨¾ßÓиñʽ£©

 

½ø³ÌÐÅÏ¢¡£Ã¿¸öÓ¦ÓóÌÐò·þÎñÆ÷ʵÀý¶¼ÓÐÒ»¸ö½ø³Ì¡£¿ÉÒÔ´Ó http-server µÄÕªÒª (summary ) ÊôÐÔ»ñÈ¡½ø³Ì ID¡£¿ÉÒÔʹÓà server1.http-server.process.<pid> ¸ñʽµÄ get ÃüÁî²ÎÊý»ñÈ¡½ø³ÌµÄͳ¼ÆÊý¾Ý¡£

×¢Ò⣺ÓйؾßÓиñʽµÄ×Ö·û´®Öб©Â¶ÁËÄÄЩÊý¾ÝµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°HTTP ·þÎñÆ÷µÄ¿É¼àÊÓ¶ÔÏó¡±Ò»½Ú¡£

 

   orb-connection 

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

total-inbound-connections

 

ÕûÊý

 

ÖÁ ORB µÄÈëÕ¾Á¬½Ó×ÜÊý¡£

 

total-outbound-connections

 

ÕûÊý

 

×Ô ORB µÄ³öÕ¾Á¬½Ó×ÜÊý¡£ 

 

   orb-thread-pool  

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

thread-pool-size

 

ÕûÊý

 

ORB Ï̳߳ØÖеÄÏß³Ì×ÜÊý¡£

 

waiting-thread-count

 

ÕûÊý

 

µÈ´ý¹¤×÷µ½À´µÄÏ̳߳ØÏß³ÌÊý¡£

 

   jdbc-connection-pool 

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

total-threads-waiting

 

ÕûÊý

 

µÈ´ý JDBC Á¬½ÓµÄÏß³Ì×ÜÊý¡£

 

total-outbound-connections

 

ÕûÊý

 

JDBC Á¬½ÓÑé֤ʧ°Ü×ÜÊý¡£

 

total-connections-timed-out

 

ÕûÊý

 

³¬Ê±µÄÁ¬½ÓÇëÇó×ÜÊý¡£

 

   transaction-service 

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

total-tx-completed

 

ÕûÊý

 

Íê³ÉµÄÊÂÎñ×ÜÊý¡£

 

total-tx-rolled-back

 

ÕûÊý

 

»Ø¹öµÄÊÂÎñ×ÜÊý¡£

 

total-tx-inflight

 

ÕûÊý

 

ÕýÔÚÖ´ÐУ¨»î¶¯£©µÄÊÂÎñ×ÜÊý¡£

 

isFrozen

 

×Ö·û´®

 

ÊÂÎñϵͳÊÇ·ñ±»¶³½á£¨True »ò False£©£¿

 

inflight-tx

 

×Ö·û´®£¨¾ßÓиñʽ£©

 

ÕýÔÚÖ´ÐеÄÊÂÎñÁÐ±í¡£

 

   bean-pool 

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

max-pool-size

 

ÕûÊý

 

³ØÖÐ bean ʵÀýµÄ×î´óÊýÄ¿¡£ 

 

steady-pool-size

 

ÕûÊý

 

³ØÖÐͨ³£±£ÁôµÄ bean ʵÀýÊý¡£Ê״δ´½¨³Øʱ£¬³ØµÄ×Ü×°´óСµÈÓÚ steady-pool-size¡£´Ó³ØÖÐɾ³ýʵÀýʱ£¬³Ø½«±»Òì²½²¹³ä£¬ËùÒԳصĴóС½«µÈÓÚ»ò´óÓÚ steady-pool-size¡£

 

pool-resize-quantity

 

ÕûÊý

 

³ØÔö³¤µ½ max-pool-size »òËõСµ½ steady-pool-size  µÄÔöÁ¿¡£

 

idle-timeout-in-seconds

 

ÕûÊý

 

¶¨Òå³ØÇå³ýÏ̵߳ÄÖ´ÐÐƵÂÊ¡£¼ì²é³ØµÄµ±Ç°´óСÊÇ·ñ´óÓÚ steady-pool-size¡£Èç¹û´óÓÚ£¬Ôòɾ³ý pool-resize-quantity ÔªËØ£»Èç¹ûСÓÚ£¬ÔòÔö¼Ó pool-resize-quantity£¬µ«²»»á³¬¹ý min (current-pool-size+pool - resize-quantity, max-pool-size)¡£Ö»Ó屶ÔÏóÔÚ pool-idle-timeout-in-seconds ʱ¼äÄÚδ±»·ÃÎÊʱ£¬²ÅÄÜɾ³ý¸Ã¶ÔÏó¡£ 

 

num-beans-in-pool

 

ÕûÊý

 

³ØÖпÉÓà bean µÄÊýÄ¿¡£ 

 

num-threads-waiting

 

ÕûÊý

 

µÈ´ý¿ÕÏÐ bean µÄÏß³ÌÊý¡£

 

total-beans-created

 

ÕûÊý

 

µ½Ä¿Ç°ÎªÖ¹´´½¨µÄ bean µÄÊýÄ¿¡£ 

 

total-beans-destroyed

 

ÕûÊý

 

µ½Ä¿Ç°ÎªÖ¹ÆÆ»µµÄ bean µÄÊýÄ¿¡£

 

jms-max-messages-load

 

ÕûÊý

 

ΪʹÏûÏ¢Çý¶¯µÄ bean Ìṩ·þÎñ¶øÒ»´Î¼ÓÔص½ JMS »á»°ÖеÄ×î´óÏûÏ¢Êý¡£Ä¬ÈÏֵΪ 1¡£½öÊÊÓÃÓÚÏûÏ¢Çý¶¯µÄ bean µÄ³Ø¡£

 

   bean-cache 

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

cache-resize-quantity (resize-quantity)

 

ÕûÊý

 

µ±¸ßËÙ»º´æÖÐ bean µÄÊýÄ¿µÈÓÚ max-cache-size ʱ£¨¼´·¢Éú¸ßËÙ»º´æÒç³öʱ£©£¬¸ßËÙ»º´æµÄ´óСËù¼õÉÙµÄÊýÁ¿¡£

 

cache-misses

 

ÕûÊý

 

Óû§ÇëÇóδÔÚ¸ßËÙ»º´æÖÐÕÒµ½ bean µÄ´ÎÊý¡£

 

idle-timeout-in-seconds

 

ÕûÊý

 

Ëù°²ÅŵĸßËÙ»º´æÇå³ýÆ÷Ï̵߳ÄÖ´ÐÐƵÂÊ¡£´ËÇå³ýÆ÷Ï߳̽«¼ì²é¸ßËÙ»º´æÖеÄËùÓÐ bean ²¢¹ÒÆðÄÇЩÔÚ cache-idle-timeout-in-seconds ʱ¼äÄÚûÓб»·ÃÎ浀 bean¡£

 

cache-hits

 

ÕûÊý

 

Óû§ÇëÇóÔÚ¸ßËÙ»º´æÖÐÕÒµ½Ä³ÌõÄ¿µÄ´ÎÊý¡£

 

total-beans-in-cache

 

ÕûÊý

 

¸ßËÙ»º´æÖÐ bean µÄÊýÄ¿¡£ÕâÊǸßËÙ»º´æµÄµ±Ç°´óС¡£

 

max-beans-in-cache

 

ÕûÊý

 

¸ßËÙ»º´æÖпɱ£ÁôµÄ bean µÄ×î´óÊýÄ¿£¬³¬¹ý´ËÖµ½«·¢Éú¸ßËÙ»º´æÒç³ö¡£

 

num-passivations

 

ÕûÊý

 

±»¹ÒÆðµÄÊýÄ¿¡£½öÊÊÓÃÓÚ״̬»á»° bean¡£

 

num-passivation-errors

 

ÕûÊý

 

¹ÒÆðʱµÄ´íÎóÊý¡£½öÊÊÓÃÓÚ״̬»á»° bean¡£

 

num-expired-sessions-removed

 

ÕûÊý

 

Çå³ýÏß³Ìɾ³ýµÄ¹ýÆڻỰÊý¡£½öÊÊÓÃÓÚ״̬»á»° bean¡£

 

num-passivation-success

 

ÕûÊý

 

³É¹¦Íê³É¹ÒÆðµÄ´ÎÊý¡£½öÊÊÓÃÓÚ״̬»á»° bean¡£

 

   bean-method 

ÊôÐÔÃû

Êý¾ÝÀàÐÍ

˵Ã÷

method-name

 

×Ö·û´®

 

·½·¨µÄÈ«ÏÞ¶¨Ãû³Æ¡£

 

total-num-calls

 

ÕûÊý

 

·½·¨±»µ÷ÓõĴÎÊý¡£Èç¹ûÆôÓÃÁË EJB ÈÝÆ÷µÄ¼àÊÓ£¬Ôò»áΪÎÞ״̬»á»° bean¡¢×´Ì¬»á»° bean ÒÔ¼°ÊµÌå bean ÊÕ¼¯´ËÊý¾Ý£»Èç¹ûÆôÓÃÁËÏûÏ¢Çý¶¯µÄ bean ÈÝÆ÷µÄ¼àÊÓ£¬Ôò»áΪÏûÏ¢Çý¶¯µÄ bean ÊÕ¼¯´ËÊý¾Ý¡£

 

total-num-errors

 

ÕûÊý

 

·½·¨Ö´ÐÐʱ³öÏÖÒì³£µÄ´ÎÊý¡£Èç¹ûÔÚ EJB ÉèÖÃÏÂÆôÓÃÁ˼àÊÓ£¬Ôò»áΪÎÞ״̬»á»° bean¡¢×´Ì¬»á»° bean ÒÔ¼°ÊµÌå bean ÊÕ¼¯´ËÊý¾Ý£»Èç¹ûÔÚ MDB ÉèÖÃÏÂÆôÓÃÁ˼àÊÓ£¬Ôò»áΪÏûÏ¢Çý¶¯µÄ bean ÊÕ¼¯´ËÊý¾Ý¡£

 

total-num-success

 

ÕûÊý

 

·½·¨³É¹¦Ö´ÐеĴÎÊý¡£Èç¹ûÆôÓÃÁË EJB ÈÝÆ÷µÄ¼àÊÓ£¬Ôò»áΪÎÞ״̬»á»° bean¡¢×´Ì¬»á»° bean ÒÔ¼°ÊµÌå bean ÊÕ¼¯´ËÊý¾Ý£»Èç¹ûÆôÓÃÁËÈÝÆ÷µÄ¼àÊÓ£¬Ôò»áΪÏûÏ¢Çý¶¯µÄ bean ÊÕ¼¯´ËÊý¾Ý¡£

 

execution-time-millis

 

³¤ÐÍ

 

×îºóÒ»´Î³É¹¦ÔËÐд˷½·¨Ê±´Ë·½·¨µÄÖ´ÐÐʱ¼ä¡£Èç¹ûÆôÓÃÁË EJB ÈÝÆ÷µÄ¼àÊÓ£¬Ôò»áΪÎÞ״̬»á»° bean¡¢×´Ì¬»á»° bean ÒÔ¼°ÊµÌå bean ÊÕ¼¯´ËÊý¾Ý£»Èç¹ûÆôÓÃÁËÈÝÆ÷µÄ¼àÊÓ£¬Ôò»áΪÏûÏ¢Çý¶¯µÄ bean ÊÕ¼¯´ËÊý¾Ý¡£

 

HTTP ·þÎñÆ÷µÄ¿É¼àÊÓ¶ÔÏó

HTTP ·þÎñÆ÷µÄ¿É¼àÊÓÊôÐÔÃû summary ½«ÏÔʾ Server ÔªËصÄÊôÐÔÖµ¼°Æä×ÓÔªËصÄÕªÒª£¬°üÀ¨Ã¿¸ö×ÓÔªËصÄÊýÄ¿¼°Ã¿¸ö×ÓÔªËصÄÊôÐÔÖµ¡£HTTP ·þÎñÆ÷µÄ virtual-server ÊôÐÔ½«ÏÔʾ VirtualServer ÔªËصÄÊôÐÔÖµ¼°Æäÿ¸ö×ÓÔªËصÄÏêϸ×ÊÁÏ¡£process ÊôÐÔ½«ÏÔʾ Process ÔªËصÄÊôÐÔÖµ¼°Æäÿ¸ö×ÓÔªËصÄÏêϸ×ÊÁÏ¡£

ÒªÆôÓà NSAPI ÐÔÄÜ̽²é²¢»ñÈ¡ Profile ºÍ ProfileBucket ÔªËصÄͳ¼ÆÊý¾Ý£¬Çë²Î¼û¡¶Sun ONE Application Server Developer's Guide to NSAPI¡·¡£

ÓйØÈçºÎʹÓüàÊÓͳ¼ÆÊý¾Ý½øÐÐÐÔÄÜÓÅ»¯µÄÐÅÏ¢£¬Çë²Î¼û¡¶Sun ONE Application Server Performance and Tuning Guide¡·¡£

¿É¼àÊ HTTP ·þÎñÆ÷ÔªËØ

ϱíÁгöÁË HTTP ·þÎñÆ÷µÄ¿É¼àÊÓÔªËØ¡£

   ¿É¼àÊ HTTP ·þÎñÆ÷ÔªËØ 

ÔªËØÃû

×ÓÔªËØ

˵Ã÷

Server

 

ConnectionQueue
ThreadPool
Profile
Process
VirtualServer

 

·þÎñÆ÷ʵÀý¡£

 

ConnectionQueue

 

ÎÞ

 

¸Ã¶ÓÁÐÖеÄÇëÇóÓÅÏÈÓÚÕýÔÚ±»·þÎñµÄÇëÇó¡£Sun ONE Application Server 7 ÖÐÖ»ÓÐÒ»¸öÁ¬½Ó¶ÓÁС£

 

ThreadPool

 

ÎÞ

 

ÔÚ init.conf ÎļþÖж¨ÒåµÄÏ̳߳ء£

 

Profile

 

ÎÞ

 

ÔÚ init.conf ÎļþÖж¨ÒåµÄ NSAPI ÐÔÄܸÅҪͰ¡£

 

Process

 

ConnectionQueueBucketThreadPoolBucket
DnsBucket
DnsBucket
KeepaliveBucket
CacheBucket
Thread

 

·þÎñÆ÷ʵÀýÖеĵ¥¸ö·þÎñÆ÷½ø³Ì¡£

 

ConnectionQueueBucket

 

ÎÞ

 

¸ú×ÙÓëÌض¨ ConnectionQueue ÓйصÄͳ¼ÆÊý¾Ý¡£

 

ThreadPoolBucket

 

ThreadPoolBucket

 

¸ú×ÙÓëÌض¨ ThreadPool ÓйصÄͳ¼ÆÊý¾Ý¡£

 

DnsBucket

 

ÎÞ

 

¸ú×Ù DNS ͳ¼ÆÊý¾Ý¡£

 

KeepaliveBucket

 

ÎÞ

 

¸ú×Ù±£³Ö»î¶¯£¨ÓÀ¾ÃÁ¬½Ó£©µÄͳ¼ÆÊý¾Ý¡£

 

CacheBucket

 

ÎÞ

 

¸ú×ÙÎļþ¸ßËÙ»º´æ (NSFC) ͳ¼ÆÊý¾Ý¡£

 

Thread

 

RequestBucket ProfileBucket

 

ÃèÊöÁËij¸öÇëÇó´¦ÀíÏ̡߳£

 

VirtualServer

 

RequestBucket
ProfileBucket

 

ÃèÊöÁËij¸öÐéÄâ·þÎñÆ÷¡£

 

RequestBucket

 

ÎÞ

 

¸ú×ÙÓëÇëÇóÏà¹ØµÄͳ¼ÆÊý¾Ý¡£

 

ProfileBucket

 

 

¸ú×ÙÓë Profile ÔªËØÓйصÄͳ¼ÆÊý¾Ý¡£

 

¿É¼àÊ HTTP ·þÎñÆ÷ÊôÐÔ

ϱíÁгöÁË HTTP ·þÎñÆ÷µÄ¿É¼àÊÓÊôÐÔ¡£

   Server 

ÊôÐÔÃû

Öµ

˵Ã÷

Id

 

 

·þÎñÆ÷ʵÀý ID£¨ÀýÈ磬server1£©¡£

 

VersionServer

 

 

°üº¬ Sun ONE Application Server °æ±¾µÄ×Ö·û´®¡£

 

TimeStarted

 

GMT

 

´Ë·þÎñÆ÷ʵÀýµÄÆô¶¯Ê±¼ä¡£

 

SecondsRunning

 

 

´Ë·þÎñÆ÷ʵÀýÆô¶¯ºóµÄÔËÐÐʱ¼ä£¨ÃëÊý£©¡£

 

TicksPerSecond

 

 

ÿÃëµÄÖÜÆÚÊý¡£´ËÖµÓÉϵͳ¾ö¶¨¡£

 

MaxProcs

 

 

×î´ó½ø³ÌÊý¡£

 

MaxThreads

 

 

×î´ó´¦ÀíÏß³ÌÊý¡£

 

MaxVirtualServers

 

 

Ëù¸ú×ÙµÄÐéÄâ·þÎñÆ÷µÄ×î´óÊýÄ¿¡£

 

FlagProfilingEnabled

 

0£¨¹Ø£©£¬1£¨¿ª£©

 

ָʾÊÇ·ñÆôÓÃÁË NSAPI ÐÔÄÜ̽²é£¨ÆôÓÃʱΪ 1£©¡£

 

FlagVirtualServerOverflow

 

0£¨·ñ£©£¬1£¨ÊÇ£©

 

ָʾÊÇ·ñÅäÖÃÁ˶àÓÚ MaxVirtualServers µÄÐéÄâ·þÎñÆ÷£¨¶àÓÚʱΪ 1£©¡£Èç¹û´ËÊôÐÔÉèÖÃΪ 1£¬Ôò²¢·ÇËùÓÐÐéÄâ·þÎñÆ÷µÄͳ¼ÆÊý¾Ý¶¼±»¸ú×Ù¡£

 

LoadMinuteAverage

 

 

1 ·ÖÖÓÄڵĸºÔØƽ¾ùÖµ¡£

 

Load5MinuteAverage

 

 

5 ·ÖÖÓÄڵĸºÔØƽ¾ùÖµ¡£

 

Load15MinuteAverage

 

 

15 ·ÖÖÓÄڵĸºÔØƽ¾ùÖµ¡£

 

RateBytesTransmitted

 

ÿÃë×Ö½ÚÊý

 

ij¸ö·þÎñÆ÷¶¨ÒåµÄʱ¼ä¼ä¸ôÄÚÊý¾ÝµÄ´«ÊäËÙÂÊ¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

RateBytesReceived

 

ÿÃë×Ö½ÚÊý

 

ij¸ö·þÎñÆ÷¶¨ÒåµÄʱ¼ä¼ä¸ôÄÚÊý¾ÝµÄ½ÓÊÕËÙÂÊ¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

   ConnectionQueue 

ÊôÐÔÃû

Öµ

˵Ã÷

Id

 

 

Á¬½Ó¶ÓÁÐ ID¡£

 

   ThreadPool 

ÊôÐÔÃû

Öµ

˵Ã÷

Id

 

 

Ïß³Ì³Ø ID¡£

 

Ãû³Æ

 

 

Ï̳߳صķûºÅÃû³Æ¡£

 

   Profile 

ÊôÐÔÃû

Öµ

˵Ã÷

Id

 

 

NSAPI ÐÔÄܸÅҪͰ ID¡£

 

Ãû³Æ

 

 

NSAPI ÐÔÄܸÅҪͰµÄ·ûºÅÃû³Æ¡£

 

˵Ã÷

 

 

NSAPI ÐÔÄܸÅҪͰµÄ˵Ã÷¡£

 

   Process 

ÊôÐÔÃû

Öµ

˵Ã÷

Pid

 

 

Ψһ±êʶ´Ë½ø³ÌµÄ²Ù×÷ϵͳ½ø³Ì±êʶ·û¡£

 

Mode

 

unknown
active

 

´Ë½ø³Ì´¦Óڻ״̬ʱÏÔʾ¡°active¡±¡£

 

TimeStarted

 

GMT

 

´Ë½ø³ÌµÄÆô¶¯Ê±¼ä¡£

 

CountConfigurations

 

 

ijÅäÖñ»×°ÈëµÄ´ÎÊý¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

SizeVirtual

 

ǧ×Ö½Ú

 

´Ë½ø³ÌʹÓõÄÐéÄâÄÚ´æ´óС¡£

 

SizeResident

 

ǧ×Ö½Ú

 

´Ë½ø³ÌʹÓõÄפÁôÄÚ´æ´óС¡£

 

FractionSystemMemoryUsage

 

 

´Ë½ø³ÌʹÓõÄϵͳÄڴ沿·Ö¡£

 

   ConnectionQueueBucket 

ÊôÐÔÃû

Öµ

˵Ã÷

ConnectionQueue

 

 

ConnectionQueue ÔªËØµÄ ID¡£

 

CountTotalConnection

 

 

ÒѽÓÊܵÄÐÂÁ¬½Ó×ÜÊý¡£

 

CountQueued

 

 

µ±Ç°ÅŶӵÄÁ¬½ÓÊý¡£

 

PeakQueued

 

 

¶ÓÁÐÖÐͬʱ´æÔÚµÄ×î´óÁ¬½ÓÊý¡£

 

MaxQueued

 

 

¶ÓÁпÉÈÝÄɵÄ×î´óÁ¬½ÓÊý¡£

 

CountOverflow

 

 

¶ÓÁÐÌ«Âú¶øÎÞ·¨ÈÝÄÉÁ¬½ÓµÄ´ÎÊý¡£

 

CountTotalQueued

 

 

ÅŶӵÄÁ¬½Ó×ÜÊý¡£Ä³¸ö¸ø¶¨Á¬½Ó¿ÉÄܱ»¶à´ÎÅŶӣ¬Òò´Ë CountTotalQueued ¿ÉÄÜ´óÓÚ»òµÈÓÚ CountTotalConnections¡£

 

TicksTotalQueued

 

 

Á¬½ÓÔÚ¶ÓÁÐÖл¨·ÑµÄÖÜÆÚ×ÜÊý¡£ÖÜÆÚÊÇϵͳ¾ö¶¨µÄʱ¼äµ¥Î»£¬Çë²Î¼û TicksPerSecond¡£

 

   ThreadPoolBucket 

ÊôÐÔÃû

Öµ

˵Ã÷

Thread-pool

 

 

ThreadPool ÔªËØµÄ ID¡£

 

CountThreadsIdle

 

 

µ±Ç°´¦ÓÚ¿ÕÏÐ״̬µÄÇëÇó´¦ÀíÏß³ÌÊý¡£

 

CountThreads

 

 

ÇëÇó´¦ÀíÏ̵߳ÄÊýÄ¿¡£

 

MaxThreads

 

 

¿Éͬʱ´æÔÚµÄ×î´óÇëÇó´¦ÀíÏß³ÌÊý¡£

 

CountQueued

 

 

ÅŶӵȺò´ËÏ̳߳ش¦ÀíµÄÇëÇóÊý¡£

 

PeakQueued

 

 

¶ÓÁÐÖÐͬʱ´æÔÚµÄ×î´óÇëÇóÊý¡£

 

MaxQueued

 

 

¶ÓÁпÉÈÝÄɵÄ×î´óÇëÇóÊý¡£

 

   DnsBucket 

ÊôÐÔÃû

Öµ

˵Ã÷

FlagCacheEnabled

 

0£¨¹Ø£©£¬1£¨¿ª£©

 

ָʾÊÇ·ñÆôÓÃÁË DNS ¸ßËÙ»º´æ£¨ÆôÓÃʱΪ 1£©¡£

 

CountCacheEntries

 

 

µ±Ç°¸ßËÙ»º´æÖÐµÄ DNS ÌõÄ¿Êý¡£

 

MaxCacheEntries

 

 

¸ßËÙ»º´æ¿ÉÈÝÄɵÄ×î´ó DNS ÌõÄ¿Êý¡£

 

CountCacheHits

 

 

DNS ¸ßËÙ»º´æ²éÕҳɹ¦µÄ´ÎÊý¡£

 

CountCacheMisses

 

 

DNS ¸ßËÙ»º´æ²éÕÒʧ°ÜµÄ´ÎÊý¡£

 

FlagAsyncEnabled

 

0£¨¹Ø£©£¬1£¨¿ª£©

 

ָʾÊÇ·ñÆôÓÃÁËÒì²½ DNS ²éÕÒ£¨ÆôÓÃʱΪ 1£©¡£

 

CountAsyncNameLookups

 

 

ÒÑÖ´ÐеÄÒì²½ DNS Ãû³Æ²éÕÒ×ÜÊý¡£

 

CountAsyncAddrLookups

 

 

ÒÑÖ´ÐеÄÒì²½ DNS µØÖ·²éÕÒ×ÜÊý¡£

 

CountAsyncLookupsInProgress

 

 

µ±Ç°ÕýÔÚÖ´ÐеÄÒì²½ DNS ²éÕÒ×ÜÊý¡£

 

   KeepaliveBucket 

ÊôÐÔÃû

Öµ

˵Ã÷

CountConnections

 

 

µ±Ç°´¦ÓÚ±£³Ö»î¶¯Ä£Ê½µÄÁ¬½ÓÊý¡£

 

MaxConnections

 

 

ͬʱ±£³Ö»î¶¯µÄ×î´óÁ¬½ÓÊý

 

CountHits

 

 

´¦ÓÚ±£³Ö»î¶¯Ä£Ê½µÄÁ¬½ÓËæºó½øÐÐÁËÓÐЧÇëÇóµÄ×Ü´ÎÊý¡£

 

CountFlushes

 

 

·þÎñÆ÷¹Ø±Õ±£³Ö»î¶¯µÄÁ¬½ÓµÄ´ÎÊý¡£

 

CountTimeouts

 

 

±£³Ö»î¶¯µÄÁ¬½Ó³¬Ê±µÄ´ÎÊý¡£

 

SecondsTimeouts

 

 

³¬Ê±µÄÃëÊý£¬Ö®ºó·þÎñÆ÷½«¹Ø±Õ¿ÕÏеı£³Ö»î¶¯µÄÁ¬½Ó¡£

 

CountRefusals

 

 

·þÎñÆ÷¾Ü¾ø±£³Ö»î¶¯µÄÁ¬½ÓµÄ´ÎÊý¡£

 

   CacheBucket 

ÊôÐÔÃû

Öµ

˵Ã÷

FlagEnabled

 

0£¨¹Ø£©£¬1£¨¿ª£©

 

ָʾÊÇ·ñÆôÓÃÁËÎļþ¸ßËÙ»º´æ£¨ÆôÓÃʱΪ 1£©¡£

 

SecondsMaxAge

 

ÃëÊý

 

Îļþ¸ßËÙ»º´æÌõÄ¿µÄ×ÊÙÃü¡£

 

CountEntries

 

 

Îļþ¸ßËÙ»º´æÖеĵ±Ç°ÌõÄ¿Êý¡£

 

MaxEntries

 

 

Îļþ¸ßËÙ»º´æ¿ÉÒÔͬʱÈÝÄɵÄ×î´ó¸ßËÙ»º´æÌõÄ¿Êý¡£

 

CountOpenEntries

 

 

Óë´ò¿ªµÄÎļþ¹ØÁªµÄÌõÄ¿Êý¡£

 

MaxOpenEntries

 

 

Îļþ¸ßËÙ»º´æ¿ÉÒÔͬʱÈÝÄɵÄÓë´ò¿ªµÄÎļþ¹ØÁªµÄ¸ßËÙ»º´æÌõÄ¿µÄ×î´óÊýÄ¿¡£

 

SizeHeapCache

 

×Ö½ÚÊý

 

¸ßËÙ»º´æµÄÎļþÄÚÈÝʹÓõĶѵĴóС¡£

 

MaxHeapCacheSize

 

×Ö½ÚÊý

 

Îļþ¸ßËÙ»º´æÓÃÓÚ¸ßËÙ»º´æµÄÎļþÄÚÈݵÄ×î´ó¶Ñ´óС¡£

 

SizeMmapCache

 

×Ö½ÚÊý

 

ÄÚ´æÓ³ÉäµÄÎļþÄÚÈÝʹÓõĵØÖ·¿Õ¼ä´óС¡£

 

MaxMmapCacheSize

 

×Ö½ÚÊý

 

Îļþ¸ßËÙ»º´æÓÃÓÚÄÚ´æÓ³ÉäµÄÎļþÄÚÈݵÄ×î´óµØÖ·¿Õ¼ä´óС¡£

 

CountHits

 

 

¸ßËÙ»º´æÌõÄ¿²éÕҳɹ¦µÄ´ÎÊý¡£

 

CountMisses

 

 

¸ßËÙ»º´æÌõÄ¿²éÕÒʧ°ÜµÄ´ÎÊý¡£

 

CountInfoHits

 

 

ÎļþÐÅÏ¢²éÕҳɹ¦µÄ´ÎÊý¡£

 

CountInfoMisses

 

 

ÎļþÐÅÏ¢²éÕÒʧ°ÜµÄ´ÎÊý¡£

 

CountContentHits

 

 

ÄÚÈݲéÕҳɹ¦µÄ´ÎÊý¡£

 

CountContentMisses

 

 

ÄÚÈݲéÕÒʧ°ÜµÄ´ÎÊý¡£

 

   Thread 

ÊôÐÔÃû

Öµ

˵Ã÷

Mode

 

unknown¡¢idle¡¢DNS¡¢request¡¢processing¡¢response¡¢updating

 

Ïß³Ì×îºóµÄÒÑ֪״̬¡£

 

TimeStarted

 

GMT

 

´ËÏ̵߳ÄÆô¶¯Ê±¼ä¡£

 

ConnectionQueue

 

 

Ïß³ÌÕýÔÚ·þÎñµÄ ConnectionQueue µÄ ID¡£

 

   VirtualServer 

ÊôÐÔÃû

Öµ

˵Ã÷

Id

 

 

ÐéÄâ·þÎñÆ÷ ID¡£

 

Mode

 

unknown¡¢active

 

´ËÐéÄâ·þÎñÆ÷´¦Óڻ״̬ʱÏÔʾ¡°active¡±¡£

 

Hosts

 

 

´ËÐéÄâ·þÎñÆ÷Ëù·þÎñµÄÈí¼þÐéÄâ·þÎñÆ÷Ö÷»úÃû£¨ÀýÈ磬www.foo.com foo.com foo.isp.com£©¡£

 

Interfaces

 

 

ΪÆäÅäÖÃÁ˸ÃÐéÄâ·þÎñÆ÷µÄ½Ó¿Ú£¨¼àÌýÆ÷£©£¨ÀýÈ磬192.168.1.2:80 192.168.1.2:443£©¡£

 

   RequestBucket 

ÊôÐÔÃû

Öµ

˵Ã÷

CountRequests

 

 

ÒÑ·þÎñµÄÇëÇóÊý¡£

 

CountBytesReceived

 

 

ÊÕµ½µÄ×Ö½ÚÊý¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

CountBytesTransmitted

 

 

´«ÊäµÄ×Ö½ÚÊý¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

RateBytesTransmitted

 

ÿÃë×Ö½ÚÊý

 

ij¸ö·þÎñÆ÷¶¨ÒåµÄʱ¼ä¼ä¸ôÄÚÊý¾ÝµÄ´«ÊäËÙÂÊ¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

MaxByteTransmissionRate

 

 

ij¸ö·þÎñÆ÷¶¨ÒåµÄʱ¼ä¼ä¸ôÄÚÊý¾ÝµÄ×î´ó´«ÊäËÙÂÊ¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

CountOpenConnections

 

 

´ò¿ªµÄÁ¬½ÓµÄÊýÄ¿¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

MaxOpenConnections

 

 

´ò¿ªµÄÁ¬½ÓµÄ×î´óÊýÄ¿¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓã¬ÔòֵΪ 0¡£

 

Count2xx

 

 

ÒÑ·¢Ë굀 200 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count3xx

 

 

ÒÑ·¢Ë굀 300 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count4xx

 

 

ÒÑ·¢Ë굀 400 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count5xx

 

 

ÒÑ·¢Ë굀 500 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

CountOther

 

 

ÒÑ·¢ËÍµÄ·Ç 200¡¢300¡¢400 »ò 500 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count200

 

 

ÒÑ·¢Ë굀 200 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count302

 

 

ÒÑ·¢Ë굀 302 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count304

 

 

ÒÑ·¢Ë굀 304 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count400

 

 

ÒÑ·¢Ë굀 400 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count401

 

 

ÒÑ·¢Ë굀 401 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count403

 

 

ÒÑ·¢Ë굀 403 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count404

 

 

ÒÑ·¢Ë굀 404 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

Count503

 

 

ÒÑ·¢Ë굀 503 ¼¶ÏìÓ¦µÄÊýÄ¿¡£

 

   ProfileBucket 

ÊôÐÔÃû

Öµ

˵Ã÷

Profile

 

 

Profile ÔªËØµÄ ID¡£

 

Countcalls

 

 

NSAPI SAF µÄµ÷ÓôÎÊý¡£

 

CountRequests

 

 

ÒÑ´¦ÀíµÄÇëÇóÊý¡£

 

TicksDispatch

 

 

·Ö·¢ÇëÇ󻨷ѵÄÖÜÆÚÊý¡£ÖÜÆÚÊÇϵͳ¾ö¶¨µÄʱ¼äµ¥Î»£¬Çë²Î¼û TicksPerSecond¡£

 

TicksFunction

 

 

ÔÚ NSAPI SAF Öл¨·ÑµÄÖÜÆÚÊý¡£ÖÜÆÚÊÇϵͳ¾ö¶¨µÄʱ¼äµ¥Î»£¬Çë²Î¼û TicksPerSecond¡£

 

ʹÓà CLI ¹ÜÀíÊÂÎñ·þÎñ

Äú¿ÉÒÔʹÓà set ÃüÁî¹ÜÀíҪΪ JTS ¼àÊÓµÄͳ¼ÆÊý¾Ý¡£

ʾÀý 1

Òª½«ÊÂÎñÌí¼Óµ½»Ø¹öÁбíÖУ¨Õ⽫µ¼ÖÂÖ¸¶¨ÊÂÎñµÄ»Ø¹ö£©£¬Çë°´ÒÔϸñʽ·¢³ö set ÃüÁ

set --monitor server1.transaction-service.rollback-list=txnid1

ʾÀý 2

Òª¶³½áÊÂÎñ·þÎñ£¬Çë°´ÒÔϸñʽ·¢³ö set ÃüÁ

set --monitor server1.transaction-service.freeze=true

ϱíÃèÊöÁË¿ÉÒÔ¼àÊÓÒÔ±ãΪ JTS ÊÕ¼¯Í³¼ÆÊý¾ÝµÄÊôÐÔ¡£ÕâЩÊôÐÔ¿ÉÒÔ°´ÕÕ¡°CLI Ãû³ÆÓ³É䡱ÖÐÃèÊöµÄ¹æÔòͨ¹ýÃüÁîÐнøÐÐÉèÖá£

ÓÐ¹Ø Java ÊÂÎï·þÎñµÄÏêϸÐÅÏ¢£¬Çë²Î¼ûʹÓÃÊÂÎñ·þÎñ¡£

ʹÓà HTTP ·þÎñÖÊÁ¿

ÒÔÏÂÉèÖÿØÖÆÁËͨÐÅÁ¿µÄ¼ÆË㷽ʽÒÔ¼°´ø¿íµÄÖØмÆËãƵÂÊ£º

  • ÖØмÆËãʱ¼ä¼ä¸ô — ָʾ´ø¿íµÄ¼ÆËãƵÂÊ£¨ºÁÃ룩¡£
  • ¹«ÖÆʱ¼ä¼ä¸ô — Êý¾Ý¿ÉÒÔÓÃÓÚͨÐÅÁ¿¼ÆËãµÄʱ¼ä¶Î¡£

ÔÚ¹ÜÀí½çÃæÖУ¬Äú¿ÉÒÔΪ·þÎñÆ÷ʵÀý»òÐéÄâ·þÎñÆ÷µÄij¸öÀàÆôÓÃÕâЩ·þÎñÆ÷»òÀ༶±ðµÄÉèÖá£Ò²¿ÉÒÔΪµ¥¶ÀµÄÐéÄâ·þÎñÆ÷¸²¸ÇÕâЩÉèÖá£

±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺

·þÎñÖÊÁ¿Ê¾Àý

ÒÔÏÂʾÀýÏÔʾÁËÈçºÎÊÕ¼¯²¢¼ÆËã·þÎñÖÊÁ¿ÐÅÏ¢¡£

  • ·þÎñÆ÷µÄ¹«ÖÆʱ¼ä¼ä¸ôΪ 30 Ãë¡£
  • ·þÎñÆ÷ÔÚ 0 ÃëÆô¶¯¡£
  • ÔÚ 1 Ãëʱ£¬ÖÁ/×Ը÷þÎñÆ÷µÄ HTTP Á¬½Ó²úÉúÁË 5000 ×Ö½ÚµÄͨÐÅÁ¿¡£
  • Ö®ºóûÓнøÐиü¶àÁ¬½Ó¡£ÔÚ 30 Ãëʱ£¬×îºó 30 ÃëÄÚµÄ×ÜͨÐÅÁ¿Îª 5000 ×Ö½Ú¡£
  • ÔÚ 32 Ãëʱ£¬ÔÚ 1 Ãëʱ»ñµÃµÄͨÐÅÁ¿²ÉÑùÊý¾Ý±»·ÅÆú£¬ÒòΪÒѾ­³¬¹ýÁË 30 ÃëµÄ¹«ÖÆʱ¼ä¼ä¸ô¡£ÏÖÔÚ£¬×îºó 30 ÃëµÄ×ÜͨÐÅÁ¿Îª 0¡£

ÖØмÆËãʱ¼ä¼ä¸ôµÄ¹¤×÷·½Ê½Óë´ËÀàËÆ¡£·þÎñÆ÷µÄÖØмÆËãʱ¼ä¼ä¸ôΪ 100 ºÁÃë¡£

ÎÒÃǼÌÐøÇ°ÃæµÄʾÀý£¬Ã¿¸ô 100 ºÁÃëÖØмÆËãÒ»´Î´ø¿í¡£¸Ã¼ÆËãÒÔͨÐÅÁ¿ºÍ¹«ÖÆʱ¼ä¼ä¸ôΪ»ù´¡¡£

  • ÔÚ 0 Ãëʱ£¬½«Ê״μÆËã´ø¿í¡£×ÜͨÐÅÁ¿Îª 0£¬³ýÒÔ 30 ÃëµÄ¹«ÖÆʱ¼ä¼ä¸ô£¬µÃ³ö´ø¿íΪ 0¡£
  • ÔÚ 1 Ãëʱ£¬½«µÚ 10 ´Î¼ÆËã´ø¿í£¨1000 ºÁÃë/100 ºÁÃ룩¡£×ÜͨÐÅÁ¿Îª 5000 ×Ö½Ú£¬³ýÒÔ 30 Ã룬µÃ³ö´ø¿íΪ 5000/30 = 166 ×Ö½Ú/Ãë¡£
  • ÔÚ 30 Ãëʱ£¬½«µÚ 300 ´Î¼ÆËã´ø¿í¡£×ÜͨÐÅÁ¿Îª 5000 ×Ö½Ú£¬³ýÒÔ 30 Ã룬µÃ³ö´ø¿íΪ 5000/30 = 166 ×Ö½Ú/Ãë¡£
  • ÔÚ 32 Ãëʱ£¬½«µÚ 320 ´Î¼ÆËã´ø¿í¡£ÏÖÔÚͨÐÅÁ¿Îª 0£¨ÒòΪ²úÉúͨÐÅÁ¿µÄÄÇ´ÎÁ¬½Ó·¢ÉúµÄʱ¼äÌ«Ô磬ËùÒÔ²»ÄܼÆËãÔÚÄÚ£©£¬³ýÒÔ 30 Ã룬µÃ³ö´ø¿íΪ 0 ×Ö½Ú/Ãë¡£

ÅäÖ÷þÎñÖÊÁ¿ (QOS)

ͨ¹ý¹ÜÀí½çÃæ¿ÉÒÔÅäÖ÷þÎñÆ÷ʵÀý»òÐéÄâ·þÎñÆ÷µÄÀàµÄ·þÎñÖÊÁ¿¡£



×¢Òâ

ҪǿÖÆ·þÎñÖÊÁ¿ÉèÖã¬Äú»¹±ØÐëÔÚ obj.conf ÎļþÖÐÉèÖ÷þÎñÆ÷Ó¦ÓóÌÐò¹¦ÄÜ (SAF)£¬Èç¡°obj.conf ÎļþÒªÇóµÄ¸ü¸Ä¡±ÖÐËùÊö¡£



ÒªÅäÖ÷þÎñÖÊÁ¿£¬ÇëÖ´ÐÐÒÔϲ½Ö裺

  1. ÔÚ×ó²à´°¸ñÖÐÑ¡Ôñ¡°App Server Instances¡±½Úµã¡£
  2. Õ¹¿ª·þÎñÆ÷ʵÀý½ÚµãÒÔÏÔʾ¡°HTTP Server¡±½Úµã¡£
  3. µ¥»÷¡°HTTP Server¡±½ÚµãÒÔÏÔʾ¡°QOS¡±Ñ¡Ï¡£
  4. µ¥»÷¡°QOS¡±Ñ¡Ï¡£
  5. ÒÔÏÂÒ³ÃæÏÔʾÁË·þÎñÖÊÁ¿µÄ³£¹æÉèÖã¬ÏÂÃ滹ÓÐÒ»¸ö¡°Properties¡±°´Å¥¡£

   ÐéÄâ·þÎñÆ÷ʵÀý¡°QOS¡±Ñ¡Ï
HTTP ·þÎñÆ÷ʵÀýÖеġ°QOS¡±£¨·þÎñÖÊÁ¿£©Ñ¡Ïͼʾ¡£

  1. ÒªÆôÓÃ´Ë HTTP ·þÎñÆ÷µÄ·þÎñÖÊÁ¿£¬Çëµ¥»÷¡°QOS Enabled¡±¡£
  2. ×¢Ò⣺ĬÈÏÇé¿öÏ£¬·þÎñÖÊÁ¿±»½ûÓá£ÆôÓ÷þÎñÖÊÁ¿»áÉÔ΢Ôö¼Ó·þÎñÆ÷µÄ¿ªÏú¡£

  3. Ö¸¶¨¡°QOS Metrics Interval¡±¡£
  4. ¹«ÖÆʱ¼ä¼ä¸ôÊÇÔÚ·þÎñÆ÷ͨÐÅÁ¿¼ÆËã¹ý³ÌÖвÉÑùÊý¾ÝµÄʱ¼ä¼ä¸ô£¨Ã룩¡£Ä¬ÈÏֵΪ 30 Ãë¡£

    Èç¹ûÄúµÄÕ¾µãͨ³£Òª´«Êä´óÁ¿Îļþ£¬ÇëΪ´Ë×Ö¶ÎÉèÖÃÒ»¸ö½Ï´óµÄÖµ£¨¼¸·ÖÖÓ»ò¸ü³¤£©¡£Èç¹û¹«ÖÆʱ¼ä¼ä¸ô½Ï¶Ì£¬´óÁ¿ÎļþµÄ´«Êä¿ÉÄÜ»áÕ¼ÓÃËùÔÊÐíµÄËùÓдø¿í¡£Èç¹ûÄúÇ¿ÖÆÁË×î´ó´ø¿íÉèÖã¬Õ⽫µ¼ÖÂÁ¬½Ó±»¾Ü¾ø¡£ÓÉÓÚ´ø¿íÊÇ°´¹«ÖÆʱ¼ä¼ä¸ô¾ù·ÖµÄ£¬Òò´Ë½Ï³¤µÄʱ¼ä¼ä¸ô¿ÉÒÔ»ººÍÓÉ´óÁ¿ÎļþÒýÆðµÄ¸ß·åͨÐÅÁ¿¡£

    Èç¹û´ø¿íÏÞÖƱȿÉÓôø¿íµÍºÜ¶à£¨ÀýÈ磬´ø¿íÏÞÖÆΪ 1 MB/Ã룬µ«ÊÇÓëÖ÷¸ÉµÄÁ¬½ÓΪ 1 GB/Ã룩£¬ÔòÓ¦Ëõ¶Ì¹«ÖÆʱ¼ä¼ä¸ô¡£

    ×¢Ò⣺Èç¹ûÒª´«Êä´óÁ¿¾²Ì¬Îļþ£¬¶ø´ø¿íÏÞÖƱȿÉÓôø¿íµÍºÜ¶à£¬Ôò±ØÐë¾ö¶¨µ÷ÕûÄÄÖÖ×´¿ö£¬ÒòΪÕâÁ½¸öÎÊÌâËùÐèµÄ½â¾ö·½°¸ÕýºÃÊÇÏà·´µÄ¡£

  5. Ö¸¶¨¡°QOS Recompute Time Interval¡±¡£
  6. ÖØмÆËãʱ¼ä¼ä¸ôÊÇËùÓзþÎñÆ÷¡¢À༰ÐéÄâ·þÎñÆ÷µÄÿ´Î´ø¿í¼ÆËãÖ®¼äµÄºÁÃëÊý¡£Ä¬ÈÏֵΪ 100 ºÁÃë¡£

  7. Ö¸¶¨¡°Bandwidth Limit¡±¡£
  8. ÕâÊÇ·þÎñÆ÷ʵÀýµÄ×î´ó´ø¿íÏÞÖÆ£¨×Ö½Ú/Ã룩¡£ËüÔÚijÖ̶ֳÈÉÏÓë QOS ¹«ÖÆʱ¼ä¼ä¸ôÏ໥ӰÏì¡£

  9. Ñ¡ÔñÊÇ·ñÇ¿ÖÆ×î´ó´ø¿íÉèÖá£
  10. Èç¹ûÑ¡ÔñÇ¿ÖÆ×î´ó´ø¿í£¬µ±·þÎñÆ÷´ïµ½Æä´ø¿íÏÞÖÆʱ£¬¶îÍâµÄÁ¬½Ó½«±»¾Ü¾ø¡£

    Èç¹ûûÓÐÇ¿ÖÆ×î´ó´ø¿í£¬µ±³¬¹ý×î´óֵʱ£¬·þÎñÆ÷½«ÔÚʼþÈÕÖ¾ÖмǼһÌõÏûÏ¢¡£

  11. Ö¸¶¨Á¬½ÓÏÞÖÆ¡£
  12. ÕâÊÇËù´¦ÀíµÄ²¢ÐÐÇëÇóÊý¡£

  13. Ñ¡ÔñÊÇ·ñÇ¿ÖÆÁ¬½ÓÏÞÖÆÉèÖá£
  14. Èç¹ûÑ¡ÔñÇ¿ÖÆ×î´óÁ¬½ÓÊý£¬µ±µ½·þÎñÆ÷´ïµ½Æä×î´óÁ¬½ÓÊýĿʱ£¬¶îÍâµÄÁ¬½Ó½«±»¾Ü¾ø¡£Èç¹ûûÓÐÇ¿ÖÆ×î´óÁ¬½ÓÊý£¬µ±³¬¹ý×î´óֵʱ£¬·þÎñÆ÷½«ÔÚʼþÈÕÖ¾ÖмǼһÌõÏûÏ¢¡£

  15. £¨¿ÉÑ¡£©¡£Èç¹ûҪΪ·þÎñÖÊÁ¿Ö¸¶¨¸½¼ÓµÄ¡°Ãû³Æ-Öµ¡±¶ÔÊôÐÔ£¬Çëµ¥»÷¡°Properties¡±°´Å¥¡£
  16. ÓйطþÎñÖÊÁ¿ÊôÐÔµÄËùÔÊÐíµÄ¡°Ãû³Æ-Öµ¡±¶ÔÁÐ±í£¬Çë²Î¼ûÁª»ú°ïÖú¡£

  17. µ¥»÷¡°Save¡±£¬Ìá½»¶Ô·þÎñÆ÷ʵÀýËù×öµÄ¸ü¸Ä¡£
  18. ·ÃÎÊ×ó²à´°¸ñÖС°App Server Instances¡±ÏÂÄúµÄ·þÎñÆ÷ʵÀý£¬È»ºóµ¥»÷¡°Apply Changes¡±¡£

±ØÐë¶Ô obj.conf Îļþ½øÐеĸü¸Ä

ҪǿÖÆ·þÎñÖÊÁ¿£¬Äú±ØÐëÔÚ obj.conf ÎļþÖаüº¬Ö¸ÁîÒÔµ÷ÓÃÒÔÏ·þÎñÆ÷Ó¦ÓóÌÐò¹¦ÄÜ (SAF)£º

  • AuthTrans qos-handler
  • Error qos-error

ÒªÕý³£¹¤×÷£¬qos-handler AuthTrans Ö¸Áî±ØÐëÊÇÔÚĬÈ϶ÔÏóÖÐÅäÖõĵÚÒ»¸ö AuthTrans¡£·þÎñÖÊÁ¿´¦Àí³ÌÐòµÄ×÷ÓÃÊǼì²éÐéÄâ·þÎñÆ÷¡¢ÐéÄâ·þÎñÆ÷ÀàÒÔ¼°È«¾Ö·þÎñÆ÷µÄµ±Ç°Í³¼ÆÊý¾Ý²¢Í¨¹ý·µ»Ø´íÎóÀ´Ç¿ÖÆÏÞÖÆ¡£Sun ONE Application Server °üº¬Ò»¸ö³ÆΪ qos-handler µÄÄÚÖÃÑùÀý·þÎñÖÊÁ¿´¦Àí³ÌÐò SAF¡£µ±´ïµ½ÏÞÖÆʱ£¬´Ë SAF ½«½øÐмǼ²¢Ïò·þÎñÆ÷·µ»ØÒ»¸ö 503 Server busy ´íÎó£¬ÒÔ±ãÓÉ NSAPI ´¦Àí¡£

Sun ONE Application Server »¹°üº¬Ò»¸ö³ÆΪ qos-error µÄÄÚÖÃÑùÀý´íÎó SAF£¬Ëü½«·µ»ØÒ»¸ö´íÎóÒ³Ã棬˵Ã÷ÒýÆð 503 ´íÎóµÄÏÞÖÆÒÔ¼°´¥·¢¸ÃÏÞÖƵÄͳ¼ÆÊý¾ÝµÄÖµ¡£

ÓйØÕâЩ SAF ÒÔ¼°ÈçºÎʹÓÃËüÃǵÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡¶Sun ONE Application Server Developer's Guide to NSAPI¡·¡£

·þÎñÖÊÁ¿µÄÒÑÖªÏÞÖÆ

ʹÓ÷þÎñÖÊÁ¿¹¦ÄÜʱ£¬Çë¼ÇסÒÔÏÂÏÞÖÆ£º

  • ·þÎñÖÊÁ¿¹¦Äܽö²âÁ¿Ó¦ÓóÌÐò¼¶±ðµÄ HTTP ´ø¿í¡£ÓÉÓÚÒÔ϶àÖÖÔ­Òò£¬HTTP ´ø¿í¿ÉÄÜÓëʵ¼ÊµÄ TCP ÍøÂç´ø¿í²»Í¬£º
    • Èç¹ûÆôÓÃÁË SSL£¬ÎÕÊֺͿͻ§»úÖ¤Êé½»»»½«Ôö´óͨÐÅÁ¿£¬µ«ÊDz»»á±»²âÁ¿¡£
    • Èç¹ûµ¥Ïò»òË«ÏòÆôÓÃÁË¿é±àÂ룬¿é²ã½«É¾³ý¿éÏûϢͷ£¬²¢ÇÒ¿éÏûϢͷ²»»á¼ÆÈ뵽ͨÐÅÁ¿ÖС£ÆäËüÏûϢͷ»òЭÒéÏ±»¼ÆÈ뵽ͨÐÅÁ¿ÖС£

  • ·þÎñÖÊÁ¿¹¦Äܲ»Äܾ«È·²âÁ¿ PR_TransmitFile µ÷ÓõÄͨÐÅÁ¿¡£¶ÔÓÚÖîÈç PR_Send()/net_write »ò PR_Recv()/net_read µÈ»ù±¾ I/O ²Ù×÷£¬´ø¿í¹ÜÀíÆ÷¿ÉÒÔ¿ìËÙ¼ÆËã³ö´«ÊäµÄÊý¾Ý£¬ÒòΪÔÚÒ»¸öϵͳµ÷ÓÃÖд«ÊäµÄ×Ö½ÚÊýͨ³£¼´ÊÇ»º³åÇøµÄ´óС£¬²¢ÇÒ I/O µ÷Óûá¿ìËÙ·µ»Ø¡£Õâ·Ç³£ÊÊÓÃÓÚ²âÁ¿¶¯Ì¬ÄÚÈÝÓ¦ÓóÌÐòµÄ¼´Ê±´ø¿í¡£µ«ÊÇ£¬ÒòΪ PR_TransmitFile ´«ÊäµÄÊý¾ÝÁ¿½öÔÚ´«Êä½áÊøʱ²Å»áÖªµÀ£¬ËùÒÔÔÚ´«ÊäÍê³ÉÇ°ÎÞ·¨½øÐвâÁ¿¡£
  • Èç¹û PR_TransmitFile ºÜ¶Ì£¬Ôò·þÎñÖÊÁ¿¹¦Äܽ«Äܹ»³ä·ÖÖ´ÐС£µ«ÊÇ£¬Èç¹û PR_TransmitFile ºÜ³¤£¬ÀýÈçÔÚ²¦ºÅÓû§ÏÂÔس¤ÎļþµÄÇé¿öÏ£¬´«ÊäµÄÈ«²¿Êý¾ÝÁ¿½«ÔÚÍê³Éʱ¼ÆËã¡£µ±´ø¿í¹ÜÀíÆ÷ÔÚÏÂÒ»¸öÖØмÆËãʱ¼ä¼ä¸ô¿ªÊ¼ºóÖØмÆËã´ø¿íʱ£¬ÓÉÓÚ×î½ü·¢ÉúµÄÕâÒ»½Ï´óµÄ PR_TransmitFile£¬¼ÆËãµÄ´ø¿í½«ÏÔÖøÔö¼Ó¡£ÕâÖÖ×´¿ö¿ÉÄܵ¼Ö·þÎñÆ÷¾Ü¾øËùÓÐÇëÇó£¬Ö±ÖÁÏÂÒ»¸ö¹«ÖÆʱ¼ä¼ä¸ô¡£ÄÇʱ´ø¿í¹ÜÀíÆ÷½«Ê¹¸Ã´«ÊäÎļþ²Ù×÷¹ýÆÚ£¨ÒòΪËü·¢ÉúµÄʱ¼äÒѾ­Ì«Ô磩£¬´Ó¶øʹ´ø¿íÖµ»ØÂä¡£Èç¹ûÄúµÄÕ¾µãͨ³£ÒªÏÂÔغܳ¤µÄ¾²Ì¬Îļþ£¬ÄúÓ¦µ±Ôö¼ÓÔ­À´Ä¬ÈÏΪ 30 ÃëµÄ¹«ÖÆʱ¼ä¼ä¸ô¡£

  • ¼ÆËãµÄ´ø¿íʼÖÕÊÇÒ»¸ö½üËÆÖµ£¬ÒòΪËü²»ÊǼ´Ê±²âÁ¿µÄ£¬¶øÊÇÔÚÒ»¶Îʱ¼äÄÚÒԹ̶¨µÄʱ¼ä¼ä¸ô¼ÆËãµÄ¡£ÀýÈ磬Èç¹û¹«ÖÆʱ¼ä¼ä¸ôÊÇĬÈ쵀 30 Ã룬¶ø·þÎñÆ÷¿ÕÏÐÁË 29 Ã룬ȻºóÔÚÏÂÒ»ÃëÖУ¬¿Í»§»úÓпÉÄÜÔÚ 1 ÃëÄÚʹÓÃÁË 30 ±¶µÄ´ø¿íÏÞÖÆ¡£
  • ÎÞÂÛºÎʱ¶¯Ì¬ÖØÐÂÅäÖÃÁË·þÎñÆ÷£¬¶¼½«¶ªÊ§·þÎñÖÊÁ¿´ø¿íͳ¼ÆÊý¾Ý¡£´ËÍ⣬·þÎñÖÊÁ¿ÏÞÖÆÔÚ¾ßÓлùÓÚ½ÏÔçµÄ¡¢·Ç»î¶¯ÅäÖõÄÁ¬½ÓµÄÏß³ÌÖв»»á±»Ç¿ÖÆ£¬ÒòΪ´ø¿í¹ÜÀíÆ÷Ï߳̽ö¼ÆËã»î¶¯ÅäÖõĴø¿íͳ¼ÆÊý¾Ý¡£»¹ÓÐÒ»ÖÖDZÔÚ¿ÉÄÜ£¬¼´³¤Ê±¼äδ¹Ø±ÕÆäÌ×½Ó×Ö²¢±£³Ö»î¶¯£¨´Ó¶ø·þÎñÆ÷ûÓÐʹÆ䳬ʱ£©µÄ¿Í»§»úÔÚ¶¯Ì¬ÖØÐÂÅäÖ÷þÎñÆ÷ºó²»»áÔÙÊÜ·þÎñÖÊÁ¿ÏÞÖƵÄÔ¼Êø¡£
  • ÐéÄâ·þÎñÆ÷µÄ²¢ÐÐÁ¬½Ó¼ÆËã¼ä¸ôÓëÐéÄâ·þÎñÆ÷ÀàºÍÈ«¾Ö·þÎñÆ÷ʵÀýµÄ¼ÆËã¼ä¸ô²»Í¬¡£ µ¥¸öÐéÄâ·þÎñÆ÷µÄÁ¬½Ó¼ÆÊýÆ÷ÔÚÇëÇó±»·ÖÎö²¢Â·Óɵ½ÐéÄâ·þÎñÆ÷ºó»áÁ¢¼´×Ô¶¯µÝÔö£¬¶øÔÚ¸ÃÇëÇóµÄÏìÓ¦´¦Àí½áÊøʱ»á×Ô¶¯¼õÉÙ¡£ÕâÒâζ×ÅÐéÄâ·þÎñÆ÷µÄÁ¬½Óͳ¼ÆÊý¾ÝÔÚÈÎÒâʱ¿Ì¶¼ÊÇ׼ȷµÄ¡£
  • µ«ÊÇ£¬ÐéÄâ·þÎñÆ÷ÀàºÍÈ«¾Ö·þÎñÆ÷ʵÀýµÄÁ¬½Óͳ¼ÆÊý¾Ý²»Äܼ´Ê±¸üС£ËüÃÇ°´ÕÕÿ¸öÖØмÆËãʱ¼ä¼ä¸ôÓÉ´ø¿í¹ÜÀíÆ÷Ï̸߳üС£ÐéÄâ·þÎñÆ÷ÀàµÄÁ¬½ÓÊýÊǸÃÀàµÄËùÓÐÐéÄâ·þÎñÆ÷ÉϵÄÁ¬½Ó×ÜÊý£»È«¾Ö·þÎñÆ÷ʵÀýµÄÁ¬½ÓÊýÊÇËùÓÐÐéÄâ·þÎñÆ÷ÀàÉϵÄÁ¬½Ó×ÜÊý¡£

    ÓÉÓÚÕâЩֵµÄ¼ÆË㷽ʽ£¬ÐéÄâ·þÎñÆ÷µÄÁ¬½ÓÊýʼÖÕÊÇÕýÈ·µÄ£¬Èç¹ûΪ¸ÃÁ¬½ÓÊýÉèÖÃÒ»¸öÇ¿ÖÆÏÞÖÆ£¬ÔòÓÀÔ¶Ò²²»Äܳ¬¹ý¸ÃÏÞÖÆ¡£ÐéÄâ·þÎñÆ÷ÀàºÍ·þÎñÆ÷ʵÀýµÄÖµÔò²»»áÈç´Ë׼ȷ£¬ÒòΪËüÃÇÊÇ°´ÕÕÒ»¶¨µÄʱ¼ä¼ä¸ô¼ÆËãµÄ¡£

¹ØÓÚ SNMP

¼òµ¥ÍøÂç¹ÜÀíЭÒé (SNMP) ÊÇÓÃÓÚÔÚÍøÂ緶ΧÄÚ½»»»¹ÜÀíÐÅÏ¢ºÍ¼àÊÓÐÅÏ¢µÄЭÒ顣ʹÓà SNMP£¬Êý¾Ý¿ÉÒÔÔÚ±»¹ÜÀíµÄÉ豸ºÍÍøÂç¹ÜÀíÕ¾ (NMS) Ö®¼ä´«Êä¡£±»¹ÜÀíµÄÉ豸¿ÉÒÔÊÇÔËÐÐ SNMP µÄÈκÎÉ豸£ºÖ÷»ú¡¢Â·ÓÉÆ÷¡¢HTTP ·þÎñÆ÷ÒÔ¼°ÍøÂçÉϵÄÆäËü·þÎñÆ÷¡£

±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺

ÍøÂç¹ÜÀíÕ¾ (NMS)

ÍøÂç¹ÜÀíÕ¾ (NMS) ÊÇÓÃÓÚÔ¶³Ì¹ÜÀíijÌض¨ÍøÂçµÄ¼ÆËã»ú¡£Í¨³££¬NMS Èí¼þ½«Ìṩһ¸öͼÐνçÃæÒÔÏÔʾÊÕ¼¯µÄÊý¾Ý£¬»òÕßʹÓøÃÊý¾ÝÈ·±£·þÎñÆ÷ÔÚÖ¸¶¨µÄ¹«²î·¶Î§ÄÚÔËÐС£

NMS ͨ³£ÊÇ°²×°ÓÐÒ»¸ö»ò¶à¸öÍøÂç¹ÜÀíÓ¦ÓóÌÐòµÄ¹¦ÄÜÇ¿´óµÄ¹¤×÷Õ¾¡£ÍøÂç¹ÜÀíÓ¦ÓóÌÐò£¨ÀýÈç HP OpenView£©ÒÔͼÐη½Ê½ÏÔʾÓйر»¹ÜÀíÉ豸£¨ÀýÈç HTTP ·þÎñÆ÷£©µÄÐÅÏ¢¡£ÀýÈ磬Ëü¿ÉÄÜÏÔʾÁËÄúµÄÆóÒµÖÐÒÑ´ò¿ª»ò¹Ø±ÕµÄ·þÎñÆ÷£¬»òÕßÊÕµ½µÄ´íÎóÐÅÏ¢µÄÊýÁ¿ºÍÀàÐÍ¡£½« SNMP Óë Sun ONE Application Server Ò»ÆðʹÓÃʱ£¬ÕâЩÐÅÏ¢½«Í¨¹ýʹÓÃÒÔÏÂÁ½ÖÖ´úÀíÔÚ NMS ºÍ·þÎñÆ÷Ö®¼ä´«Ê䣺×Ó´úÀíºÍÖ÷´úÀí¡£

×Ó´úÀíÊÕ¼¯ÔÚ¸÷¸öÓòÖÐÔËÐеķþÎñÆ÷ʵÀýµÄÐÅÏ¢²¢½«ÐÅÏ¢´«µÝ¸øÖ÷´úÀí¡£Ã¿¸ö Sun ONE Application Server °²×°¶¼ÓÐÒ»¸öÖ÷´úÀíºÍÒ»¸ö×Ó´úÀí¡£



×¢Òâ

¶Ô SNMP ÅäÖýøÐÐÈκθü¸Äºó£¬±ØÐëµ¥»÷¡°Apply¡±°´Å¥£¬È»ºóÖØÐÂÆô¶¯ SNMP ×Ó´úÀí¡£



Ö÷´úÀí ÔÚ¸÷¸ö×Ó´úÀíºÍ NMS Ö®¼ä½»»»ÐÅÏ¢¡£Ö÷´úÀíËæ Sun ONE Application Server Ò»Æð°²×°¡£

Äú¿ÉÒÔÔÚһ̨Ö÷»úÉÏ°²×°¶à¸ö×Ó´úÀí£¬µ«ÊÇÖ»ÄÜ°²×°Ò»¸öÖ÷´úÀí¡£ÀýÈ磬Èç¹ûÔÚͬһ̨Ö÷»úÉÏ°²×°ÁË Sun ONE Directory Server¡¢Sun ONE Application Server ¼° Sun ONE Messaging Server£¬Ôòÿ¸ö·þÎñÆ÷µÄ×Ó´úÀí½«Óëͬһ¸öÖ÷´úÀíͨÐÅ¡£

NMS ½«´Ó·þÎñÆ÷ÇëÇóÐÅÏ¢£¬»òÕ߸ü¸Ä´æ´¢ÔÚ·þÎñÆ÷ MIB ÖеıäÁ¿µÄÖµ¡£ÀýÈ磺

  1. NMS ½«ÏûÏ¢·¢Ë͸ø¹ÜÀí·þÎñÆ÷Ö÷´úÀí¡£ÏûÏ¢¿ÉÄÜÊÇÊý¾ÝÇëÇó£¨Ò»Ìõ GET ÏûÏ¢£©£¬Ò²¿ÉÄÜÊÇÒ»ÌõָʾÔÚ MIB ÖÐÉèÖñäÁ¿µÄÖ¸ÁһÌõ SET ÏûÏ¢£©¡£
  2. Ö÷´úÀí½«ÏûϢת·¢¸øÏàÓ¦µÄ×Ó´úÀí¡£
  3. ×Ó´úÀí½«¼ìË÷Êý¾Ý»ò¸ü¸Ä MIB ÖеıäÁ¿¡£
  4. ×Ó´úÀí½«Êý¾Ý»ò״̬±¨¸æ¸øÖ÷´úÀí£¬È»ºóÖ÷´úÀí½«ÏûÏ¢£¨Ò»Ìõ GET ÏûÏ¢£©×ª·¢»Ø NMS¡£
  5. NMS ͨ¹ýËüµÄÍøÂç¹ÜÀíÓ¦ÓóÌÐòÒÔÎÄ×Ö»òͼÐη½Ê½ÏÔʾ¸ÃÊý¾Ý¡£

¹ÜÀíÐÅÏ¢¿â (MIB) ¶ÔÏó

Sun ONE Application Server ´æ´¢ÁËÓë¹ÜÀíºÍ¼àÊÓÍøÂ緶ΧÄÚµÄÐÅÏ¢ÓйصıäÁ¿¡£Ö÷´úÀí¿ÉÒÔ·ÃÎʵıäÁ¿³ÆΪ±»¹ÜÀí¶ÔÏó¡£ÕâЩ¶ÔÏóÔÚ³ÆΪ¹ÜÀíÐÅÏ¢¿â (MIB) µÄÊ÷×´½á¹¹Öж¨Òå¡£MIB ÌṩÁË¶Ô HTTP ·þÎñÆ÷µÄÍøÂçÅäÖá¢×´Ì¬¼°Í³¼ÆÊý¾ÝµÄ·ÃÎÊ¡£Ê¹Óà SNMP£¬Äú¿ÉÒÔͨ¹ýÍøÂç¹ÜÀí¹¤×÷Õ¾ (NMS) ²é¿´ÕâЩÐÅÏ¢¡£

MIB Ê÷µÄ¶¥²ãÏÔʾ³ö Internet ¶ÔÏó±êʶ·û¾ßÓÐÒÔÏÂ×ÓÊ÷£º

  • directory (1)
  • mgmt (2)
  • experimental (3)
  • private (4)

private (4) ×ÓÊ÷°üº¬ enterprises (1) ½Úµã¡£enterprises (1) ½ÚµãÖеÄÿ¸ö×ÓÊ÷¶¼±»·ÖÅä¸øÒ»¸öµ¥¶ÀµÄÆóÒµ£¬ÆóÒµÊÇ×¢²áÓÐ×Ô¼ºÌض¨ MIB À©Õ¹µÄ×éÖ¯¡£È»ºóÆóÒµ¿ÉÒÔÔÚÆä×ÓÊ÷Ï´´½¨Ìض¨²úÆ·µÄ×ÓÊ÷¡£ÓÉÆóÒµ´´½¨µÄ MIB λÓÚ enterprises (1) ½ÚµãÏ¡£

ÿ¸ö Sun ONE Application Server ×Ó´úÀí¶¼ÌṩÁËÒ»¸öÓÃÓÚ SNMP ͨÐÅµÄ MIB¡£·þÎñÆ÷ͨ¹ý·¢ËÍ°üº¬ÕâЩ±äÁ¿µÄÏûÏ¢£¨»òÏÝÚ壩½«ÖØҪʼþ±¨¸æ¸ø NMS¡£NMS ¿ÉÒÔ²éѯ·þÎñÆ÷µÄ MIB ÒÔ»ñÈ¡Êý¾Ý¡£

ÿ¸ö Sun ONE Application Server ¶¼ÓÐÆä×Ô¼ºµÄ MIB£¬¸Ã MIB λÓÚ install_dir/lib Ï¡£

Sun ONE Application Server µÄ MIB ÊÇÒ»¸ö³ÆΪ appserv.mib µÄÎļþ¡£´Ë MIB °üº¬Óë Sun ONE Application Server µÄÍøÂç¹ÜÀíÓйصĸ÷ÖÖ±äÁ¿µÄ¶¨Òå¡£

Sun ONE Application Server MIB ¾ßÓÐÒ»¸ö

appserver 1 (as appserver7 OBJECT IDENTIFIER ::= {appserver 1 }) ¶ÔÏó±êʶ·û£¬ËüλÓÚ install_dir/lib Ŀ¼Ï¡£

Äú¿ÉÒÔʹÓà Sun ONE Application Server MIB ²é¿´ÓÐ¹Ø Sun ONE Application Server µÄ¹ÜÀíÐÅÏ¢²¢ÊµÊ±¼àÊÓ·þÎñÆ÷¡£Ï±íÁгö²¢ÃèÊöÁË´æ´¢ÔÚ appserv.mib ÎļþÖеı»¹ÜÀí¶ÔÏó¡£

   appserv.mib ±»¹ÜÀí¶ÔÏóºÍ˵Ã÷ 

±»¹ÜÀí¶ÔÏó

˵Ã÷

iwsCpuID

 

CPU ±êʶ·û¡£

 

iwsCpuIdleTime

 

CPU ¿ÕÏÐʱ¼ä¡£

 

iwsCpuKernelTime

 

CPU ÄÚºËʱ¼ä¡£

 

iwsCpuTable

 

Sun ONE Application Server CPU¡£

 

iwsCpuUserTime

 

CPU Óû§Ê±¼ä¡£

 

iwsInstanceTable

 

Sun ONE Application Server ʵÀý¡£

 

iwsInstanceId

 

·þÎñÆ÷ʵÀý±êʶ·û¡£

 

iwsInstanceVersion

 

×Ö·û´®£¬ÀýÈç SunONE-ApplicationServer-Enterprise/7 BB1-01/24/2001 17:15 (SunOS DOMESTIC)¡£

 

iwsInstanceDescription

 

·þÎñÆ÷ʵÀýµÄ˵Ã÷¡£

 

iwsInstanceOrganization

 

¸ºÔð·þÎñÆ÷ʵÀýµÄ×éÖ¯¡£

 

iwsInstanceContact

 

¸ºÔð·þÎñÆ÷ʵÀýµÄÈËÔ±µÄÁªÏµÐÅÏ¢¡£

 

iwsInstanceLocation

 

·þÎñÆ÷µÄλÖá£

 

iwsInstanceStatus

 

·þÎñÆ÷ʵÀýµÄ״̬¡£

 

iwsInstanceUptime

 

·þÎñÆ÷ÒѾ­ÔËÐеÄʱ¼ä¡£

 

iwsInstanceDeathCount

 

·þÎñÆ÷ʵÀý½ø³Ì¹Ø±ÕµÄ´ÎÊý¡£

 

iwsInstanceRequests

 

·þÎñÆ÷ʵÀý´¦ÀíµÄÇëÇóÊý¡£

 

iwsInstanceInOctets

 

·þÎñÆ÷ʵÀý½ÓÊյİËλλ×éÊý¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓ㬽«ÏÔʾ 0¡£

 

iwsInstanceOutOctets

 

·þÎñÆ÷ʵÀý´«ÊäµÄ°Ëλλ×éÊý¡£Èç¹û´ËÐÅÏ¢²»¿ÉÓ㬽«ÏÔʾ 0¡£

 

iwsInstanceCount2xx

 

·þÎñÆ÷ʵÀý·¢³öµÄ 200 ¼¶£¨³É¹¦£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount3xx

 

·þÎñÆ÷ʵÀý·¢³öµÄ 300 ¼¶£¨Öض¨Ïò£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount4xx

 

·þÎñÆ÷ʵÀý·¢³öµÄ 400 ¼¶£¨¿Í»§»ú´íÎó£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount5xx

 

·þÎñÆ÷ʵÀý·¢³öµÄ 500 ¼¶£¨·þÎñÆ÷´íÎó£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCountOther

 

·þÎñÆ÷ʵÀý·¢³öµÄÆäËü£¨·Ç 2xx¡¢3xx¡¢4xx »ò 5xx£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount200

 

·þÎñÆ÷ʵÀý·¢³öµÄ 200£¨³É¹¦£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount302

 

·þÎñÆ÷ʵÀý·¢³öµÄ 302£¨ÔÝʱÒƶ¯£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount304

 

·þÎñÆ÷ʵÀý·¢³öµÄ 304£¨Î´Ð޸ģ©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount400

 

·þÎñÆ÷ʵÀý·¢³öµÄ 400£¨´íÎóÇëÇó£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount401

 

·þÎñÆ÷ʵÀý·¢³öµÄ 401£¨Î´ÊÚȨ£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount403

 

·þÎñÆ÷ʵÀý·¢³öµÄ 403£¨½ûÖ¹£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount404

 

·þÎñÆ÷ʵÀý·¢³öµÄ 404£¨Î´ÕÒµ½£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceLoad1MinuteAverage

 

ÔËÐзþÎñÆ÷ʵÀýµÄϵͳµÄ 1 ·ÖÖÓ¸ºÔØƽ¾ùÖµ¡£

 

iwsInstanceLoad5MinuteAverage

 

ÔËÐзþÎñÆ÷ʵÀýµÄϵͳµÄ 5 ·ÖÖÓ¸ºÔØƽ¾ùÖµ¡£

 

iwsInstanceLoad15MinuteAverage

 

ÔËÐзþÎñÆ÷ʵÀýµÄϵͳµÄ 15 ·ÖÖÓ¸ºÔØƽ¾ùÖµ¡£

 

iwsInstanceNetworkInOctets

 

ÍøÂçÉÏÿÃë´«ÊäµÄ°Ëλλ×éÊý¡£

 

iwsInstanceNetworkOutOctets

 

ÍøÂçÉÏÿÃë½ÓÊյİËλλ×éÊý¡£

 

iwsVsTable

 

·þÎñÆ÷µÄÐéÄâ·þÎñÆ÷¡£

 

iwsVsId

 

ÐéÄâ·þÎñÆ÷±êʶ·û¡£

 

iwsVsRequests

 

ÐéÄâ·þÎñÆ÷´¦ÀíµÄÇëÇóÊý¡£

 

iwsVsInOctets

 

ÐéÄâ·þÎñÆ÷½ÓÊյİËλλ×éÊý¡£

 

iwsVsOutOctets

 

ÐéÄâ·þÎñÆ÷´«ÊäµÄ°Ëλλ×éÊý¡£

 

iwsVsCount2xx

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 200 ¼¶£¨³É¹¦£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount3xx

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 300 ¼¶£¨Öض¨Ïò£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount4xx

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 400 ¼¶£¨¿Í»§»ú´íÎó£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount5xx

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 500 ¼¶£¨·þÎñÆ÷´íÎó£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCountOther

 

ÐéÄâ·þÎñÆ÷·¢³öµÄÆäËü£¨·Ç 2xx¡¢3xx¡¢4xx »ò 5xx£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount200

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 200£¨³É¹¦£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount302

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 302£¨ÔÝʱÒƶ¯£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount304

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 304£¨Î´Ð޸ģ©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount400

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 400£¨´íÎóÇëÇó£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount401

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 401£¨Î´ÊÚȨ£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount403

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 403£¨½ûÖ¹£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsVsCount404

 

ÐéÄâ·þÎñÆ÷·¢³öµÄ 404£¨Î´ÕÒµ½£©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsProcessTable

 

Sun ONE Application Server ½ø³Ì¡£

 

iwsProcessId

 

²Ù×÷ϵͳ½ø³Ì±êʶ·û¡£

 

iwsProcessThreadCount

 

ÇëÇó´¦ÀíÏ̵߳ÄÊýÄ¿¡£

 

iwsProcessThreadIdle

 

µ±Ç°´¦ÓÚ¿ÕÏÐ״̬µÄÇëÇó´¦ÀíÏß³ÌÊý¡£

 

iwsProcessConnectionQueueCount

 

Á¬½Ó¶ÓÁÐÖеĵ±Ç°Á¬½ÓÊý¡£

 

iwsProcessConnectionQueuePeak

 

ͬʱÅŶӵÄ×î´óÁ¬½ÓÊý¡£

 

iwsProcessConnectionQueueMax

 

Á¬½Ó¶ÓÁÐÖÐËùÔÊÐíµÄ×î´óÁ¬½ÓÊý¡£

 

iwsProcessConnectionQueueTotal

 

ÒѽÓÊܵÄÁ¬½ÓÊý¡£

 

iwsProcessConnectionQueueOverflows

 

ÓÉÓÚÁ¬½Ó¶ÓÁÐÒç³ö¶ø±»¾Ü¾øµÄÁ¬½ÓÊý¡£

 

iwsProcessKeepaliveCount

 

±£³Ö»î¶¯µÄ¶ÓÁÐÖеĵ±Ç°Á¬½ÓÊý¡£

 

iwsProcessKeepaliveMax

 

±£³Ö»î¶¯µÄ¶ÓÁÐÖÐËùÔÊÐíµÄ×î´óÁ¬½ÓÊý¡£

 

iwsProcessSizeVirtual

 

½ø³Ì´óС£¨Ç§×Ö½Ú£©¡£

 

iwsProcessSizeResident

 

½ø³ÌפÁô´óС£¨Ç§×Ö½Ú£©¡£

 

iwsProcessFractionSystemMemoryUsage

 

ϵͳÄÚ´æÖеĽø³Ì²¿·Ö¡£

 

iwsListenTable

 

Sun ONE Application Server ¼àÌýÌ×½Ó×Ö¡£

 

iwsListenId

 

¼àÌýÌ×½Ó×Ö±êʶ·û¡£

 

iwsListenAddress

 

Ì×½Ó×Ö¼àÌýµÄµØÖ·¡£

 

iwsListenPort

 

Ì×½Ó×Ö¼àÌýµÄ¶Ë¿Ú¡£

 

iwsListenSecurity

 

¼ÓÃÜÖ§³Ö¡£

 

iwsThreadPoolCount

 

±»¾Ü¾øµÄÇëÇóÊý¡£

 

iwsThreadPoolMax

 

¶ÓÁÐÖÐËùÔÊÐíµÄ×î´óÇëÇóÊý¡£

 

iwsThreadPoolPeak

 

ͬʱÅŶӵÄ×î´óÇëÇóÊý¡£

 

iwsThreadPoolTable

 

Sun ONE Application Server Ï̳߳ء£

 

iwsVsCount503

 

ÒÑ·¢³öµÄ 503£¨²»¿ÉÓã©ÏìÓ¦µÄÊýÄ¿¡£

 

iwsInstanceCount503

 

ÒÑ·¢³öµÄ 503£¨²»¿ÉÓã©ÏìÓ¦µÄÊýÄ¿¡£

 

SNMP ÏûÏ¢

GET ºÍ SET ÊÇ SNMP ¶¨ÒåµÄÁ½ÖÖÏûÏ¢¡£

MIB ÖеÄÿ¸ö¶ÔÏ󶼷ÖÅäÓÐÒ»¸öΨһµÄ±êʶ·û¡£SNMP ¹ÜÀíÆ÷ͨ¹ý·¢³ö GET ºÍ GETNEXT ÃüÁÔÚÆäÖÐÖ¸¶¨¶ÔÏóµÄΨһ±êʶ·û£©À´·ÃÎʶÔÏó¡£´úÀíµÄ´úÀí³ÌÐò½«»ñÈ¡Ö¸¶¨¶ÔÏóµÄÖµ²¢½«Æä´«Êäµ½ SNMP ¹ÜÀíÆ÷¡£Èç¹ûÌí¼Óµ½ÈÕÖ¾µÄʼþ·ûºÏÏÝÚå¹ýÂËÆ÷Ìõ¼þ£¬Ôò¿ÉÄÜÉú³É SNMP ÏÝÚ塣δÉú³ÉÏÝÚåµÄʼþ½ö¼Ç¼Ϊά»¤ÈÕÖ¾±íÖеÄÒ»¸öÌõÄ¿£¬ÓÉ SNMP ¹ÜÀíÆ÷ͨ¹ý±ê×¼µÄ GET ºÍ GETNEXT ÃüÁî·ÃÎÊ¡£

GET ºÍ SET ÏûÏ¢½«ÓÉÍøÂç¹ÜÀíÕ¾ (NMS) ·¢Ë͸øÖ÷´úÀí¡£Äú¿ÉÒÔͨ¹ý¹ÜÀí½çÃæʹÓÃÆäÖÐÒ»¸ö»òÁ½¸ö¶¼Ê¹Óá£

SNMP ÒÔЭÒéÊý¾Ýµ¥Ôª (PDU) µÄ¸ñʽ½»»»ÍøÂçÐÅÏ¢¡£ÕâЩµ¥Ôª°üº¬Óйش洢ÔÚ±»¹ÜÀíÉ豸£¨ÀýÈç HTTP ·þÎñÆ÷£©ÉϵıäÁ¿µÄÐÅÏ¢¡£ÕâЩ±äÁ¿£¨Ò²³ÆΪ±»¹ÜÀí¶ÔÏ󣩾ßÓÐÖµºÍ±êÌ⣬ֵºÍ±êÌ⽫ÔÚÐèҪʱ±¨¸æ¸ø NMS¡£ÓÉ·þÎñÆ÷·¢Ë͸ø NMS µÄЭÒéÊý¾Ýµ¥Ôª³ÆΪÏÝÚå¡£ÒÔϸ÷½Ú½«¶Ô GET¡¢SET µÄʹÓÃÒÔ¼°ÏÝÚåÏûÏ¢½øÐÐÏêϸÌÖÂÛ¡£

SNMP ÏÝÚåÄ¿±ê

SNMP ÏÝÚåÊÇ SNMP ´úÀí·¢Ë͸øÍøÂç¹ÜÀíÕ¾ (NMS) µÄÏûÏ¢¡£ÀýÈ磬µ±½Ó¿ÚµÄ״̬ÓÉ´ò¿ª±äΪ¹Ø±Õʱ£¬SNMP ´úÀí½«·¢ËÍÒ»¸öÏÝÚå¡£SNMP ´úÀí±ØÐëÖªµÀ NMS µÄµØÖ·£¬ÒÔ±ãÖªµÀÏòºÎ´¦·¢ËÍÏÝÚå¡£

Äú¿ÉÒÔͨ¹ý Sun ONE Application Server ¹ÜÀí½çÃæΪ SNMP Ö÷´úÀíÅäÖÃÏÝÚåÄ¿±ê¡£»¹¿ÉÒԲ鿴¡¢±à¼­²¢É¾³ýÒÑÅäÖõÄÏÝÚåÄ¿±ê¡£Ê¹ÓùÜÀí½çÃæÅäÖÃÏÝÚåÄ¿±êʱ£¬Êµ¼ÊÉÏÊÇÔڱ༭ CONFIG Îļþ¡£

·¢ÉúÖØҪʼþʱ£¬·þÎñÆ÷×Ó´úÀí½«Ïò NMS ·¢ËÍÒ»ÌõÏûÏ¢£¨»òÏÝÚ壩¡£ÀýÈ磺

  1. ×Ó´úÀí֪ͨÖ÷´úÀí·þÎñÆ÷ÒÑÍ£Ö¹¡£
  2. Ö÷´úÀí·¢ËÍÒ»ÌõÏûÏ¢£¨»òÏÝÚ壩£¬½«¸Ãʼþ±¨¸æ¸ø NMS¡£
  3. NMS ͨ¹ýËüµÄÍøÂç¹ÜÀíÓ¦ÓóÌÐòÒÔÎÄ×Ö»òͼÐη½Ê½ÏÔʾ¸ÃÐÅÏ¢¡£

ÓйØÉèÖà SNMP ÏÝÚå¶Ë¿ÚµÄ˵Ã÷£¬Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£

SNMP ´úÀíÉçÇø

SNMP ´úÀíÉçÇøÓÉÒ»¸öÉçÇø×Ö·û´®¼°·ÖÅä¸ø¸ÃÖ¸¶¨ÉçÇøµÄ²Ù×÷×é³É¡£ÉçÇø×Ö·û´®ÊÇÍøÂç¹ÜÀíÕ¾ (NMS) Ãû³ÆµÄÎı¾×Ö·û´®£¬SNMP ½«ÓÃËü½øÐÐÊÚȨ¡£ÕâÒâζ×Å NMS ÔÚ·¢Ë͸ø´úÀíµÄÿÌõÏûÏ¢Öж¼´øÓÐÒ»¸öÉçÇø×Ö·û´®¡£

Ëù·ÖÅäµÄ²Ù×÷ÊÇ get ºÍ/»ò set¡£È»ºó£¬SNMP ´úÀí¿ÉÒÔÑéÖ¤ NMS ÊÇ·ñ±»ÊÚȨִÐÐ get ºÍ/»ò set ²Ù×÷ÒÔ±ã½øÐÐÊý¾Ý½»»»¡£ÉçÇø×Ö·û´®ÔÚ SNMP °üÖз¢ËÍʱ²»±»Òþ²Ø£»×Ö·û´®ÒÔ ASCII Îı¾¸ñʽ·¢ËÍ¡£

Äú¿ÉÒÔͨ¹ý¹ÜÀí½çÃæΪÿ¸öÖ¸¶¨µÄÉçÇøÅäÖò¢¹ÜÀíÉçÇø×Ö·û´®¼°ÔÊÐíµÄ²Ù×÷¡£ÓйØÉèÖà SNMP ´úÀíÉçÇøµÄ˵Ã÷£¬Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£

ÉèÖÃ SNMP

Ò»°ãÀ´½²£¬ÒªÊ¹Óà SNMP£¬ÏµÍ³ÉϱØÐë°²×°²¢ÔËÐÐÓÐÒ»¸öÖ÷´úÀíºÍÖÁÉÙÒ»¸ö×Ó´úÀí¡£ÒªÆôÓÃ×Ó´úÀí£¬±ØÐëÏÈ°²×°Ö÷´úÀí¡£Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£

ÉèÖà SNMP µÄ¹ý³Ì¸ù¾Ý²»Í¬µÄϵͳ¶ø²»Í¬¡£Ï±í¸ÅÊöÁËÔÚ²»Í¬Çé¿öÏÂËùÒªÖ´ÐеĹý³Ì¡£±¾ÕºóÃ潫¶Ôʵ¼Ê¹ý³Ì½øÐÐÏêϸ½éÉÜ¡£

Èç¹û·þÎñÆ÷Âú×ãÒÔÏÂÌõ¼þ¡­¡­

¡­¡­ÇëÖ´ÐÐÒÔϹý³Ì¡££¨ºóÐø¸÷½Ú½«ÏêϸÌÖÂÛ£©¡£

µ±Ç°Ã»ÓÐÔËÐб¾µØ´úÀí

 

  1. Æô¶¯Ö÷´úÀí¡£
  2. ΪϵͳÉÏ°²×°µÄÿ¸ö·þÎñÆ÷ÆôÓÃ×Ó´úÀí¡£
 

  • ±¾µØ´úÀíµ±Ç°ÕýÔÚÔËÐС£
  • ÎÞ SMUX
  • ²»ÐèÒª¼ÌÐøʹÓñ¾µØ´úÀí
 

  1. Ϊ¹ÜÀí·þÎñÆ÷°²×°Ö÷´úÀíʱ£¬Í£Ö¹±¾µØ´úÀí¡£
  2. Æô¶¯Ö÷´úÀí¡£
  3. Ϊÿ¸ö·þÎñÆ÷ʵÀýÅäÖà SNMP ×Ó´úÀí¡£
 

  • ±¾µØ´úÀíµ±Ç°ÕýÔÚÔËÐС£
  • ÎÞ SMUX
  • ÐèÒª¼ÌÐøʹÓñ¾µØ´úÀí
 

  1. °²×° SNMP ´úÀíµÄ´úÀí³ÌÐò¡£
  2. Æô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐò¡£
  3. ʹÓÃÖ÷´úÀí¶Ë¿ÚºÅÒÔÍâµÄ¶Ë¿ÚºÅÖØÐÂÆô¶¯±¾µØ´úÀí¡£
  4. Æô¶¯Ö÷´úÀí¡£
  5. ΪϵͳÉÏ°²×°µÄÿ¸ö·þÎñÆ÷ÆôÓÃ×Ó´úÀí¡£
 

¿ªÊ¼Ç°£¬Ó¦µ±ÑéÖ¤Á½¼þÊÂÇ飺

  • ÄúµÄϵͳÊÇ·ñÒѾ­ÔËÐÐÁË SNMP ´úÀí£¨²Ù×÷ϵͳµÄ±¾µØ´úÀí£©¡£
  • Èç¹ûÊÇ£¬¸Ã±¾µØ SNMP ´úÀíÊÇ·ñÖ§³Ö SMUX ͨÐÅ¡£

ÓйØÈçºÎÑéÖ¤ÕâЩÐÅÏ¢µÄ˵Ã÷£¬Çë²Î¼ûÄúµÄϵͳÎĵµ¡£



×¢Òâ

ÔÚ¸ü¸ÄÁ˹ÜÀí·þÎñÆ÷ÖÐµÄ SNMP ÉèÖᢰ²×°ÁËеķþÎñÆ÷»òɾ³ýÁËÏÖÓзþÎñÆ÷ºó£¬Äú±ØÐëÖ´ÐÐÒÔϲ½Ö裺

  • (Windows 2000) ÖØÐÂÆô¶¯ Windows SNMP ·þÎñ»òÖØÐÂÒýµ¼¼ÆËã»ú¡£
  • (UNIX) ʹÓùÜÀí·þÎñÆ÷ÖØÐÂÆô¶¯ SNMP Ö÷´úÀíºÍ SNMP ×Ó´úÀí¡£


±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺

ʹÓà SNMP ´úÀíµÄ´úÀí³ÌÐò (UNIX/Linux)

Èç¹ûÒѾ­ÔËÐÐÓÐÒ»¸ö±¾µØ´úÀí£¬²¢ÇÒÏ£Íû½«ËüÓëÒ»¸ö Sun ONE Application Server Ö÷´úÀíÒ»Æð²¢ÐÐʹÓã¬ÔòÐèҪʹÓÃÒ»¸ö SNMP ´úÀíµÄ´úÀí³ÌÐò¡£ÔÚÆô¶¯Ö®Ç°£¬ÇëÈ·±£Í£Ö¹±¾µØÖ÷´úÀí¡££¨ÓйØÏêϸÐÅÏ¢£¬Çë²Î¼ûÄúµÄϵͳÎĵµ¡££©



×¢Òâ

ҪʹÓôúÀí³ÌÐò£¬ÐèÒª°²×°²¢Æô¶¯Ëü»¹±ØÐëʹÓà Sun ONE Application Server Ö÷´úÀíÔËÐж˿ÚÒÔÍâµÄ¶Ë¿ÚÖØÐÂÆô¶¯±¾µØ SNMP Ö÷´úÀí¡£



±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺

°²×° SNMP ´úÀíµÄ´úÀí³ÌÐò

Èç¹ûij¸ö SNMP ´úÀíÕýÔÚϵͳÉÏÔËÐУ¬²¢ÇÒÏ£Íû¼ÌÐøʹÓñ¾µØ SNMP ÊØ»¤³ÌÐò£¬ÇëÖ´ÐÐÒÔϸ÷½ÚÖеIJ½Ö裺

  1. °²×° SNMP Ö÷´úÀí¡£Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£
  2. °²×°²¢Æô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐò£¬È»ºóÖØÐÂÆô¶¯±¾µØ SNMP ÊØ»¤³ÌÐò¡£Çë²Î¼û¡°Ê¹Óà SNMP ´úÀíµÄ´úÀí³ÌÐò (UNIX/Linux)¡±¡£
  3. Æô¶¯ SNMP Ö÷´úÀí¡£Çë²Î¼û¡°ÆôÓúÍÆô¶¯ SNMP Ö÷´úÀí¡±¡£
  4. ÆôÓÃ×Ó´úÀí¡£Çë²Î¼û¡°ÆôÓÃ×Ó´úÀí¡±¡£

Òª°²×° SNMP ´úÀíµÄ´úÀí³ÌÐò£¬Çë±à¼­Î»ÓÚ·þÎñÆ÷¸ùĿ¼Ï嵀 install_dir/lib/snmp/sagt ÖÐµÄ CONFIG Îļþ£¨Äú¿ÉÒÔΪ´ËÎļþÖ¸¶¨ÆäËüÃû³Æ£©£¬ÒÔʹÆä°üº¬ SNMP ÊØ»¤³ÌÐòµÄ¼àÌý¶Ë¿Ú¡£SNMP ´úÀíµÄ´úÀí³ÌÐò»¹ÐèÒª°üÀ¨ËüҪת·¢µÄ MIB Ê÷ºÍÏÝÚå¡£

ÏÂÃæÊÇÒ»¸ö CONFIG ÎļþʾÀý£º


AGENT AT PORT 1161 WITH COMMUNITY public
SUBTREES 1.3.6.1.2.1.1,
1.3.6.1.2.1.2,
1.3.6.1.2.1.3,
1.3.6.1.2.1.4,
1.3.6.1.2.1.5,
1.3.6.1.2.1.6,
1.3.6.1.2.1.7,
1.3.6.1.2.1.8
FORWARD ALL TRAPS;


Æô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐò

ÒªÆô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐò£¬ÇëÔÚÃüÁîÌáʾ·ûÏÂÊäÈëÒÔÏÂÄÚÈÝ£º

# sagt -c CONFIG&

ÖØÐÂÆô¶¯±¾µØ SNMP ÊØ»¤³ÌÐò

Æô¶¯ SNMP ´úÀíµÄ´úÀí³ÌÐòºó£¬ÔÚ CONFIG ÎļþÖÐÖ¸¶¨µÄ¶Ë¿ÚÖØÐÂÆô¶¯±¾µØ SNMP ÊØ»¤³ÌÐò¡£

ÒªÖØÐÂÆô¶¯±¾µØ SNMP ÊØ»¤³ÌÐò£¬ÇëÔÚÃüÁîÌáʾ·ûÏÂÊäÈëÒÔÏÂÄÚÈÝ£º

# snmpd -P port_number

ÆäÖÐ port_number ÊÇÔÚ CONFIG ÎļþÖÐÖ¸¶¨µÄ¶Ë¿ÚºÅ¡£ÀýÈ磬ÔÚ Solaris ƽ̨ÉÏ£¬Ê¹ÓÃÇ°ÃæÌáµ½µÄ CONFIG ÎļþʾÀýÖеĶ˿ڣ¬ÄúÐèÒªÊäÈ룺

# snmpd -P 1161

°²×° SNMP Ö÷´úÀí



×¢Òâ

Äú²»ÄÜʹÓùÜÀí½çÃæ°²×°ºÍÆô¶¯ SNMP Ö÷´úÀí£¬³ý·Ç·þÎñÆ÷ÊÇ×÷Ϊ root ÔËÐеġ£



°²×° SNMP Ö÷´úÀíµÄ²½Ö裺

  1. ÒÔ³¬¼¶Óû§Éí·ÝµÇ¼¡£
  2. ¼ì²é¶Ë¿Ú 161 ÉÏÊÇ·ñÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò (snmpd)¡£
  3. Èç¹ûûÓÐÔËÐÐ SNMP ÊØ»¤³ÌÐò£¬Çëתµ½²½Öè 4¡£

    Èç¹ûÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò£¬ÇëÈ·±£ÖªµÀÈçºÎÖØÐÂÆô¶¯ËüÒÔ¼°ËüÖ§³ÖÄÄЩ MIB Ê÷¡£

  4. Èç¹ûÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò£¬Çë½áÊøËüµÄ½ø³Ì¡£
  5. ÔÚ¹ÜÀí½çÃæµÄ×ó²à´°¸ñÖУ¬Ñ¡Ôñ¡°Admin Server¡±½Úµã¡£
  6. Ñ¡Ôñ¡°Monitoring¡±Ñ¡ÏÒÔÏÔʾ¡°SNMP Agent Trap¡±Ò³Ã棬ÈçÏÂͼËùʾ¡£

   ¡°SNMP Agent Trap¡±Ò³Ãæ
¡°SNMP Agent Trap¡±Ò³ÃæµÄÉèÖÃͼʾ¡£

´ËÒ³ÃæÏÔʾÁ˹ÜÀíÆ÷ÌõÄ¿ÐÅÏ¢¡£

  1. ¼üÈëÕýÔÚÔËÐÐÍøÂç¹ÜÀíÈí¼þµÄϵͳµÄÃû³Æ¡£
  2. ¼üÈëÍøÂç¹ÜÀíϵͳÓÃÀ´¼àÌýÏÝÚåµÄÏÝÚå¶Ë¿ÚºÅ¡££¨³£ÓõĶ˿ÚÊÇ 162¡££©ÓйØÏÝÚåµÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°SNMP ÏÝÚåÄ¿±ê¡±¡£
  3. ¼üÈëÒªÔÚÏÝÚåÖÐʹÓõÄÉçÇø×Ö·û´®¡£ÓйØÉçÇø×Ö·û´®µÄÏêϸÐÅÏ¢£¬Çë²Î¼û¡°SNMP ´úÀíÉçÇø¡±¡£
  4. µ¥»÷¡°OK¡±¡£
  5. ÔÚ¡°Monitoring¡±Ñ¡ÏÉÏ£¬µ¥»÷¡°SNMP Agent Community¡±Á´½Ó¡£
  6. ½«ÏÔʾÉçÇø×Ö·û´®ÐÅÏ¢£¬ÈçÏÂͼËùʾ¡£

   ¡°SNMP Agent Community¡±Ò³Ãæ
¡°SNMP Agent Community¡±Ò³ÃæµÄÉèÖÃͼʾ¡£

  1. ¼üÈëÖ÷´úÀíµÄÉçÇø×Ö·û´®¡£
  2. Ñ¡ÔñÉçÇøµÄ²Ù×÷¼¶±ð¡£
  3. ½¨Á¢ÉçÇøºó£¬¿ÉÒÔʹÓôËÒ³ÃæÉÏ¡°Current Communities¡±±êÌâϵݴť±à¼­ÆäÉèÖûòɾ³ýËü¡£

  4. µ¥»÷¡°OK¡±¡£
  5. ·ÃÎÊ×ó²à´°¸ñÖС°App Server Instances¡±ÏÂÄúµÄ·þÎñÆ÷ʵÀý£¬È»ºóµ¥»÷¡°Apply Changes¡±¡£

ÆôÓúÍÆô¶¯ SNMP Ö÷´úÀí

Ö÷´úÀí²Ù×÷ÊÇÔÚÃûΪ CONFIG µÄ´úÀíÅäÖÃÎļþÖж¨ÒåµÄ£¬Äú¿ÉÒÔÊÖ¶¯±à¼­´ËÎļþ¡£ÒªÆôÓà SNMP ×Ó´úÀí£¬±ØÐëÏÈ°²×° SNMP Ö÷´úÀí¡£



×¢Òâ

Èç¹ûÔÚÖØÐÂÆô¶¯Ö÷´úÀíʱ³öÏÖÀàËÆÓÚSystem Error:Could not bind to port µÄ°ó¶¨´íÎó£¬ÇëʹÓà ps -ef | grep snmp ¼ì²é magt ÊÇ·ñÔÚÔËÐС£Èç¹ûÕýÔÚÔËÐУ¬ÇëʹÓà kill -9 pid ÃüÁî½áÊø¸Ã½ø³Ì¡£È»ºó£¬SNMP µÄ CGI ½«ÖØпªÊ¼¹¤×÷¡£



±¾½Ú°üÀ¨ÒÔÏÂÖ÷Ì⣺

  • ÔÚÆäËü¶Ë¿ÚÉÏÆô¶¯Ö÷´úÀí
  • ÊÖ¶¯ÅäÖà SNMP Ö÷´úÀí
  • ±à¼­Ö÷´úÀíµÄ CONFIG Îļþ
  • ¶¨Òå sysContact ºÍ sysLocation ±äÁ¿
  • ÅäÖÃ SNMP Ö÷´úÀí
  • Æô¶¯ SNMP Ö÷´úÀí
  • ÆôÓÃ×Ó´úÀí

ÔÚÆäËü¶Ë¿ÚÉÏÆô¶¯Ö÷´úÀí

¹ÜÀí½çÃæÖ»ÄÜÔÚ 161 ¶Ë¿ÚÉÏÆô¶¯ SNMP Ö÷´úÀí¡£µ«ÊÇ£¬Äú¿ÉÒÔʹÓÃÒÔϲ½ÖèÔÚÆäËü¶Ë¿ÚÉÏÊÖ¶¯Æô¶¯Ö÷´úÀí£º

  1. ±à¼­ install_dir/lib/snmp/magt/CONFIG ÒÔÖ¸¶¨ËùÏ£ÍûµÄ¶Ë¿Ú¡£
  2. ÔËÐÐÒÔÏÂÆô¶¯½Å±¾£º
  3. cd instance_root/admin-server ./start -shell install_dir/lib/snmp/magt/magt
    install_dir/lib/snmp/magt/CONFIG
    install_dir/lib/snmp/magt/INIT

È»ºó£¬Ö÷´úÀí½«ÔÚËùÏ£ÍûµÄ¶Ë¿ÚÉÏÆô¶¯¡£µ«ÊÇ£¬¹ÜÀí½çÃæÄܹ»¼ì²â³öÖ÷´úÀíÕýÔÚÔËÐС£

ÊÖ¶¯ÅäÖà SNMP Ö÷´úÀí

ÊÖ¶¯ÅäÖà SNMP Ö÷´úÀíµÄ²½Ö裺

  1. ÒÔ³¬¼¶Óû§Éí·ÝµÇ¼¡£
  2. ¼ì²é¶Ë¿Ú 161 ÉÏÊÇ·ñÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò (snmpd)¡£
  3. Èç¹ûÔËÐÐÓÐ SNMP ÊØ»¤³ÌÐò£¬ÇëÈ·±£ÖªµÀÈçºÎÖØÐÂÆô¶¯ËüÒÔ¼°ËüÖ§³ÖÄÄЩ MIB Ê÷¡£È»ºó½áÊøËüµÄ½ø³Ì¡£

  4. ±à¼­Î»ÓÚ·þÎñÆ÷¸ùĿ¼Ï lib/snmp/magt ÖÐµÄ CONFIG Îļþ¡£
  5. £¨¿ÉÑ¡£©ÔÚ CONFIG ÎļþÖж¨Òå sysContact ºÍ sysLocation ±äÁ¿£¬Èç¡°¶¨Òå sysContact ºÍ sysLocation ±äÁ¿¡±ÖÐËùÊö¡£

±à¼­Ö÷´úÀíµÄ CONFIG Îļþ

CONFIG Îļþ¶¨ÒåÁ˽«ÓëÖ÷´úÀíÒ»Æð¹¤×÷µÄÉçÇøºÍ¹ÜÀíÆ÷¡£¹ÜÀíÆ÷µÄÖµÓ¦µ±ÊÇÓÐЧµÄϵͳÃû»ò IP µØÖ·¡£

ÏÂÃæÊÇÒ»¸ö»ù±¾ CONFIG ÎļþµÄʾÀý£º


COMMUNITY          public
                   ALLOW ALL OPERATIONS

MANAGER            manager_station_name
                   SEND ALL TRAPS TO PORT 162
                    WITH COMMUNITY public


¶¨Òå sysContact ºÍ sysLocation ±äÁ¿

Äú¿ÉÒԱ༭ CONFIG Îļþ£¬ÎªÖ¸¶¨ÁË sysContact ºÍ sysLocation MIB-II ±äÁ¿µÄ sysContact ºÍ sysLocation Ìí¼Ó³õʼֵ ¡£´ËʾÀýÖÐ sysContact ºÍ sysLocation µÄ×Ö·û´®·ÅÔÚÁËÒýºÅÄÚ¡£Èκΰüº¬¿Õ¸ñ¡¢»»Ðзû¡¢ÖƱí·ûµÈµÄ×Ö·û´®¶¼±ØÐë·ÅÔÚÒýºÅÄÚ¡£ÄúÒ²¿ÉÒÔÓÃÊ®Áù½øÖƼÇÊý·¨À´Ö¸¶¨Öµ¡£

ÏÂÃæÊÇÒ»¸ö CONFIG ÎļþʾÀý£¬ÆäÖж¨ÒåÁË sysContact ºÍ sysLocation ±äÁ¿£º


COMMUNITY          public
                   ALLOW ALL OPERATIONS

MANAGER            nms2
                   SEND ALL TRAPS TO PORT 162
                   WITH COMMUNITY public

INITIAL            sysLocation "Server room
901 San Antonio Road
Palo Alto CA 94303
USA"

INITIAL            sysContact "John Doe
email:jdoe@sun.com"


ÅäÖÃ SNMP ×Ó´úÀí

ÒªÅäÖà SNMP ×Ó´úÀí£¬ÇëÖ´ÐÐÒÔϲ½Ö裺

  1. ÔÚ×ó²à´°¸ñÖУ¬Ñ¡Ôñ¡°Admin Server¡±ÏµķþÎñÆ÷ʵÀý½Úµã¡£
  2. ÔÚÓҲര¸ñÖУ¬Ñ¡Ôñ¡°Monitoring¡±Ñ¡Ï¡£
  3. Ñ¡Ôñ¡°SNMP Subagent Configuration¡±Á´½Ó¡£
  4. ½«ÏÔʾÒÔÏÂÒ³Ã棺

   ¡°SNMP Subagent Configuration¡±Ò³Ãæ
×Ó´úÀíµÄ SNMP ÅäÖÃÉèÖÃͼʾ¡£

  1. £¨Ö»ÊÊÓÃÓÚ UNIX£©ÔÚ¡°Master Host¡±×Ö¶ÎÖУ¬ÊäÈë·þÎñÆ÷µÄÃû³ÆºÍÓò¡£
  2. ÊäÈë·þÎñÆ÷µÄ˵Ã÷£¬°üÀ¨²Ù×÷ϵͳÐÅÏ¢¡£
  3. ÊäÈ븺Ôð¸Ã·þÎñÆ÷µÄ×éÖ¯¡£
  4. ÊäÈë·þÎñÆ÷ʵÀýµÄλÖá£
  5. ÔÚ¡°Contact¡±×Ö¶ÎÖУ¬ÊäÈ븺Ôð¸Ã·þÎñÆ÷µÄÈËÔ±µÄÐÕÃûºÍÁªÏµÐÅÏ¢¡£
  6. Ñ¡Ôñ¡°On¡±£¬ÆôÓà SNMP ͳ¼ÆÊý¾ÝÊÕ¼¯¡£
  7. µ¥»÷¡°OK¡±¡£
  8. ·ÃÎÊ×ó²à´°¸ñÖС°App Server Instances¡±ÏÂÄúµÄ·þÎñÆ÷ʵÀý£¬È»ºóµ¥»÷¡°Apply Changes¡±¡£

Æô¶¯ SNMP Ö÷´úÀí

°²×° SNMP Ö÷´úÀíºó£¬Äú¿ÉÒÔÊÖ¶¯Æô¶¯Ëü»òͨ¹ý¹ÜÀí½çÃæʹÓùÜÀí·þÎñÆ÷½øÐÐÆô¶¯¡£

ÊÖ¶¯Æô¶¯ SNMP Ö÷´úÀí

ÒªÊÖ¶¯Æô¶¯Ö÷´úÀí£¬ÇëÔÚÃüÁîÌáʾ·ûÏÂÊäÈëÒÔÏÂÄÚÈÝ£º

# magt CONFIG INIT&

INIT ÎļþÊÇ°üº¬ MIB-II ϵͳ×éÐÅÏ¢£¨°üÀ¨ÏµÍ³Î»ÖúÍÁªÏµÐÅÏ¢£©µÄ·ÇÒ×ʧÐÔÎļþ¡£Èç¹û INIT ²»´æÔÚ£¬Ê×´ÎÆô¶¯Ö÷´úÀíʱ½«´´½¨Ëü¡£



×¢Òâ

Èç¹û CONFIG ÎļþÖеĹÜÀíÆ÷Ãû³ÆÎÞЧ£¬½«µ¼ÖÂÖ÷´úÀíÆô¶¯Ê§°Ü¡£



ÒªÔڷDZê×¼¶Ë¿ÚÉÏÆô¶¯Ö÷´úÀí£¬ÇëʹÓÃÒÔÏÂÁ½ÖÖ·½·¨Ö®Ò»£º

·½·¨ 1£ºÔÚ CONFIG ÎļþÖУ¬ÎªÖ÷´úÀíÓÃÀ´¼àÌýÀ´×Ô¹ÜÀíÆ÷µÄ SNMP ÇëÇóµÄÿ¸ö½Ó¿ÚÖ¸¶¨´«ÊäÓ³Éä¡£´«ÊäÓ³ÉäÔÊÐíÖ÷´úÀí½ÓÊܱê×¼¶Ë¿ÚºÍ·Ç±ê×¼¶Ë¿ÚÉϵÄÁ¬½Ó¡£Ö÷´úÀí»¹¿ÉÒÔÔڷDZê×¼¶Ë¿ÚÉϽÓÊÜ SNMP ͨÐÅ¡£²¢ÐÐ SNMP µÄ×î´óÊýÄ¿ÊÜÏÞÓÚÄ¿±êϵͳ¶Ôÿ¸ö½ø³ÌµÄ´ò¿ªµÄÌ×½Ó×Ö»òÎļþÃèÊö·ûÊýÄ¿µÄÏÞÖÆ¡£ÏÂÃæÊÇÒ»¸ö´«ÊäÓ³ÉäÌõĿʾÀý£º

TRANSPORT          extraordinary   SNMP
                   OVER UDP SOCKET
                    AT PORT 11161

ÊÖ¶¯±à¼­ CONFIG Îļþºó£¬ÄúÓ¦µ±ÔÚÃüÁîÌáʾ·ûϼüÈëÒÔÏÂÄÚÈÝÒÔ±ãÊÖ¶¯Æô¶¯Ö÷´úÀí£º

# magt CONFIG INIT&

·½·¨ 2£º±à¼­ /etc/services Îļþ£¬ÒÔÔÊÐíÖ÷´úÀí½ÓÊܱê×¼¶Ë¿ÚºÍ·Ç±ê×¼¶Ë¿ÚÉϵÄÁ¬½Ó¡£

ʹÓùÜÀí·þÎñÆ÷Æô¶¯ SNMP Ö÷´úÀí

ҪʹÓùÜÀí·þÎñÆ÷Æô¶¯ SNMP Ö÷´úÀí£¬ÇëÖ´ÐÐÒÔϲ½Ö裺



×¢Òâ

Äú±ØÐëÒÔ³¬¼¶Óû§Éí·ÝµÇ¼ Sun ONE Application Server ²ÅÄÜÆô¶¯ SNMP Ö÷´úÀí¡£



  1. µÇ¼µ½¹ÜÀí·þÎñÆ÷¡£
  2. ÔÚ×ó²à´°¸ñÖÐÑ¡Ôñ¡°Admin Server¡±½Úµã£¬È»ºóÑ¡Ôñ¡°Monitoring¡±Ñ¡Ï¡£
  3. ÔÚÓҲര¸ñÖп¿½ü¶¥²¿µÄλÖã¬Ñ¡Ôñ¡°SNMP Agent Control¡±Á´½Ó¡£
  4. ½«ÏÔʾÒÔÏÂÒ³Ãæ¡£

   ¡°SNMP Agent Control¡±Ò³Ãæ
ÈçºÎ¿ØÖÆ SNMP Ö÷´úÀíµÄͼʾ¡£

  1. µ¥»÷¡°Start¡±¡£
  2. Äú»¹¿ÉÒÔÔÚ¡°SNMP Agent Control¡±Ò³ÃæÉÏÍ£Ö¹ºÍÖØÐÂÆô¶¯ SNMP Ö÷´úÀí¡£

ÆôÓÃ×Ó´úÀí

°²×°Á˹ÜÀí·þÎñÆ÷¸½´øµÄÖ÷´úÀíºó£¬Äú±ØÐëÔÚ³¢ÊÔÆô¶¯Ëü֮ǰΪÄúµÄ·þÎñÆ÷ʵÀýÆôÓÃ×Ó´úÀí¡£Óйذ²×°Ö÷´úÀíµÄÐÅÏ¢£¬Çë²Î¼û¡°°²×° SNMP Ö÷´úÀí¡±¡£

ÔÚ UNIX/Linux ƽ̨ÉÏ£¬Äú¿ÉÒÔʹÓÃ×Ó´úÀíÍ£Ö¹ SNMP ¹¦ÄÜ¡£Äú±ØÐëÏÈÍ£Ö¹×Ó´úÀí£¬È»ºóÔÙÍ£Ö¹Ö÷´úÀí¡£Èç¹ûÏÈÍ£Ö¹Ö÷´úÀí£¬¿ÉÄÜÎÞ·¨Í£Ö¹×Ó´úÀí¡£Èç¹û·¢ÉúÕâÖÖÇé¿ö£¬ÇëÖØÐÂÆô¶¯Ö÷´úÀí£¬Í£Ö¹×Ó´úÀí£¬È»ºóÍ£Ö¹Ö÷´úÀí¡£

ÆôÓà SNMP ×Ó´úÀíµÄ²½Ö裺

  1. ÔÚ×ó²à´°¸ñÖУ¬Õ¹¿ª¡°App Server Instances¡±½Úµã¡£
  2. Ñ¡Ôñ·þÎñÆ÷ʵÀý£¬È»ºóµ¥»÷¡°Monitoring¡±Ñ¡Ï¡£
  3. Ñ¡Ôñ¡°SNMP Subagent Control¡±Ñ¡ÏîÒÔÏÔʾÈçÏÂͼËùʾµÄÒ³Ãæ¡£

   ¡°SNMP Subagent Control¡±Ò³Ãæ
SNMP ×Ó´úÀíµÄ¿ØÖÆÉèÖÃͼʾ¡£

ÔÚ´ËÒ³ÃæÖУ¬Äú¿ÉÒÔÆô¶¯¡¢Í£Ö¹»òÖØÐÂÆô¶¯ SNMP ×Ó´úÀí¡£×Ó´úÀíµÄ״̬½«ÏÔʾÔÚ¿ØÖÆ°´Å¥µÄÉÏÃæ¡£

ÔÚ Windows ƽ̨ÉÏ£¬Windows SNMP ·þÎñÓÃÓÚ¼àÊÓ Sun ONE Application Server£»¿ÉÒÔʹÓá°¿ØÖÆÃæ°å¡±-¡°¹ÜÀí¹¤¾ß¡±Öеġ°·þÎñ¡±Ñ¡ÏîÖжÔÆä½øÐпØÖÆ¡£



×¢Òâ

¶Ô SNMP ÅäÖýøÐÐÈκθü¸Äºó£¬±ØÐëµ¥»÷¡°OK¡±£¬È»ºó´Ó¡°SNMP Subagent Control¡±Ò³ÃæÖÐÖØÐÂÆô¶¯ SNMP ×Ó´úÀí¡£




ÉÏÒ»¸ö      Ŀ¼      Ë÷Òý      ÏÂÒ»¸ö     
Copyright 2003 Sun Microsystems, Inc. All rights reserved.