CN109800124B - CPU utilization monitoring method and device, electronic equipment and storage medium - Google Patents

CPU utilization monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109800124B
CN109800124B CN201811537788.4A CN201811537788A CN109800124B CN 109800124 B CN109800124 B CN 109800124B CN 201811537788 A CN201811537788 A CN 201811537788A CN 109800124 B CN109800124 B CN 109800124B
Authority
CN
China
Prior art keywords
utilization rate
cpu
cpu utilization
unit
electronic device
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.)
Active
Application number
CN201811537788.4A
Other languages
Chinese (zh)
Other versions
CN109800124A (en
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811537788.4A priority Critical patent/CN109800124B/en
Publication of CN109800124A publication Critical patent/CN109800124A/en
Application granted granted Critical
Publication of CN109800124B publication Critical patent/CN109800124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for monitoring CPU utilization rate, electronic equipment and a storage medium. The CPU utilization monitoring method comprises the following steps: receiving a CPU utilization rate monitoring instruction; calling a RocktMQ tool according to the monitoring instruction to acquire a CPU state; when the CPU state is available, a PS command is adopted, and the specified keywords are combined, so that the PID of the RocktMQ process is obtained from all running processes; calling out the current CPU utilization rate by utilizing a TOP command according to the PID; and saving and displaying the current CPU utilization rate. The invention is convenient for operation and maintenance in time when abnormity occurs, thereby effectively avoiding the condition of slow response and improving the operation and maintenance efficiency.

Description

CPU utilization monitoring method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of operation and maintenance technologies, and in particular, to a method and an apparatus for monitoring CPU utilization, an electronic device, and a storage medium.
Background
In the prior art, a standard Spring Boot product in the market generally does not monitor the CPU utilization of a rockmq, and in the conventional host level, the CPU monitoring includes statistics of all processes of an operating system, so that it is impossible to distinguish whether a java process or other operating system processes are applied, and thus, if the CPU utilization is excessively high, misjudgment may be generated.
The index is used as a core index concerned by application operation and maintenance, and if the index is higher, the application system may have a condition of slow processing response, which may cause a certain influence on the use of the user.
Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus, an electronic device and a storage medium for monitoring CPU utilization, which facilitate timely maintenance when an abnormality occurs, thereby effectively avoiding a slow response and improving operation and maintenance efficiency.
A method of monitoring CPU usage, the method comprising:
receiving a CPU utilization rate monitoring instruction;
calling a RocktMQ tool according to the monitoring instruction to acquire a CPU state;
when the CPU state is available, a PS command is adopted, and the specified keywords are combined, so that the PID of the RocktMQ process is obtained from all running processes;
calling out the current CPU utilization rate by utilizing a TOP command according to the PID;
and saving and displaying the current CPU utilization rate.
According to the preferred embodiment of the present invention, the acquiring PID of the RocketMQ process from all running processes by using PS commands and combining with the specified keywords includes:
calling all process information of the RocktMQ from all running processes by adopting a PS command;
and acquiring the PID of the RocktMQ process from all process information by combining the specified keywords NamesrvStartup and BrokerStartup.
According to the preferred embodiment of the present invention, said calling up the current CPU utilization with the TOP command according to the PID comprises:
according to the PID, utilizing a TOP command to call resource information of the RockettMQ process from all running processes;
and acquiring the current CPU utilization rate from the resource information according to the configuration instruction.
According to a preferred embodiment of the present invention, the displaying the current CPU utilization comprises:
and displaying the current CPU utilization rate through a Grafana display platform.
According to a preferred embodiment of the invention, the method further comprises:
and when the current CPU utilization rate is greater than or equal to a first configuration value, giving an alarm.
According to a preferred embodiment of the invention, the method further comprises:
acquiring the initial CPU utilization rate of the last configuration period;
calculating a first difference value between the current CPU utilization rate and the initial CPU utilization rate;
calculating the ratio of the first difference value to the initial CPU utilization rate;
and when the ratio is greater than or equal to the second configuration value, giving an alarm.
According to a preferred embodiment of the invention, the method further comprises:
carrying out pressure test on the electronic equipment to obtain the simulation utilization rate of the CPU;
calculating a second difference value between the current CPU utilization rate and the CPU simulation utilization rate;
and when the absolute value of the second difference is larger than a preset threshold value, giving an alarm.
A CPU usage monitoring apparatus, the apparatus comprising:
the receiving unit is used for receiving a CPU utilization rate monitoring instruction;
the obtaining unit is used for calling a RocketMQ tool to obtain the state of the CPU according to the monitoring instruction;
the acquiring unit is further configured to acquire PIDs of the rockmq processes from all running processes by using a PS command in combination with a specified keyword when the CPU state is an available state;
the calling unit is used for calling out the current CPU utilization rate by utilizing a TOP command according to the PID;
and the display unit is used for storing and displaying the current CPU utilization rate.
According to the preferred embodiment of the present invention, the acquiring unit acquires PIDs of the rockmq process from all running processes by using a PS command in combination with a specified keyword, including:
calling all process information of the RocketMQ from all running processes by adopting a PS command;
and acquiring the PID of the RockketMQ process from all the process information by combining the specified keywords NamesvStartup and BrokerStartup.
According to a preferred embodiment of the present invention, the invoking unit is specifically configured to:
according to the PID, utilizing a TOP command to call resource information of the RockettMQ process from all running processes;
and acquiring the current CPU utilization rate from the resource information according to the configuration instruction.
According to a preferred embodiment of the present invention, the displaying of the current CPU utilization by the display unit comprises:
and displaying the current CPU utilization rate through a Grafana display platform.
According to a preferred embodiment of the invention, the apparatus further comprises:
and the sending unit is used for sending an alarm when the current CPU utilization rate is greater than or equal to a first configuration value.
According to the preferred embodiment of the present invention, the obtaining unit is further configured to obtain an initial CPU utilization rate of a previous configuration cycle;
the device further comprises:
the calculating unit is used for calculating a first difference value between the current CPU utilization rate and the initial CPU utilization rate;
the calculating unit is further configured to calculate a ratio of the first difference to the initial CPU utilization;
the sending unit is further used for sending an alarm when the ratio is larger than or equal to a second configuration value.
According to a preferred embodiment of the invention, the apparatus further comprises:
the testing unit is used for carrying out pressure testing on the electronic equipment to obtain the simulation utilization rate of the CPU;
the calculating unit is further configured to calculate a second difference between the current CPU utilization rate and the CPU simulation utilization rate;
the sending unit is further configured to send an alarm when the absolute value of the second difference is greater than a preset threshold.
An electronic device, the electronic device comprising:
a memory storing at least one instruction; and
and the processor executes the instructions stored in the memory to realize the CPU utilization monitoring method.
A computer-readable storage medium having at least one instruction stored therein, the at least one instruction being executable by a processor in an electronic device to implement the CPU usage monitoring method.
According to the technical scheme, after a CPU utilization monitoring instruction is received, a RocktMQ tool is called according to the monitoring instruction to obtain the CPU state, when the CPU state is in an available state, a PS (packet switched) command is adopted, and the PID of the RocktMQ process is obtained from all running processes by combining with a specified keyword so as to avoid redundant operation, increase the workload and avoid misjudgment, the current CPU utilization is called by a TOP (Top command) according to the PID, and the current CPU utilization is stored and displayed so as to be provided for relevant working personnel, so that the maintenance can be carried out in time when the abnormity occurs, the condition of slow response is effectively avoided, and the operation and maintenance efficiency is improved.
Drawings
FIG. 1 is a flow chart of a CPU usage monitoring method according to a preferred embodiment of the present invention.
FIG. 2 is a functional block diagram of a CPU usage monitoring apparatus according to a preferred embodiment of the present invention.
FIG. 3 is a schematic structural diagram of an electronic device implementing a method for monitoring CPU utilization according to a preferred embodiment of the present invention.
Description of the main elements
Electronic device 1
Memory device 12
Processor with a memory having a plurality of memory cells 13
CPU utilization rate monitoring device 11
Receiving unit 110
Acquisition unit 112
Retrieval unit 113
Display unit 114
Sending unit 115
Computing unit 116
Test unit 117
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart of a CPU usage monitoring method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The CPU utilization monitoring method is applied to one or more electronic devices, where the electronic devices are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and hardware of the electronic devices includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any electronic product capable of performing human-computer interaction with a user, for example, a personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive web Television (IPTV), an intelligent wearable device, and the like.
The electronic device may also include a network device and/or a user device. The network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network servers.
The Network where the electronic device is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
And S10, receiving a CPU utilization rate monitoring instruction.
The electronic equipment receives a CPU utilization monitoring instruction.
In at least one embodiment of the present invention, the standard Spring Boot product in the market generally does not monitor the CPU (Central Processing Unit) utilization of the rockmq, and at the level of the conventional host, the CPU monitoring includes statistics of all processes of the operating system, so that it is impossible to distinguish whether the CPU utilization of the java process is too high or that of other processes of the operating system is too high, and thus, when the CPU utilization is excessively high, erroneous judgment may be generated.
In addition, the CPU utilization rate is used as a core index concerned by application operation and maintenance, and if the CPU utilization rate is too high, the application system may have a slow processing response, which may cause a certain influence on the use of the user.
Therefore, according to the technical scheme, the electronic equipment can monitor the utilization rate of the CPU, effectively avoids misjudgment and processes the condition of slow response, and further improves the operation and maintenance efficiency.
In at least one embodiment of the invention, the client comprises a RocketMQ client, which is a message middleware of a queue model, namely: a stand-alone system software or service, located on the operating system of a client or server, manages computer resources and network communications, can connect two stand-alone applications or stand-alone systems, and can implement messaging system functions.
Specifically, the CPU utilization refers to a CPU resource occupied by running programs, and therefore, the higher the CPU utilization is, the more programs that run simultaneously are indicated, and the less programs are indicated. The CPU utilization rate has a direct relation with the CPU performance.
In at least one embodiment of the invention, the receiving, by the electronic device, the CPU usage monitoring instruction includes one or more of the following:
(1) And the electronic equipment receives the CPU utilization rate monitoring instruction triggered by the user.
Specifically, the user may trigger the CPU utilization monitoring instruction by clicking a trigger button, where the trigger button may be a virtual button or an entity button.
The user may also input a corresponding voice instruction as the CPU utilization monitoring instruction, which is not limited in the present invention.
Alternatively, the user may also input fingerprint information to trigger the CPU usage monitoring instruction, and the like.
(2) And the electronic equipment receives a signal which triggers the CPU utilization monitoring instruction by the electronic equipment at preset time intervals.
Specifically, the preset time interval may be configured by the electronic device, or may be configured by the user in a self-defined manner, which is not limited in the present invention.
For example: the preset time interval may be every 1 minute, etc.
(3) And the electronic equipment receives a signal which is configured by the electronic equipment and triggers the CPU utilization monitoring instruction at preset time.
Specifically, the preset time may be configured by the electronic device, or may be configured by the user in a user-defined manner, which is not limited in the present invention.
For example: the preset time may be 12 months, 1 day, 10 am, etc.
(4) And the electronic equipment receives the CPU utilization monitoring instruction triggered by the electronic equipment in a configuration state.
Specifically, the configuration state includes, but is not limited to, a state that the electronic device is running stuck, and the like, so that the electronic device automatically determines a reason for running stuck.
And S11, calling a RockettMQ tool to acquire the state of the CPU according to the monitoring instruction.
And the electronic equipment calls a RocketMQ tool to acquire the state of the CPU according to the monitoring instruction.
In at least one embodiment of the present invention, the CPU state includes an available state and an unavailable state.
Specifically, the available state refers to that the electronic device is in a running state;
the unavailable state refers to that the electronic equipment is in a dead halt state or a shutdown state and the like.
It is understood that the electronic device needs to respond to the CPU usage monitoring instruction only when the CPU state is the available state.
Specifically, the electronic device may detect the CPU state of the rocktmmq using a script rocktmq.
For example: and inputting a related script of the rocktmq.sh by the electronic equipment, and according to the writing mode of the script, when the output is 'rocktmq is not running', indicating that the CPU state is unavailable, otherwise, indicating that the CPU state is available.
And S12, when the CPU state is in an available state, acquiring PID (Process Identification) of the RocketMQ Process from all running processes by adopting a PS command and combining with a specified keyword.
And when the CPU state is an available state, the electronic equipment acquires the PID of the RocktMQ process from all running processes by adopting a PS command and combining with a specified keyword.
In at least one embodiment of the invention, a PS (Process Status) command in Linux is used to display all processes currently running in the system, so that the electronic device queries all processes.
In at least one embodiment of the invention, the specified keywords include NamervStartup and BrokerStartup, the NamervStartup and BrokerStartup are used for the RocktMQ middleware and are class names in the running script of the RocktMQ middleware, so that the PID of the RocktMQ process can be acquired by calling the PS command through the specified keywords NamervStartup and BrokerStartup.
Specifically, the electronic device acquires PIDs of the RocketMQ process from all running processes by using a PS command in combination with a specified keyword, including:
the electronic equipment calls all process information of the RocktMQ from all running processes by adopting a PS command, and acquires the PID of the RocktMQ process from all the process information by combining the specified keywords NamesrvStartup and BrokerStartup.
For example: the electronic device employs a command: PID = ' ps-fC java | grep "$ INSTANCES" | egr "NamesrvStartup | BrokerStartup" | awk ' { print $2} ', a running result can be obtained: [ root @ SZC-L0075300 RocketMQ ] # ps-fC java | grep "rmq _ lcoud-config-prd-ins 5201" | egr "NamessrvStartup | BrokerStartup" | awk '{ print $2}'16056, so the electronic device can determine the PID of the RocketMQ process to be 16056.
And S13, calling out the current CPU utilization rate by utilizing a TOP command according to the PID.
And the electronic equipment calls out the current CPU utilization rate by utilizing a TOP command according to the PID.
In at least one embodiment of the invention, the TOP command can dynamically view the overall operation condition of the system in real time and is used for displaying the process information of the operation of the system, and the electronic equipment displays the process information in real-time text information.
Specifically, the electronic device invoking the current CPU utilization with a TOP command according to the PID comprises:
and the electronic equipment calls the resource information of the RockettMQ process from all running processes by utilizing a TOP command according to the PID, and the electronic equipment obtains the current CPU utilization rate from the resource information according to a configuration instruction.
Further, the resource information includes, but is not limited to, a CPU usage rate, a memory occupancy rate, and the like of the RocketMQ process.
The configuration instructions correspond to the CPU utilization, such as: the configuration instruction may include rockmqcpu to acquire the current CPU utilization from the resource information.
For example: the electronic device adopts a TOP command, and forms a command rockMqCpu = ' TOP-b-n 1-p $ res 2> &1 awk-v PID = $ PID ' { if ($ 1= = PID) print $9} ', by combining a corresponding PID 16056 and the configuration command rockMqCpu, and the electronic device further calls the current CPU usage rate from the resource information of the rockMQ process.
And S14, storing and displaying the current CPU utilization rate.
And the electronic equipment stores and displays the current CPU utilization rate.
In at least one embodiment of the present invention, after the electronic device calls the current CPU utilization rate, the current CPU utilization rate is stored in a configuration database, so as to facilitate the call.
Specifically, the configuration database may be a local database of the electronic device, or an external database in communication with the electronic device, or the like.
Further, after the electronic device stores the current CPU utilization rate in the configuration database, the electronic device may retrieve the current CPU utilization rate from the configuration database and display the current CPU utilization rate to the user, so that the user can directly view the current CPU utilization rate.
Specifically, the displaying, by the electronic device, the current CPU utilization includes:
and the electronic equipment displays the current CPU utilization rate through a Grafana display platform.
Specifically, the Grafana display platform is a visualization panel (Dashboard), supports various diagrams and layout displays, and supports Graphite, zabbix, influxDB, prometheus and OpenTSDB as data sources. The Grafana display platform has the following characteristics: the method has flexible and rich graphical options, can mix various styles, supports day and night modes and simultaneously supports a plurality of data sources.
At this time, the configuration database may be a non-relational database of the Grafana display platform, so as to avoid occupying an operating memory of the electronic device.
Of course, in other embodiments, the electronic device may also show the current CPU utilization through Highcharts, which is not limited in the present invention.
The Highcharts is a diagram library written in pure JavaScript language, can be added with interactive diagrams on a web site or a web application program simply and conveniently, and supports various diagrams of a monitoring platform.
Preferably, the method further comprises:
and when the current CPU utilization rate is greater than or equal to a first configuration value, the electronic equipment sends out an alarm.
Specifically, the first configuration value is a preset threshold, and the first configuration value may be configured by the electronic device or configured by the user according to actual requirements, which is not limited in the present invention. For example, the first configuration value may be 80% or the like, that is, the electronic device will issue an alarm when the current CPU usage is greater than or equal to 80%.
Further, the electronic device may send an alarm sound and send an alarm mail and/or an alarm message to the relevant staff, and the electronic device may further display alarm information and the like on a display of the electronic device.
Specifically, the relevant staff may include, but is not limited to, one or a combination of more of the following:
operation and maintenance personnel, developers, testers, project managers and the like.
Through the embodiment, when the current CPU utilization rate is too high, the electronic equipment can prompt the relevant workers in time, so that the relevant workers can respond in time, and the influence on the operation of the electronic equipment is avoided.
Preferably, the method further comprises:
the electronic equipment obtains the initial CPU utilization rate of the last configuration period, calculates a first difference value between the current CPU utilization rate and the initial CPU utilization rate, calculates a ratio of the first difference value to the initial CPU utilization rate, and gives an alarm when the ratio is larger than or equal to a second configuration value.
For example: the current CPU utilization rate is 50% for the sampled data of 10 am on the current monday, after the electronic device obtains 40% of the initial CPU utilization rate of 10 am on the last monday, a first difference between the current CPU utilization rate of 50% and the initial CPU utilization rate of 40% is calculated to be 10%, and the electronic device further calculates that a ratio of the first difference between 10% and the initial CPU utilization rate of 40% is 25% and is greater than the second configuration value of 20%, and then the electronic device sends an alarm.
Specifically, the second configuration value is a preset threshold, and the second configuration value may be configured by the electronic device or by the user according to actual requirements, which is not limited in the present invention.
Through the implementation mode, the electronic equipment can realize baseline alarm so as to ensure normal operation of the electronic equipment.
Preferably, the method further comprises:
the electronic equipment carries out pressure test on the electronic equipment to obtain the CPU simulation utilization rate, calculates a second difference value between the current CPU utilization rate and the CPU simulation utilization rate, and gives an alarm when the absolute value of the second difference value is larger than a preset threshold value.
Specifically, the pressure test is to simulate an actual use scenario of the electronic device to realize a simulation test of an actual operation index of the electronic device.
In this embodiment, the electronic device simulates a CPU running scene to obtain the CPU simulated utilization rate, compares the CPU simulated utilization rate with the current CPU utilization rate (i.e., the current actual utilization rate) to calculate the second difference, and compares the absolute value of the second difference with the preset threshold to analyze whether the CPU runs abnormally.
Specifically, the preset threshold value is used as a reference for comparison, and may assist in determining the operating condition of the CPU, for example: the preset threshold may be 5%, etc.
Then, when the absolute value of the second difference is less than or equal to 5%, the electronic device operates normally.
And when the absolute value of the second difference is greater than 5%, the electronic device issues an alarm, such as: the electronic equipment can whistle and remind or pop up a prompt box on the Grafana display platform to remind appointed personnel to process in time.
In summary, the present invention can receive a CPU utilization monitoring instruction; calling a RocktMQ tool according to the monitoring instruction to acquire a CPU state; when the CPU state is available, a PS command is adopted, and a specified keyword is combined, so that the PID of the RocketMQ process is obtained from all running processes; calling out the current CPU utilization rate by utilizing a TOP command according to the PID; and saving and displaying the current CPU utilization rate. Therefore, the invention is convenient for timely maintenance when abnormity occurs, thereby effectively avoiding the condition of slow response and improving the operation and maintenance efficiency.
FIG. 2 is a functional block diagram of the CPU usage monitoring apparatus according to the preferred embodiment of the present invention. The CPU utilization monitoring apparatus 11 includes a receiving unit 110, an obtaining unit 112, a retrieving unit 113, a displaying unit 114, an issuing unit 115, a calculating unit 116, and a testing unit 117. The module/unit referred to in the present invention refers to a series of computer program segments that can be executed by the processor 13 and that can perform a fixed function, and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
The receiving unit 110 receives a CPU usage monitoring instruction.
In at least one embodiment of the present invention, the CPU utilization of the rockmq is not monitored by the standard Spring Boot product in the market, and at the level of the conventional host, the CPU monitoring includes statistics of all processes of the operating system, so that it is impossible to distinguish whether the CPU utilization of the java process is too high or the CPU utilization of other processes of the operating system is too high, and thus, when the CPU utilization is excessively high, erroneous judgment may be generated.
In addition, the CPU utilization rate is used as a core index concerned by application operation and maintenance, and if the CPU utilization rate is too high, the application system may have a slow processing response, which may cause a certain influence on the use of the user.
Therefore, according to the technical scheme, the electronic equipment can monitor the utilization rate of the CPU, effectively avoids misjudgment and processes the condition of slow response, and further improves the operation and maintenance efficiency.
In at least one embodiment of the invention, the client comprises a rockmq client, which is a message middleware of a queue model, namely: an independent system software or service program, located on the operating system of the client or server, manages computer resources and network communications, can connect two independent applications or independent systems, and can implement messaging system functions.
Specifically, the CPU utilization refers to a CPU resource occupied by running programs, and therefore, the higher the CPU utilization is, the more programs that run simultaneously are indicated, and the less programs are indicated. The CPU utilization rate has a direct relation with the CPU performance.
In at least one embodiment of the present invention, the receiving unit 110 receives the CPU utilization monitoring instruction, which includes one or more of the following:
(1) The receiving unit 110 receives the CPU utilization monitoring instruction triggered by a user.
Specifically, the user may trigger the CPU utilization monitoring instruction by clicking a trigger key, where the trigger key may be a virtual key or an entity key.
The user may also input a corresponding voice instruction as the CPU utilization monitoring instruction, which is not limited in the present invention.
Alternatively, the user may also input fingerprint information to trigger the CPU usage monitoring instruction, and the like.
(2) The receiving unit 110 receives a signal that the electronic device triggers the CPU utilization monitoring instruction every preset time interval.
Specifically, the preset time interval may be configured by the electronic device, or may be configured by the user in a self-defined manner, which is not limited in the present invention.
For example: the preset time interval may be every 1 minute, etc.
(3) The receiving unit 110 receives a signal configured by the electronic device and triggering the CPU utilization monitoring instruction at a preset time.
Specifically, the preset time may be configured by the electronic device, or may be configured by the user in a customized manner, which is not limited in the present invention.
For example: the preset time may be 12 months, 1 day, 10 am, etc.
(4) The receiving unit 110 receives the CPU utilization monitoring instruction triggered by the electronic device in the configuration state.
Specifically, the configuration state includes, but is not limited to, a state that the electronic device is running stuck, and the like, so that the electronic device automatically determines a reason for running stuck.
The obtaining unit 112 calls a RocketMQ tool to obtain the CPU state according to the monitoring instruction.
In at least one embodiment of the present invention, the CPU state includes an available state and an unavailable state.
Specifically, the available state refers to that the electronic device is in a running state;
the unavailable state refers to that the electronic equipment is in a dead halt state or a shutdown state and the like.
It is to be understood that the electronic device needs to respond to the CPU usage monitoring instruction only when the CPU state is an available state.
Specifically, the obtaining unit 112 may detect the CPU state of the rocktmmq by using a script rocktmq.
For example: and inputting a related script of the rocktmq.sh by the electronic equipment, and according to the writing mode of the script, when the output is 'rocktmq is not running', indicating that the CPU state is unavailable, otherwise, indicating that the CPU state is available.
When the CPU state is an available state, the obtaining unit 112 obtains the PIDs of the rockmq process from all running processes by using a PS command in combination with a specified keyword.
In at least one embodiment of the invention, a PS (Process Status) command in Linux is used to display all processes currently running in the system, so that the electronic device queries all processes.
In at least one embodiment of the invention, the specified keywords include NamesvStartup and BrokerStartup, which are used for the RockMQ middleware and are class names in the runtime script of the RockMQ middleware, so that the PID of the RockMQ process can be acquired by calling the PS command through the specified keywords NamesvStartup and BrokerStartup.
Specifically, the acquiring unit 112 acquires PIDs of the RocketMQ process from all running processes by using a PS command and combining a specified keyword, including:
the obtaining unit 112 uses a PS command to retrieve all process information of the rockmq from all running processes, and the obtaining unit 112 obtains the PID of the rockmq process from all the process information in combination with the specified keywords NamesrvStartup and BrokerStartup.
For example: the acquisition unit 112 employs the command: PID = ' ps-fC java | grep "$ INSTANCES" | egr "NamesrvStartup | BrokerStartup" | awk ' { print $2} ', a running result can be obtained: [ root @ SZC-L0075300 RocketMQ ] # ps-fC java | grep "rmq _ lcoud-config-prd-ins 5201" | egr "NamessrvStartup | BrokerStartup" | awk '{ print $2}'16056, and thus, the fetch unit 112 may determine the PID of the RocktMQ process to be 16056.
The calling unit 113 calls out the current CPU usage rate using the TOP command according to the PID.
In at least one embodiment of the invention, the TOP command can dynamically view the overall operation condition of the system in real time and is used for displaying the process information of the operation of the system, and the electronic equipment displays the process information in real-time text information.
Specifically, the calling unit 113 calling out the current CPU utilization using the TOP command according to the PID includes:
the invoking unit 113 invokes the resource information of the rockmq process from all running processes by using a TOP command according to the PID, and the invoking unit 113 acquires the current CPU utilization rate from the resource information according to a configuration instruction.
Further, the resource information includes, but is not limited to, CPU utilization, memory occupancy, etc. of the rockmq process.
The configuration instructions correspond to the CPU utilization, such as: the configuration instruction may include rockmqcpu to acquire the current CPU utilization from the resource information.
For example: the invoking unit 113 uses a TOP command, and combines with the corresponding PID 16056 and the configuration instruction rockmqcpu to form a command rockmqcpu = ' TOP-b-n 1-p $ res 2> &1 awk-v PID = $ PID ' { if ($ 1= = PID) print $9} ', and the invoking unit 113 further invokes the current CPU usage from the resource information of the rockmq process.
Presentation unit 114 saves and presents the current CPU utilization.
In at least one embodiment of the present invention, after the retrieving unit 113 retrieves the current CPU utilization, the displaying unit 114 stores the current CPU utilization in a configuration database, so as to facilitate retrieval.
Specifically, the configuration database may be a local database of the electronic device, or an external database in communication with the electronic device, or the like.
Further, after the display unit 114 stores the current CPU utilization rate in the configuration database, the retrieving unit 113 may retrieve the current CPU utilization rate from the configuration database and display the current CPU utilization rate to the user, so that the user can directly view the current CPU utilization rate.
Specifically, the displaying unit 114 displays the current CPU utilization by:
the presentation unit 114 presents the current CPU utilization via the Grafana presentation platform.
Specifically, the Grafana display platform is a visualization panel (Dashboard), supports various diagrams and layout displays, and supports Graphite, zabbix, influxDB, prometheus and OpenTSDB as data sources. The Grafana display platform has the following characteristics: the method has flexible and rich graphical options, can mix various styles, supports day and night modes and simultaneously supports a plurality of data sources.
At this time, the configuration database may be a non-relational database of the Grafana display platform, so as to avoid occupying an operating memory of the electronic device.
Of course, in other embodiments, the presentation unit 114 may also present the current CPU utilization through Highcharts, which is not limited in the present invention.
Highcharts is a diagram library written in pure JavaScript language, can be added with interactive diagrams on a web site or a web application program simply and conveniently, and supports various diagrams of a monitoring platform.
Preferably, the method further comprises:
when the current CPU usage is greater than or equal to a first configuration value, the issuing unit 115 issues an alarm.
Specifically, the first configuration value is a preset threshold, and the first configuration value may be configured by the electronic device or configured by the user according to actual requirements, which is not limited in the present invention. For example, the first configuration value may be 80% or the like, that is, the issuing unit 115 issues an alarm when the current CPU usage is greater than or equal to 80%.
Further, the sending unit 115 may send an alarm prompt tone and send an alarm mail and/or an alarm message to the relevant staff, and the sending unit 115 may further display an alarm message and the like on a display of the electronic device.
Specifically, the relevant staff may include, but are not limited to, one or a combination of more of the following:
operation and maintenance personnel, developers, testers, project managers and the like.
Through the above embodiment, when the current CPU utilization is too high, the sending unit 115 may prompt the relevant staff in time, so that the relevant staff can respond in time, and influence on the operation of the electronic device is avoided.
Preferably, the method further comprises:
the obtaining unit 112 obtains an initial CPU utilization of a previous configuration cycle, the calculating unit 116 calculates a first difference between the current CPU utilization and the initial CPU utilization, the calculating unit 116 calculates a ratio of the first difference to the initial CPU utilization, and the sending unit 115 sends an alarm when the ratio is greater than or equal to a second configuration value.
For example: when the current CPU usage rate is 50% for the sampled data of 10 am on the current monday, and the obtaining unit 112 obtains an initial CPU usage rate of 40% for 10 am on the last monday, the calculating unit 116 calculates a first difference between the current CPU usage rate of 50% and the initial CPU usage rate of 40% to be 10%, and the calculating unit 116 further calculates a ratio between the first difference of 10% and the initial CPU usage rate of 40% to be 25% and to be greater than the second configuration value of 20%, then the sending unit 115 sends an alarm.
Specifically, the second configuration value is a preset threshold, and the second configuration value may be configured by the electronic device or configured by the user according to actual requirements, which is not limited in the present invention.
Through the implementation mode, the electronic equipment can realize baseline alarm so as to ensure normal operation of the electronic equipment.
Preferably, the method further comprises:
the testing unit 117 performs a stress test on the electronic device to obtain a CPU simulated utilization rate, the calculating unit 116 calculates a second difference between the current CPU utilization rate and the CPU simulated utilization rate, and the sending unit 115 sends an alarm when an absolute value of the second difference is greater than a preset threshold.
Specifically, the pressure test is to simulate an actual use scenario of the electronic device to realize a simulation test of an actual operation index of the electronic device.
In this embodiment, the test unit 117 simulates a CPU running scenario to obtain the CPU simulated utilization rate, the calculation unit 116 compares the CPU simulated utilization rate with the current CPU utilization rate (i.e., the current actual utilization rate) to calculate the second difference, and then compares the absolute value of the second difference with the preset threshold to analyze whether the CPU running is abnormal.
Specifically, the preset threshold value is used as a reference for comparison, and may assist in determining the operating condition of the CPU, for example: the preset threshold may be 5%, etc.
Then, when the absolute value of the second difference is less than or equal to 5%, the electronic device operates normally.
And when the absolute value of the second difference is greater than 5%, the issuing unit 115 issues an alarm, such as: the sending unit 115 may whistle to remind or pop up a prompt box on the Grafana display platform to remind the designated person to handle in time.
In summary, the present invention can receive a CPU utilization monitoring instruction; calling a RocktMQ tool according to the monitoring instruction to acquire a CPU state; when the CPU state is available, a PS command is adopted, and the specified keywords are combined, so that the PID of the RocktMQ process is obtained from all running processes; calling out the current CPU utilization rate by utilizing a TOP command according to the PID; and saving and displaying the current CPU utilization rate. Therefore, the invention is convenient for timely maintenance when abnormity occurs, thereby effectively avoiding the condition of slow response and improving the operation and maintenance efficiency.
Fig. 3 is a schematic structural diagram of an electronic device implementing the CPU utilization monitoring method according to a preferred embodiment of the present invention.
The electronic device 1 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device 1 may also be, but not limited to, any electronic product that can perform human-computer interaction with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive web Television (IPTV), an intelligent wearable device, and the like.
The electronic device 1 may also be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices.
The Network where the electronic device 1 is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and a computer program, such as a CPU usage monitoring program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the electronic device 1, and does not constitute a limitation of the electronic device 1, and may include more or less components than those shown, or combine some components, or different components, for example, the electronic device 1 may further include an input-output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The processor 13 is an operation core and a control center of the electronic device 1, and is connected to each part of the whole electronic device 1 by various interfaces and lines, and executes an operating system of the electronic device 1 and various installed application programs, program codes, and the like.
The processor 13 executes an operating system of the electronic device 1 and various installed application programs. The processor 13 executes the application program to implement the steps in the various CPU utilization monitoring method embodiments described above, such as steps S10, S11, S12, S13, S14 shown in fig. 1.
Alternatively, the processor 13, when executing the computer program, implements the functions of the modules/units in the above device embodiments, for example: receiving a CPU utilization rate monitoring instruction; calling a RocketMQ tool to obtain the state of the CPU according to the monitoring instruction; when the CPU state is available, a PS command is adopted, and a specified keyword is combined, so that the PID of the RocketMQ process is obtained from all running processes; calling out the current CPU utilization rate by utilizing a TOP command according to the PID; and saving and displaying the current CPU utilization rate.
Illustratively, the computer program may be divided into one or more modules/units, which are stored in the memory 12 and executed by the processor 13 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which are used for describing the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into a receiving unit 110, an obtaining unit 112, a calling unit 113, a presentation unit 114, an issuing unit 115, a calculating unit 116 and a testing unit 117.
The memory 12 can be used for storing the computer programs and/or modules, and the processor 13 implements various functions of the electronic device 1 by running or executing the computer programs and/or modules stored in the memory 12 and calling data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. In addition, the memory 12 may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the Memory 12 may be a circuit having a Memory function without any physical form In the integrated circuit, such as a RAM (Random-Access Memory), a FIFO (First In First Out), and the like. Alternatively, the memory 12 may be a memory in a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments described above may be implemented.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
With reference to fig. 1, the memory 12 of the electronic device 1 stores a plurality of instructions to implement a CPU utilization monitoring method, and the processor 13 can execute the plurality of instructions to implement: receiving a CPU utilization rate monitoring instruction; calling a RocktMQ tool according to the monitoring instruction to acquire a CPU state; when the CPU state is available, a PS command is adopted, and the specified keywords are combined, so that the PID of the RocktMQ process is obtained from all running processes; calling out the current CPU utilization rate by utilizing a TOP command according to the PID; and storing and displaying the current CPU utilization rate.
According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:
calling all process information of the RocktMQ from all running processes by adopting a PS command;
and acquiring the PID of the RocktMQ process from all process information by combining the specified keywords NamesrvStartup and BrokerStartup.
According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:
according to the PID, utilizing a TOP command to call resource information of the RockettMQ process from all running processes;
and acquiring the current CPU utilization rate from the resource information according to the configuration instruction.
According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:
and displaying the current CPU utilization rate through a Grafana display platform.
According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:
and when the current CPU utilization rate is greater than or equal to a first configuration value, an alarm is given.
According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:
acquiring the initial CPU utilization rate of the last configuration period;
calculating a first difference value between the current CPU utilization rate and the initial CPU utilization rate;
calculating the ratio of the first difference value to the initial CPU utilization rate;
and when the ratio is greater than or equal to the second configuration value, an alarm is given.
According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:
performing pressure test on the electronic equipment to obtain the simulation utilization rate of the CPU;
calculating a second difference value between the current CPU utilization rate and the CPU simulation utilization rate;
and when the absolute value of the second difference is larger than a preset threshold value, giving an alarm.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the instruction, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it will be obvious that the term "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (8)

1. A method for monitoring CPU usage, the method comprising:
receiving a CPU utilization rate monitoring instruction;
detecting the CPU state of the RockettMQ by utilizing a script rocktmq.sh according to the monitoring instruction;
when the CPU state is available, adopting a PS command, calling all process information of the RocktMQ from all running processes, and acquiring a process identifier PID of the RocktMQ process from all process information by combining a specified keyword;
according to the PID, utilizing a TOP command to call resource information of the RocketMQ process from all running processes, and acquiring the current CPU utilization rate from the resource information according to a configuration instruction;
saving and displaying the current CPU utilization rate;
acquiring the initial CPU utilization rate of the last configuration period;
calculating a first difference value between the current CPU utilization rate and the initial CPU utilization rate;
calculating the ratio of the first difference value to the initial CPU utilization rate;
and when the ratio is greater than or equal to the second configuration value, an alarm is given.
2. The CPU usage monitoring method of claim 1, wherein the specified keywords are NamesrvStartup and BrokerStartup.
3. The CPU usage monitoring method of claim 1, wherein presenting the current CPU usage comprises:
and displaying the current CPU utilization rate through a Grafana display platform.
4. The CPU usage monitoring method of claim 1, wherein the method further comprises:
and when the current CPU utilization rate is greater than or equal to a first configuration value, an alarm is given.
5. The CPU usage monitoring method of claim 1, wherein the method further comprises:
carrying out pressure test on the electronic equipment to obtain the simulation utilization rate of the CPU;
calculating a second difference value between the current CPU utilization rate and the CPU simulation utilization rate;
and when the absolute value of the second difference is larger than a preset threshold value, giving an alarm.
6. A CPU usage monitoring apparatus, the apparatus comprising:
the receiving unit is used for receiving a CPU utilization rate monitoring instruction;
the acquisition unit is used for detecting the CPU state of the RockettMQ by utilizing a script Rockettq.sh according to the monitoring instruction;
the acquiring unit is further configured to, when the CPU state is an available state, invoke all process information of the RocketMQ from all running processes by using a PS command, and acquire a process identifier PID of the RocketMQ process from all the process information in combination with a specified keyword;
the calling unit is used for calling the resource information of the RockettMQ process from all running processes by utilizing a TOP command according to the PID and acquiring the current CPU utilization rate from the resource information according to a configuration instruction;
the display unit is used for storing and displaying the current CPU utilization rate;
the obtaining unit is further configured to obtain an initial CPU utilization rate of a previous configuration cycle;
the calculating unit is used for calculating a first difference value between the current CPU utilization rate and the initial CPU utilization rate;
the calculating unit is further configured to calculate a ratio of the first difference to the initial CPU utilization;
and the sending unit is also used for sending an alarm when the ratio is greater than or equal to the second configuration value.
7. An electronic device, characterized in that the electronic device comprises:
a memory storing at least one instruction; and
a processor executing instructions stored in the memory to implement the CPU usage monitoring method of any of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: the computer-readable storage medium has stored therein at least one instruction that is executed by a processor in an electronic device to implement the CPU usage monitoring method of any of claims 1-5.
CN201811537788.4A 2018-12-15 2018-12-15 CPU utilization monitoring method and device, electronic equipment and storage medium Active CN109800124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811537788.4A CN109800124B (en) 2018-12-15 2018-12-15 CPU utilization monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811537788.4A CN109800124B (en) 2018-12-15 2018-12-15 CPU utilization monitoring method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109800124A CN109800124A (en) 2019-05-24
CN109800124B true CN109800124B (en) 2023-04-11

Family

ID=66556844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811537788.4A Active CN109800124B (en) 2018-12-15 2018-12-15 CPU utilization monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109800124B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061612A (en) * 2019-12-12 2020-04-24 天地伟业技术有限公司 Embedded system state monitoring method
CN111338860A (en) * 2020-02-14 2020-06-26 浪潮电子信息产业股份有限公司 Memory monitoring method, device, equipment and storage medium
CN111984538A (en) * 2020-08-24 2020-11-24 深圳市捷诚技术服务有限公司 System information output method and device, computer readable storage medium and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011141786A (en) * 2010-01-08 2011-07-21 Oki Networks Co Ltd Cpu monitoring device and cpu monitoring program
CN107368400A (en) * 2017-08-01 2017-11-21 广东欧珀移动通信有限公司 CPU monitoring methods, device, computer-readable recording medium and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10079743B2 (en) * 2013-05-06 2018-09-18 Empire Technology Development Llc Computing device performance monitor
CN107179975A (en) * 2016-03-09 2017-09-19 北京京东尚科信息技术有限公司 monitoring method and device
CN107870848B (en) * 2016-09-23 2020-08-28 腾讯科技(深圳)有限公司 Method, device and system for detecting CPU performance conflict
CN107302449B (en) * 2017-06-13 2020-07-17 中国工商银行股份有限公司 Intelligent monitoring statistics and alarm processing system and method
CN108874624B (en) * 2018-05-31 2023-03-28 康键信息技术(深圳)有限公司 Server, method for monitoring Java process and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011141786A (en) * 2010-01-08 2011-07-21 Oki Networks Co Ltd Cpu monitoring device and cpu monitoring program
CN107368400A (en) * 2017-08-01 2017-11-21 广东欧珀移动通信有限公司 CPU monitoring methods, device, computer-readable recording medium and mobile terminal

Also Published As

Publication number Publication date
CN109800124A (en) 2019-05-24

Similar Documents

Publication Publication Date Title
US11733982B1 (en) Dynamically changing input data streams processed by data stream language programs
US10303533B1 (en) Real-time log analysis service for integrating external event data with log data for use in root cause analysis
US10749782B2 (en) Analyzing servers based on data streams generated by instrumented software executing on the servers
CN109800124B (en) CPU utilization monitoring method and device, electronic equipment and storage medium
CN111338901A (en) Redis monitoring method, Redis monitoring device and terminal
CN111614483A (en) Link monitoring method and device, storage medium and computer equipment
CN110825731B (en) Data storage method, device, electronic equipment and storage medium
CN112631887A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and computer-readable storage medium
CN111400189A (en) Code coverage rate monitoring method and device, electronic equipment and storage medium
CN113778790A (en) Method and system for monitoring state of computing system based on Zabbix
CN114169303A (en) Method, device, equipment and medium for editing table based on vue.js
CN109815082B (en) KAFKA theme monitoring method and device, electronic equipment and storage medium
CN109840179B (en) RocktMQ thread number monitoring method and device, electronic equipment and storage medium
CN109828885B (en) RocketMQ memory monitoring method and device, electronic equipment and storage medium
CN109889399A (en) RocketMQ client connection number monitoring method, device, electronic equipment and storage medium
CN109766236A (en) KAFKA message queue number monitoring method, device, electronic equipment and storage medium
CN109766238B (en) Session number-based operation and maintenance platform performance monitoring method and device and related equipment
US11496376B2 (en) Method and apparatus for processing local hot spot, electronic device and storage medium
CN114372003A (en) Test environment monitoring method and device and electronic equipment
CN114077510B (en) Method and device for positioning and displaying fault root cause
CN114579390A (en) Data processing method and related device based on cloud computing management platform project
CN114140032A (en) Facility running state monitoring method, device, equipment and storage medium
CN116893947A (en) Horus operation and maintenance monitoring system
CN113626244A (en) ANR abnormal data collection method, ANR abnormal data display method, ANR abnormal data collection device, ANR abnormal data display device and ANR abnormal data display equipment
CN114817145A (en) Report query method, device, equipment and storage medium based on timing task

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
GR01 Patent grant
GR01 Patent grant