CN112328443A - System service monitoring method, monitoring system and electronic equipment - Google Patents

System service monitoring method, monitoring system and electronic equipment Download PDF

Info

Publication number
CN112328443A
CN112328443A CN202010989698.XA CN202010989698A CN112328443A CN 112328443 A CN112328443 A CN 112328443A CN 202010989698 A CN202010989698 A CN 202010989698A CN 112328443 A CN112328443 A CN 112328443A
Authority
CN
China
Prior art keywords
monitoring
management component
management
monitoring data
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010989698.XA
Other languages
Chinese (zh)
Inventor
陈建宝
彭蜀
陶振华
肖杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Computer Software & Systems Inc
Original Assignee
Great Wall Computer Software & Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Great Wall Computer Software & Systems Inc filed Critical Great Wall Computer Software & Systems Inc
Priority to CN202010989698.XA priority Critical patent/CN112328443A/en
Publication of CN112328443A publication Critical patent/CN112328443A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes

Abstract

The embodiment of the disclosure relates to a monitoring method and a monitoring system of system services and electronic equipment. The method comprises the following steps: selecting a system service to be monitored and setting monitoring parameters; converting the monitoring data of the system service into a management component and registering the management component to a management component server; collecting the monitoring data through the management component server and performing unified management and monitoring; communicating the collected monitoring data through a protocol adapter or connector; analyzing the monitoring data according to the preset monitoring parameters and judging whether to alarm or not; wherein the management component and the management component server operate based on JMX framework, and the system service is based on application program developed by Java language. The embodiment of the disclosure can perform centralized management and monitoring on the system service, thereby improving the operation and maintenance capability.

Description

