Ëæ×Å»¥ÁªÍøµÄ¿ìËٳɳ¤£¬WebÓ¦ÓóÌÐòµÄÐÔÄܺͿÉÓÃÐÔ³ÉÁË¿Í‘ôÌåÑéµÄ¹Ø¼ü£¬È»¶øÔÚʵ¼ÊÓ¦ÓÃÖУ¬ÓÉÓÚÐí¶àÒòËصÄÓ°Ï죬ÈçÓ²¼þ¹ÊÕÏ¡¢ÍøÂçÓµÈû¡¢Èí¼þ©¶´µÈ£¬tomcatµÄÐÔÄÜ¿ÉÄÜ»áÊܵ½Ó°Ïì¡£Òò´Ë£¬Á˽âºÍ¼à¿Øtomcat·þÎñÆ÷µÄÐÔÄܷdz£¹Ø¼ü¡£ÄÇôÏÂÃæÒ»ÆðÀ´Á˽âÏÂtomcat½Ó¿ÚÐÔÄܼà¿Ø¹¤¾ßµÄÓÃ;¼°ÓÅÊÆ¡£
Ò»¡¢tomcat½Ó¿ÚÐÔÄܼà¿Ø¹¤¾ßµÄÓÃ;
1¡¢¼ì²âtomcat·þÎñÆ÷µÄµ±Ç°×´Ì¬
JMX¼à¿ØÆ÷¿ÉÒÔ²¶»ñtomcat·þÎñÆ÷µÄ¸÷ÖÖÊôÐÔºÍÖ¸±ê£¬ÀýÈçCPUÀûÓÃÂÊ¡¢ÄÚ´æʹÓÃÇé¿ö¡¢Êý¾Ý¿âÁ¬½Ó³Ø״̬µÈ£¬ÒÔ±ã¾ÓªÔ±¿ÉÒÔ¿ìËÙÁ˽â·þÎñÆ÷µÄÔËÐÐ×´¿ö£¬·¢ÏÖÎÊÌ⼰ʱ´¦Àí¡£
2¡¢¸ÄÉÆtomcat·þÎñÆ÷µÄÐÔÄÜ
ʹÓÃJMX¼à¿ØÆ÷¿ÉÒÔʶ±ðtomcat·þÎñÆ÷µÄÐÔÄÜÆ¿¾±£¬ÀýÈçÏìӦʱ¼ä¹ý³¤¡¢ÄÚ´æй©µÈ£¬²¢ÌṩÏàÓ¦µÄÊý¾ÝºÍÅÙÎö±¨¸æ£¬ÒÔÐÖú¾ÓªÔ±¸ÄÉÆ·þÎñÆ÷ÐÔÄÜ¡£
3¡¢Ìá¸ßtomcat·þÎñÆ÷µÄ¿ÉÓÃÐÔ
ͨ¹ý¼àÊÓtomcat·þÎñÆ÷µÄ״̬£¬¿ÉÒÔ¼°Ê±·¢ÏÖÒì³£Çé¿ö²¢²ÉÈ¡´ëÊ©£¬´Ó¶øÌá¸ß·þÎñÆ÷µÄ¿ÉÓÃÐÔ¡£ÀýÈ磬µ±Ä³¸öServlet´¦ÀíÇëÇóµÄʱ¼ä³¬¹ýÒ»¶¨ãÐֵʱ£¬¼à¿ØÆ÷¿ÉÒÔÁ¢¼´·¢³ö¾¯±¨£¬ÒÔ±ã¾ÓªÔ±¼°Ê±´¦ÀíÎÊÌâ¡£
¶þ¡¢tomcat½Ó¿ÚÐÔÄܼà¿Ø¹¤¾ßµÄÓÅÊÆ
1¡¢¸ßЧ¿É¿¿
JMX¼à¿ØÆ÷²ÉÓÃJava Management Extensions(JMX)¼¼Êõ£¬¿ÉÒÔ¿ìËÙ²¶»ñtomcat·þÎñÆ÷µÄÐÔÄÜÖ¸±ê£¬Ìṩ׼ȷ¡¢ÊµÊ±¡¢¿É¿¿µÄÊý¾ÝºÍÅÙÎö±¨¸æ¡£
2¡¢Ò×ÓÚʹÓúÍÅäÖÃ
JMX¼à¿ØÆ÷ÌṩÁË¿Í‘ôÓѺõÄͼÐνçÃ棬֧³Ö×Ô¶¨ÒåÅäÖúͿìËÙ²¿Êð¡£¾ÓªÔ±¿ÉÒÔÇáËɵØÌí¼Ó»òɾ³ý¸÷ÖÖÊôÐÔºÍÖ¸±ê£¬²¢ÉèÖþ¯±¨ãÐÖµºÍ֪ͨ·½Ê½¡£
3¡¢À©Õ¹ÐÔÇ¿
JMX¼à¿ØÆ÷¾ßÓÐÁ¼ºÃµÄÀ©Õ¹ÐÔ£¬¿ÉÒÔÓëÆäËûtomcatÐÔÄܼà²â¹¤¾ßºÍµÚÈý·½Èí¼þ¼¯³É£¬ÀýÈçLog4j¡¢NagiosµÈ£¬ÒÔÌá¸ß¼à²âµÄÁé»îÐԺ;«¶È¡£
4¡¢½µµÍ¾Óª³É±¾
ͨ¹ýʹÓÃJMX¼à¿ØÆ÷£¬¾ÓªÔ±¿ÉÒÔʵÏÖ¶Ôtomcat·þÎñÆ÷µÄÈ«Ãæ¾ÓªºÍ¼à¿Ø£¬´Ó¶ø½µµÍ¾Óª³É±¾ºÍ¹¤×÷¸ºµ££¬Ìá¸ß¹¤×÷ЧÂʺÍÉú²úÁ¦¡£
×ܽᣬtomcat½Ó¿ÚÐÔÄܼà¿Ø¿ÉÒÔÐÖú¾ÓªÔ±ÓÐЧµØ¼à¿ØºÍ¾Óªtomcat·þÎñÆ÷µÄÐÔÄÜ£¬½µµÍ¾Óª³É±¾£¬Ê¹µÃtomcat½Ó¿ÚÐÔÄܼà¿Ø¹¤¾ß³ÉΪ¸Ä½øWebÓ¦ÓóÌÐòÐÔÄܵĹؼü¹¤¾ßÖ®Ò»¡£?