| With the development of network technology, the applications of computer grown from running on a single machine to structuring a distributed architectures. In a variety of applications, with the development of Web technology, the module based on B / S structure has been increasingly widely used. As the core components of B / S structure -Application Servers, have a more and more rapid development by Java language widely use. Application server is a middleware product evolved. It is a program that handles all application operations between user and an organization's backend business applications or database. Application servers are typically used for complex transaction-based applications. To support high-end needs, an application server has to have built-in redundancy, monitors for high-availability, high-performance distributed application services and support for complex database access.Application server has become more and more rich with the growing number of industry-standard interface and protocol engine has been integrated in. The business application also became more complex with high-performance and high-availability requirements. Enterprise requirements are turning from function to stability. Effective extract the status of applications and diagnostic analysis to ensure that the applications have the best performance and shortest response-time and the longest running time has a great significance.However, Because the internal development of Application Server is laggard, as well as the application provider is still immature on the requirements of Server performance and quality, So they can not raise a higher and more specific request, as a result the research of Monitoring System which is purpose for raising performance and quality of service develop slowly. The supply market of a small number large-scale domestic enterprises which demand Application Server with high performance and perfect service quality have been occupied by foreign companies.At present, there is no well-known monitoring system product which is purpose for enhancing performance and service quality in domestic market. ITCAM and Wily produced by IBM and CA are well-known foreign products. These new products have the performance of application management, as well as the integrate management of application, server and middleware.This article aims to briefly describe a design and implementation program of Application Server monitoring and control system. The program is an important part of a management software system which is designed for enhancing the usability and performance of business applications. It provides application server resources overview and monitoring status of business applications and components. As a highly versatile system with highly configurable and scalable, it supports a wide range of applications and server environment. First, this article propose the goal of monitoring system ,then we analysis the framework of monitoring system, we divide the system into two sub-systems " management sub-system " and "acquisition control sub-system", and describe framework design and module division of "acquisition control sub-system" in detail in the section of framework structural design.In the realization of the monitoring function, this system uses dynamic byte-code injection technology. The dynamic injection is different from static injection. It will not modify application assembly files, so it will not be blocked by strongly-typed signature, and the problems related to "copyright" almost never occurred. It can be used to skip a certain validation code, or replace some of the internal implementation of the code. Through this technology, when Java Virtual Machine loads the Java classes and methods, we can insert new byte code dynamically, it realizes feedback of current state information without preprocess application files.In general, this system uses the XML language to implement the metadata model-driven framework so that the system can be configured and has a better scalability. It greatly enhanced versatility. For a new application server environment, we just need to configure or extend the system simply to realize the monitoring purpose.Finally, the paper shows some functions of the monitoring system by the screenshots, includes User Management, Application Resource View, Application Essential information Browser, Application Threads Management and Active Request Catcher, for more intuitive way to introduce the system. |