System service monitoring method, monitoring system and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of computer software, in particular to a system service monitoring method, a monitoring system and electronic equipment.
Background
With the continuous development of computer technology and internet application, in order to improve the usability and reliability of software systems and support high-performance and high-concurrency business scenes, software systems gradually develop towards distributed and micro-service architectures and the like. In a distributed architecture or a microservice architecture, a software system is split into multiple modules or many microservices and deployed scattered over multiple servers. How to effectively supervise the distributed deployed system service and system resources becomes a big problem.
In the related art, the conventional solution is to provide its own monitoring and management components by corresponding manufacturers and deploy them on respective hosts to realize monitoring of system services. Although the method can also realize the monitoring of the system service, the monitoring is distributed, the factory technology is not uniform, and if one monitoring parameter is required to be changed globally, the adjustment of a plurality of monitoring components is involved, and the centralized management and maintenance are difficult.
With regard to the above technical solutions, the inventors have found that at least some of the following technical problems exist: for example, all projects developed by the inventor at present adopt a micro-service architecture, and a set of software system comprises hundreds of micro-services and is deployed in hundreds of virtual machines. The inventor finds that monitoring and management of hundreds of service resources by adopting the traditional method are very difficult, the workload is huge, and unified monitoring, real-time early warning and rapid processing of operation and maintenance requirements cannot be realized.
Therefore, it is necessary to realize a method for centralized monitoring and management of system services and to develop a set of such systems.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a monitoring method, a monitoring system and an electronic device for system services, thereby overcoming, at least to some extent, one or more problems due to limitations and disadvantages of the related art.
According to a first aspect of the embodiments of the present disclosure, a method for monitoring a system service is provided, including:
selecting a system service to be monitored;
converting the monitoring data of the system service into a management component and registering the management component to a management component server;
collecting the monitoring data through the management component server and performing unified management and monitoring;
communicating the collected monitoring data through a protocol adapter or connector;
analyzing the monitoring data according to the preset monitoring parameters and judging whether to alarm or not;
wherein the management component and the management component server operate based on JMX framework, and the system service is an application program developed based on Java language.
In an exemplary embodiment of the present disclosure, in the step of communicating the collected monitoring data through a protocol adapter or a connector, the management platform communicates with the management component through an RMI connector.
In an exemplary embodiment of the present disclosure, after the step of selecting the system service to be monitored, the JMX is asynchronously called by calling a start.
In an exemplary embodiment of the present disclosure, the alarm information and the processed monitoring data are saved to a database.
In an exemplary embodiment of the present disclosure, the monitoring parameters are dynamically adjusted and displayed.
According to a second aspect of the embodiments of the present disclosure, there is provided a monitoring system for a system service, including:
the display module is used for selecting system services to be monitored and viewing monitoring information;
the information transmission module is used for transmitting the monitoring instruction and the feedback information;
the information processing module is used for analyzing the monitoring data according to the preset monitoring parameters and judging whether to alarm or not;
the information acquisition module is used for converting monitoring data of system services into a management component and registering the management component to a management component server, acquiring the monitoring data through the management component server, carrying out unified management and monitoring, and transmitting the acquired monitoring data to the information processing module through a protocol adapter or a connector.
In an exemplary embodiment of the present disclosure, the monitoring system further includes an information saving module, configured to save or query the monitoring data or the alarm information.
In an exemplary embodiment of the present disclosure, the display module includes: a login interface, a service management interface, a monitoring management interface and an alarm management interface.
In an exemplary embodiment of the present disclosure, the monitoring system is compressed into a deployment package.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the system service monitoring method in any of the above embodiments via execution of the executable instructions.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, through the monitoring method, the monitoring system and the computer device of the system service, on one hand, the operation and maintenance capability is improved by performing centralized management and monitoring on the system service; on the other hand, monitoring is realized through a Java bottom layer protocol interface, so that deep decoupling of monitoring data is realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 shows a system service monitoring flow diagram in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The exemplary embodiment first provides a method for monitoring system services, which may be applied to a terminal device, such as a mobile phone, a server, a desktop computer, a notebook computer, a tablet computer, and the like. Referring to fig. 1, the method may include the steps of:
selecting a system service to be monitored;
converting the monitoring data of the system service into a management component and registering the management component to a management component server;
monitoring data are collected through a management component server, and unified management and monitoring are carried out;
communicating the collected monitoring data through a protocol adapter or a connector;
analyzing the monitoring data according to preset monitoring parameters and judging whether to alarm or not;
the management component and the management component server run based on a JMX framework, and the system service is an application program developed based on a Java language.
It will be appreciated that the desired monitoring parameters may be set while selecting the system service to be monitored.
It should be understood that, among them, the management component is MBean, and the management component server is MBean server. The system service is an application program developed based on Java language, and the monitoring data of the system service is data information described by the Java language, including software, hardware, service, application and the like as long as the data information can be described by the Java language. The system services include not only local system services but also remote system services. That is to say, the monitoring system can simultaneously and centrally manage and control a plurality of remote system services, thereby ensuring that the supervision is more convenient. The management platform dynamically adjusts the monitoring parameters, which may be global adjustment or adjustment for a certain application service.
In addition, JMX (Java Management Extensions) is a framework that embeds Management functions for applications, devices, systems, and the like. The monitoring method can span a series of heterogeneous operating system platforms, system architectures and network transmission protocols through JMX, thereby flexibly managing and monitoring each service system. In JMX, various management objects exist in the form of management components, and when management is necessary, they are registered in a management component server. The management components registered on the management component server do not communicate directly with the remote application, and need to communicate through a protocol adapter or connector. And the protocol adapter and the connector are also registered with the management component server in the form of the management component so as to provide the corresponding service.
It should be further understood that the monitoring method is a general system service monitoring system because it is based on JMX framework. Therefore, the system service can be monitored only by configuring the monitored service information into the management platform without any secondary development.
By the method, on one hand, the system service is managed and monitored in a centralized manner, monitoring information and early warning information can be checked only through the management platform, and manual checking is not required to enter a specific application service, so that the operation and maintenance capacity is improved; on the other hand, monitoring is realized through a Java bottom layer protocol interface, and the monitoring is unrelated to the service code of an upper layer monitored system and no code is implanted, so that deep decoupling of monitoring data is realized.
Hereinafter, each step of the above-described method in the present exemplary embodiment will be described in more detail.
In one embodiment, in the step of communicating the collected monitoring data through a protocol adapter or connector, the management platform communicates with the management component through an RMI connector. It should be understood that the communication method is not limited thereto, and the communication method that can be adopted includes: RMI connector, SNMP protocol adapter, IIOP protocol adapter, HTML protocol adapter and HTTP connector. It needs to be converted into a manner of management component and registered in the management component server.
In one embodiment, after the step of selecting a system service to monitor, JMX is asynchronously called by calling start. It should be understood that there may be a run calling mode instead of a start calling mode, and the start calling mode starts the thread, so that multi-thread running is realized, and the following code is directly executed without waiting for the completion of the execution of the code calling the run mode.
In one embodiment, the alarm information and the processed monitoring data are saved to a database. It should be understood that, since the monitoring data includes attribute values of counter type, metric type and string type, etc., it needs to be converted into information that can be directly understood by the user and saved in a database for the user to query and use. And storing the alarm information into a database so that a user can directly view the alarm information. And querying and using the full alert information.
In one embodiment, the monitored parameters are dynamically adjusted and presented. It should be appreciated that dynamically adjusting the monitoring parameters may download and instantiate the management component from any URL on the network and then register with the management component server to localize the class library located on the network. The monitoring parameters are displayed so that a user can conveniently view and set the monitoring parameters.
There is also provided in this example embodiment a system for monitoring system services, which, referring to fig. 1, may include:
the display module is used for selecting system services to be monitored and viewing monitoring information;
the information transmission module is used for transmitting the monitoring instruction and the feedback information;
the information processing module is used for analyzing the monitoring data according to preset monitoring parameters and judging whether to alarm or not;
and the information acquisition module is used for converting the monitoring data of the system service into a management component, registering the management component to the management component server, acquiring the monitoring data through the management component server, carrying out unified management and monitoring, and transmitting the acquired monitoring data to the information processing module through the protocol adapter or the connector.
It should be understood that the display module may also set the monitoring parameters at the same time.
In one embodiment, the monitoring system further comprises an information storage module, and the database is used for storing or inquiring monitoring data or alarm information. It should be understood that the information storage module may be a database that stores processed information for the user to query and use the relevant information.
In one embodiment, a display module includes: a login interface, a service management interface, a monitoring management interface and an alarm management interface. The login interface is used for a user to log in the monitoring system. The service management interface is used for configuring information such as an IP address remotely accessed by JMX of the monitored system service by a user. The monitoring management interface is used for enabling a user to select system services to be monitored and starting monitoring through clicking. The alarm management interface is used for a user to check monitoring alarm information.
In one embodiment, the monitoring system is compressed into a deployment package. The deployment package is also a war package. Deployment packages are deployed in tomcat8.x when in use. In addition, since the JMX remote access of the Java program is closed by default at the time of startup of the system service, it is necessary to ensure that the JMX remote access of the Java program is opened at the time of startup of the monitored system service. So as to facilitate smooth operation of the monitoring system.
Specifically, referring to fig. 1, a whole service logic calling process for monitoring system services is shown:
1. a user logs in a monitoring system and starts monitoring a certain system service;
2. the information transmission module calls the information processing module to monitor after receiving the monitoring starting request;
3. the information processing module starts monitoring and asynchronously calls a JMX method monitoring information acquisition module;
4. the information acquisition module firstly establishes a JMX connector in an RMI mode;
5. acquiring abstract information MBean of a monitored object through a JMX connector;
6. acquiring various data of a monitored object through MBean information;
7. returning the obtained monitoring data to the information processing module for processing;
8. the information processing module processes the monitoring data and then stores the processed monitoring data in the information storage module for inquiry;
9. the information processing module analyzes the monitored data according to the monitoring parameters and judges whether an alarm is needed or not;
10. and storing the monitored alarm information to an information storage module for inquiry and use.
Specific code for the functions of the monitoring system will be described in more detail below, including:
the system service monitoring API interface code is used for providing an API interface of an http protocol for an html page of a monitoring system, and by calling the API interface, monitoring can be started/stopped on the page of the monitoring system, and monitoring results, alarm information and the like can also be checked.
The system service monitoring logic control code is mainly used for controlling the starting and stopping of the system service monitoring.
The system service monitoring data processing code is mainly used for processing data acquired in the service monitoring process.
RMI connector connection code, which is used to establish JMX connection through RMI mode, and after obtaining connection, management operation can be performed to JMX registered resource information.
And monitoring and acquiring the thread pool data code of the system service, wherein the thread pool data code is used for monitoring and acquiring the thread pool information currently used by the system service.
JVM data codes of the monitoring system service are used for collecting JVM information of a system service operating environment and mainly collecting memory information used by the JVM.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc. Additionally, it will also be readily appreciated that the steps may be performed synchronously or asynchronously, e.g., among multiple modules/processes/threads.
In an exemplary embodiment of the present disclosure, there is also provided an electronic device, comprising a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the steps of the monitoring method in any of the above embodiments via execution of executable instructions. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the monitoring method section above of the present description, when said program product is run on the terminal device.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A system service monitoring method, comprising:
selecting a system service to be monitored;
converting the monitoring data of the system service into a management component and registering the management component to a management component server;
collecting the monitoring data through the management component server and performing unified management and monitoring;
communicating the collected monitoring data through a protocol adapter or connector;
analyzing the monitoring data according to the preset monitoring parameters and judging whether to alarm or not;
wherein the management component and the management component server operate based on JMX framework, and the system service is an application program developed based on Java language.
2. The monitoring method according to claim 1, wherein in the step of communicating the collected monitoring data through a protocol adapter or connector, the step of communicating with the management means is performed through an RMI connector.
3. The monitoring method of claim 1, wherein after the step of selecting the system service to be monitored, the JMX is asynchronously called by calling a start.
4. The monitoring method of claim 1, wherein alarm information and the processed monitoring data are saved to a database.
5. The monitoring method of claim 1, wherein the monitoring parameters are dynamically adjusted and displayed.
6. A system service monitoring system, comprising:
the display module is used for selecting system services to be monitored and viewing monitoring information;
the information transmission module is used for transmitting the monitoring instruction and the feedback information;
the information processing module is used for analyzing the monitoring data according to the preset monitoring parameters and judging whether to alarm or not;
the information acquisition module is used for converting monitoring data of system services into a management component and registering the management component to a management component server, acquiring the monitoring data through the management component server, carrying out unified management and monitoring, and transmitting the acquired monitoring data to the information processing module through a protocol adapter or a connector.
7. The monitoring system of claim 6, further comprising an information saving module for saving or querying the monitoring data or the alarm information.
8. The monitoring system according to any one of claims 6 or 7, wherein the display module comprises: a login interface, a service management interface, a monitoring management interface and an alarm management interface.
9. The monitoring system according to any one of claims 6 or 7, wherein the monitoring system is compressed into a deployment package.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the monitoring method of any one of claims 1 to 5 via execution of the executable instructions.
CN202010989698.XA 2020-09-18 2020-09-18 System service monitoring method, monitoring system and electronic equipment Pending CN112328443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010989698.XA CN112328443A (en) 2020-09-18 2020-09-18 System service monitoring method, monitoring system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010989698.XA CN112328443A (en) 2020-09-18 2020-09-18 System service monitoring method, monitoring system and electronic equipment

Publications (1)

Publication Number Publication Date
CN112328443A true CN112328443A (en) 2021-02-05

Family

ID=74303795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010989698.XA Pending CN112328443A (en) 2020-09-18 2020-09-18 System service monitoring method, monitoring system and electronic equipment

Country Status (1)

Country Link
CN (1) CN112328443A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605056A (en) * 2009-06-16 2009-12-16 中兴通讯股份有限公司 A kind of J2EE server monitoring device and adopt the method for supervising of this device
CN108964987A (en) * 2018-06-15 2018-12-07 平安科技(深圳)有限公司 Data monitoring method, device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605056A (en) * 2009-06-16 2009-12-16 中兴通讯股份有限公司 A kind of J2EE server monitoring device and adopt the method for supervising of this device
CN108964987A (en) * 2018-06-15 2018-12-07 平安科技(深圳)有限公司 Data monitoring method, device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张岩;刘绚;: "异构系统整合过程中监控管理系统的设计与实现", 齐齐哈尔大学学报(自然科学版), no. 05, pages 1 - 4 *
朱琦等: "《分布式应用系统运维理论与实践》", 北京:中国环境科学出版社, pages: 134 *

Similar Documents

Publication Publication Date Title
CN101605056B (en) J2EE server monitoring device and monitoring method employing same
JP3578254B2 (en) How to perform system administration tasks
WO2016184175A1 (en) Database processing method and apparatus
EP1308844A2 (en) System and method for monitoring an application on a server
EP3128416B1 (en) Sdn application integration, management and control method, system and device
US8849947B1 (en) IT discovery of virtualized environments by scanning VM files and images
US8224945B2 (en) Memory management system and method for open platform
US7974990B2 (en) Managing program applications
US7661030B2 (en) Propagating debug information in a web services environment
CN111258627A (en) Interface document generation method and device
EP3616061B1 (en) Hyper dynamic java management extension
JP2002196932A (en) Extensible providing mechanism for service gateway
CN113419818A (en) Basic component deployment method, device, server and storage medium
CN108965403A (en) O&M monitors establishment of connection method and terminal device
CN114726789A (en) Method, device, equipment and medium for traffic management and traffic management policy configuration
CN112688915A (en) Cross-protocol communication method, device and server
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
US20070198680A1 (en) Method and system for network management data collection
CN116700779A (en) Code dynamic adjustment method, device, equipment, medium and program product
US20230118838A1 (en) Advanced agent instrumentation for opentelemetry implementations
CN112328443A (en) System service monitoring method, monitoring system and electronic equipment
US20170031667A1 (en) Managing application lifecycles within a federation of distributed software applications
KR101235199B1 (en) An interface construction system and method to control low­erformance equipment using web technology
CN112579447A (en) Browser testing method and device
KR20090000498A (en) The service provisioning scheme and system at the software vending machine utilizing the virtualization appliance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100190 17-19 / F, building a 1, 66 Zhongguancun East Road, Haidian District, Beijing

Applicant after: New Great Wall Technology Co.,Ltd.

Address before: 100190 17-19 / F, building a 1, 66 Zhongguancun East Road, Haidian District, Beijing

Applicant before: GREAT WALL COMPUTER SOFTWARE & SYSTEMS Inc.

CB02 Change of applicant information