CN109800124A - CPU usage monitoring method, device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN109800124A
CN109800124A CN201811537788.4A CN201811537788A CN109800124A CN 109800124 A CN109800124 A CN 109800124A CN 201811537788 A CN201811537788 A CN 201811537788A CN 109800124 A CN109800124 A CN 109800124A
Authority
CN
China
Prior art keywords
cpu usage
electronic equipment
rocketmq
cpu
pid
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.)
Granted
Application number
CN201811537788.4A
Other languages
Chinese (zh)
Other versions
CN109800124B (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

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 present invention provides a kind of CPU usage monitoring method, device, electronic equipment and storage medium.The CPU usage monitoring method includes: to receive CPU usage monitoring instruction;Being instructed according to the monitoring calls RocketMQ tool to obtain CPU state;When the CPU state is available mode, using PS order, in conjunction with nominal key, the PID of RocketMQ process is obtained from the process of all operations;According to the PID, current CPU usage is recalled using TOP order;It saves and shows the current CPU usage.The present invention, to effectively avoid responding slow situation, improves O&M efficiency convenient for carrying out O&M in time when being abnormal.

Description

CPU usage monitoring method, device, electronic equipment and storage medium
Technical field
The present invention relates to O&M technical field more particularly to a kind of CPU usage monitoring method, device, electronic equipment and Storage medium.
Background technique
In the prior art scheme, the standard Spring Boot product of market will not usually use the CPU of RocketMQ Rate is monitored, and in traditional host level, cpu monitor includes all process statistics of operating system, therefore can not area Divide is using java process or other operating system process, in this way, then may be used in CPU usage phenomenon high if there is hurricane It can generate erroneous judgement.
This index is as the core index of interest using O&M, if higher, application system it is possible that processing Slow situation is responded, is affected to the use of user.
Summary of the invention
In view of the foregoing, it is necessary to a kind of CPU usage monitoring method, device, electronic equipment and storage medium are provided, Convenient for being safeguarded in time when being abnormal, to effectively avoid responding slow situation, O&M efficiency is improved.
A kind of CPU usage monitoring method, which comprises
Receive CPU usage monitoring instruction;
Being instructed according to the monitoring calls RocketMQ tool to obtain CPU state;
When the CPU state is available mode, using PS order, in conjunction with nominal key, from the process of all operations The middle PID for obtaining RocketMQ process;
According to the PID, current CPU usage is recalled using TOP order;
It saves and shows the current CPU usage.
Preferred embodiment according to the present invention, it is described to use PS order, in conjunction with nominal key, from the process of all operations Obtain RocketMQ process PID include:
Using PS order, all progress informations of the RocketMQ are transferred from the process of all operations;
In conjunction with the nominal key NamesrvStartup and BrokerStartup, from all progress informations Obtain the PID of the RocketMQ process.
Preferred embodiment according to the present invention, it is described according to the PID, current CPU usage packet is recalled using TOP order It includes:
The RocketMQ process is transferred from the process of all operations using TOP order according to the PID Resource information;
According to configuration-direct, current CPU usage is obtained from the resource information.
Preferred embodiment according to the present invention shows that the current CPU usage includes:
The current CPU usage is shown by Grafana display platform.
Preferred embodiment according to the present invention, the method also includes:
When the current CPU usage is more than or equal to the first Configuration Values, sound an alarm.
Preferred embodiment according to the present invention, the method also includes:
Obtain the initial CPU usage in a configuration period;
Calculate the first difference of the current CPU usage Yu the initial CPU usage;
Calculate the ratio of first difference Yu the initial CPU usage;
When the ratio is more than or equal to the second Configuration Values, sound an alarm.
Preferred embodiment according to the present invention, the method also includes:
Pressure test is carried out to the electronic equipment, to obtain CPU simulation utilization rate;
Calculate the second difference of the current CPU usage and CPU simulation utilization rate;
When the absolute value of second difference is greater than preset threshold, sound an alarm.
A kind of CPU usage monitoring device, described device include:
Receiving unit, for receiving CPU usage monitoring instruction;
Acquiring unit calls RocketMQ tool to obtain CPU state for being instructed according to the monitoring;
The acquiring unit is also used to when the CPU state is available mode, using PS order, in conjunction with designated key Word obtains the PID of RocketMQ process from the process of all operations;
Unit is transferred, for recalling current CPU usage using TOP order according to the PID;
Display unit, for saving and showing the current CPU usage.
Preferred embodiment according to the present invention, the acquiring unit uses PS order, in conjunction with nominal key, from all operations Process in obtain RocketMQ process PID include:
Using PS order, all progress informations of the RocketMQ are transferred from the process of all operations;
In conjunction with the nominal key NamesrvStartup and BrokerStartup, from all progress informations Obtain the PID of the RocketMQ process.
Preferred embodiment according to the present invention, the unit of transferring are specifically used for:
The RocketMQ process is transferred from the process of all operations using TOP order according to the PID Resource information;
According to configuration-direct, current CPU usage is obtained from the resource information.
Preferred embodiment according to the present invention, the display unit show that the current CPU usage includes:
The current CPU usage is shown by Grafana display platform.
Preferred embodiment according to the present invention, described device further include:
Issue unit, for sounding an alarm when the current CPU usage is more than or equal to the first Configuration Values.
Preferred embodiment according to the present invention, the acquiring unit, the initial CPU for being also used to obtain a configuration period make With rate;
Described device further include:
Computing unit, for calculating the first difference of the current CPU usage Yu the initial CPU usage;
The computing unit is also used to calculate the ratio of first difference Yu the initial CPU usage;
The issue unit is also used to sound an alarm when the ratio is more than or equal to the second Configuration Values.
Preferred embodiment according to the present invention, described device further include:
Test cell, for carrying out pressure test to the electronic equipment, to obtain CPU simulation utilization rate;
The computing unit, be also used to calculate the current CPU usage and CPU simulation utilization rate second are poor Value;
The issue unit is also used to sound an alarm when the absolute value of second difference is greater than preset threshold.
A kind of electronic equipment, the electronic equipment include:
Memory stores at least one instruction;And
Processor executes the instruction stored in the memory to realize the CPU usage monitoring method.
A kind of computer readable storage medium is stored at least one instruction, institute in the computer readable storage medium At least one instruction is stated to be executed by the processor in electronic equipment to realize the CPU usage monitoring method.
As can be seen from the above technical solutions, the present invention can be after receiving CPU usage monitoring instruction, according to described Monitoring instruction calls RocketMQ tool to obtain CPU state, and when the CPU state is available mode, then uses PS order, In conjunction with nominal key, the PID of RocketMQ process is obtained from the process of all operations, to avoid extra operation is carried out, Increase workload, while avoiding judging by accident, further according to the PID, recalls current CPU usage using TOP order, save simultaneously It shows the current CPU usage, the current CPU usage is supplied to relevant staff, convenient for being abnormal When safeguarded in time, to effectively avoid responding slow situation, improve O&M efficiency.
Detailed description of the invention
Fig. 1 is the flow chart of the preferred embodiment of CPU usage monitoring method of the present invention.
Fig. 2 is the functional block diagram of the preferred embodiment of CPU usage monitoring device of the present invention.
Fig. 3 is the structural schematic diagram of the electronic equipment for the preferred embodiment that the present invention realizes CPU usage monitoring method.
Main element symbol description
Electronic equipment 1
Memory 12
Processor 13
CPU usage monitoring device 11
Receiving unit 110
Acquiring unit 112
Transfer unit 113
Display unit 114
Issue unit 115
Computing unit 116
Test cell 117
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments The present invention is described in detail.
As shown in Figure 1, being the flow chart of the preferred embodiment of CPU usage monitoring method of the present invention.According to different need It asks, the sequence of step can change in the flow chart, and certain steps can be omitted.
The CPU usage monitoring method is applied in one or more electronic equipment, and the electronic equipment is a kind of Can be according to the instruction for being previously set or storing, the automatic equipment for carrying out numerical value calculating and/or information processing, hardware include but Be not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), can Program gate array (Field-Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment can be any electronic product that human-computer interaction can be carried out with user, for example, personal meter Calculation machine, tablet computer, smart phone, personal digital assistant (PersonalDigital Assistant, PDA), game machine, friendship Mutual formula Web TV (Internet Protocol Television, IPTV), intellectual wearable device etc..
The electronic equipment can also include the network equipment and/or user equipment.Wherein, the network equipment includes, but It is not limited to single network server, the server group of multiple network servers composition or based on cloud computing (Cloud Computing the cloud being made of a large amount of hosts or network server).
Network locating for the electronic equipment include but is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, it is virtual specially With network (Virtual Private Network, VPN) etc..
S10 receives CPU usage monitoring instruction.
The electronic equipment receives CPU usage monitoring instruction.
In at least one embodiment of the present invention, the standard Spring Boot product of market usually will not be right CPU (Central Processing Unit, central processing unit) utilization rate of RocketMQ is monitored, and in traditional master Machine level, cpu monitor includes all process statistics of operating system, therefore also cannot be distinguished is the CPU for applying java process Utilization rate is excessively high or other operating system process CPU usages are excessively high, in this way, when the high phenomenon of hurricane occurs in CPU usage, Erroneous judgement may then be generated.
In addition, the CPU usage, as the core index of interest using O&M, if higher, application system may It will appear processing and respond slow situation, affect to the use of user.
Therefore, by the technical program, the electronic equipment can be realized the monitoring to CPU usage, effectively avoid missing Sentence and handle and respond slow situation, and then improves O&M efficiency.
In at least one embodiment of the present invention, the client includes RocketMQ client, the RocketMQ Client is the message-oriented middleware of a queuing model, it may be assumed that an independent system software or service routine, be located at client computer or On the operating system of server, computer resource and network communication are managed, two stand-alone utilities or only can be connected Erection system, and can be realized message system function.
Specifically, the CPU usage refers to the cpu resource that the program of operation occupies, and therefore, the CPU usage is got over Height, illustrates while the program run is more, on the contrary then fewer.The height of the CPU usage has directly with the height of cpu performance Relationship.
In at least one embodiment of the present invention, it includes following that the electronic equipment, which receives CPU usage monitoring instruction, One or more kinds of combinations:
(1) CPU usage that the electronic equipment receives user's triggering monitors instruction.
Specifically, the user can trigger the CPU usage monitoring instruction, the triggering by clicking trigger key Key can be virtual key or physical button etc..
The user can also input corresponding phonetic order, be instructed using monitoring as the CPU usage, the present invention is not Limitation.
Either, the user can also input finger print information, to trigger described CPU usage monitoring instruction etc..
(2) electronic equipment receives the electronic equipment and triggers the CPU usage monitoring every prefixed time interval The signal of instruction.
Specifically, the prefixed time interval can be configured by the electronic equipment, can also by the user into Row custom-configures, and the present invention does not limit.
Such as: the prefixed time interval can be every 1 minute etc..
(3) electronic equipment receives monitoring in the preset time triggering CPU usage for the electronic equipment configuration The signal of instruction.
Specifically, the preset time can be configured by the electronic equipment, can also be carried out certainly by the user Definition configuration, the present invention do not limit.
Such as: the preset time can be 10 points of the morning of December 1 etc..
(4) CPU usage monitoring that the electronic equipment receives that the electronic equipment triggers under configuration status refers to It enables.
Specifically, the configuration status includes, but are not limited to the state etc. of the electronic equipment operation Caton, so that described Electronic equipment automatically determines the reason of operation Caton.
S11 is instructed according to the monitoring and RocketMQ tool is called to obtain CPU state.
The electronic equipment is instructed according to the monitoring calls RocketMQ tool to obtain CPU state.
In at least one embodiment of the present invention, the CPU state includes available mode and down state.
Specifically, the available mode refers to that the electronic equipment is in operating status;
The down state refers to that the electronic equipment is in crash state or off-mode etc..
It is understood that the electronic equipment is just needed to described only when the CPU state is available mode CPU usage monitoring instruction responds.
Specifically, the electronic equipment can use the CPU state that script rocketmq.sh detects the RocketMQ.
Such as: the associated script of the electronic equipment input rocketmq.sh writes mode according to the script, when Output be " rocketmq is not running " when, then illustrate the CPU state be it is unavailable, otherwise, illustrate the CPU State is available.
S12, when the CPU state is available mode, using PS order, in conjunction with nominal key, from all operations The PID (Process Identification, Process identifier) of RocketMQ process is obtained in process.
When the CPU state is available mode, the electronic equipment uses PS order, in conjunction with nominal key, from institute There is the PID that RocketMQ process is obtained in the process of operation.
In at least one embodiment of the present invention, the PS in Linux (Process Status) order is for showing Currently running all processes in system, so that the electronic equipment inquires all processes.
In at least one embodiment of the present invention, the nominal key include NamesrvStartup and BrokerStartup, the NamesrvStartup and BrokerStartup are used for the RocketMQ middleware, are described Class name in the Run Script of RocketMQ middleware, therefore, by the nominal key NamesrvStartup and BrokerStartup, and the PS order is called, the PID of the RocketMQ process can be got.
Specifically, the electronic equipment is obtained from the process of all operations using PS order in conjunction with nominal key The PID of RocketMQ process includes:
The electronic equipment uses PS order, and all processes letter of the RocketMQ is transferred from the process of all operations Breath, and in conjunction with the nominal key NamesrvStartup and BrokerStartup, it is obtained from all progress informations The PID of the RocketMQ process.
Such as: the electronic equipment is using order: PID=`ps-fC java | grep " $ INSTANCES " | egrep " NamesrvStartup | BrokerStartup " | awk'{ print $ 2 } ', available operation result: [root@SZC- L0075300 rocketmq]#ps-fC java|grep"rmq_lcloud-config-prd-ins5201"|egrep" NamesrvStartup | BrokerStartup " | awk'{ print $ 2 } ' 16056, therefore, the electronic equipment can determine institute The PID for stating RocketMQ process is 16056.
S13 recalls current CPU usage using TOP order according to the PID.
The electronic equipment recalls current CPU usage according to the PID, using TOP order.
In at least one embodiment of the present invention, the TOP order can real-time dynamicly check the whole fortune of system Market condition, for the progress information of display system operation, and the electronic equipment shows that the process is believed with real-time text information Breath.
Specifically, according to the PID, recall current CPU usage using TOP order includes: the electronic equipment
The electronic equipment is according to the PID, using TOP order, transfers from the process of all operations described The resource information of RocketMQ process, according to configuration-direct, current CPU is obtained from the resource information to be made the electronic equipment With rate.
Further, CPU usage, the memory that the resource information includes, but are not limited to the RocketMQ process account for With rate etc..
The configuration-direct is corresponding with the CPU usage, such as: the configuration-direct may include RocketMqCpu, to get the current CPU usage from the resource information.
Such as: the electronic equipment uses TOP order, and in conjunction with corresponding PID 16056 and the configuration-direct RocketMqCpu forms order 2>&1 of rocketMqCpu=`top-b-n 1-p $ res | awk-v pid=$ pid'{ if ($ 1 ==pid) print $ 9 } ', the electronic equipment recalls from the resource information of the RocketMQ process described current in turn CPU usage.
S14 is saved and is shown the current CPU usage.
The electronic equipment saves and shows the current CPU usage.
It at least one embodiment of the present invention, will be described after the electronic equipment recalls the current CPU usage Current CPU usage is saved to configuration database, is transferred with facilitating.
Specifically, the configuration database can be the local data base of the electronic equipment, be also possible to and the electricity The external data base etc. that sub- equipment communicates.
Further, the electronic equipment is after saving the current CPU usage to the configuration database, the electricity Sub- equipment can transfer the current CPU usage from the configuration database, and show the user, described to facilitate User is directly viewable.
Specifically, the electronic equipment shows that the current CPU usage includes:
The electronic equipment shows the current CPU usage by Grafana display platform.
Specifically, the Grafana display platform is a visualization panel (Dashboard), support various charts and Layout is shown, and supports Graphite, zabbix, InfluxDB, Prometheus and OpenTSDB as data source.It is described Grafana display platform, which has characteristics that, has flexible graphical option abundant, and can mix a variety of styles, and prop up It holds daytime and Night, while supporting multiple data sources.
At this point, the configuration database can be the non-relational database of the Grafana display platform, to avoid accounting for With the running memory of the electronic equipment.
Certainly, in other embodiments, the electronic equipment can also show that the current CPU makes by Highcharts With rate, the present invention is not limited.
Highcharts is the chart library write with pure JavaScript language, can it is very simple, easily in web Website or weblication are added with the chart of interactivity, and support the various legends of monitor supervision platform.
Preferably, the method also includes:
When the current CPU usage is more than or equal to the first Configuration Values, the electronic equipment is sounded an alarm.
Specifically, first Configuration Values are a preset threshold values, and first Configuration Values can be set by the electronics It is standby to be configured, it can also be configured according to actual needs by the user, the present invention does not limit.For example, described first matches Setting value can be 80% etc., that is to say, that when the current CPU usage is more than or equal to 80%, the electronic equipment It will sound an alarm.
Further, the electronic equipment can issue alarm sound, and send alarm mail and/or warning message extremely Relevant staff, the electronic equipment can also on the display of the electronic equipment display alarm information etc..
Specifically, the relevant staff may include, but be not limited to the combination of following one or more:
Operation maintenance personnel, developer, tester, project manager etc..
By above embodiment, when the current CPU usage is excessively high, the electronic equipment can prompt institute in time Relevant staff is stated, to facilitate the relevant staff to timely respond to, the operation to the electronic equipment is avoided to make At influence.
Preferably, the method also includes:
The electronic equipment obtains the initial CPU usage in a configuration period, and calculates the current CPU usage With the first difference of the initial CPU usage, the electronic equipment calculates first difference and the initial CPU usage Ratio, when the ratio be more than or equal to the second Configuration Values when, the electronic equipment sounds an alarm.
Such as: the current CPU usage is that the sampled data of this week a whole morning 10:00 is 50%, the electronic equipment After the initial CPU usage 40% for obtaining a whole morning last week 10:00, calculate the current CPU usage 50% with it is described initial First difference of CPU usage 40% be 10%, the electronic equipment further calculate out first difference 10% with it is described The ratio of initial CPU usage 40% is 25%, and is greater than second Configuration Values 20%, then the electronic equipment issues police Report.
Specifically, second Configuration Values are a preset threshold values, and second Configuration Values can be set by the electronics It is standby to be configured, it can also be configured according to actual needs by the user, the present invention does not limit.
By above embodiment, baseline alarm is may be implemented in the electronic equipment, to guarantee that the electronic equipment is normal Operation.
Preferably, the method also includes:
The electronic equipment carries out pressure test to the electronic equipment, and to obtain CPU simulation utilization rate, the electronics is set Standby the second difference for calculating the current CPU usage and CPU simulation utilization rate, when the absolute value of second difference is big When preset threshold, the electronic equipment is sounded an alarm.
Specifically, the pressure test refers to, by simulating the actual use scene of the electronic equipment, to realize to institute State the simulation test of the actual motion index of electronic equipment.
In the present embodiment, the electronic equipment simulates CPU Run-time scenario, to obtain the CPU simulation utilization rate, then will The CPU simulation utilization rate is compared with the current CPU usage (i.e. current instream factor), described to calculate Second difference, then absolute value and the preset threshold by comparing second difference, analyze whether the CPU operation deposits In exception.
Specifically, the preset threshold can assist the case where determining CPU operation as the benchmark compared, such as: The preset threshold can be 5% etc..
So, when the absolute value of second difference is less than or equal to 5%, the electronic equipment normal operation.
And when the absolute value of second difference is greater than 5%, the electronic equipment sounds an alarm, such as: the electronics Equipment can blow a whistle prompting, or pop up prompting frame on the Grafana display platform, to remind designated person to carry out and When handle.
In conclusion the present invention can receive CPU usage monitoring instruction;It is instructed according to the monitoring and calls RocketMQ work Tool obtains CPU state;When the CPU state is available mode, using PS order, in conjunction with nominal key, from all operations Process in obtain RocketMQ process PID;According to the PID, current CPU usage is recalled using TOP order;It saves simultaneously Show the current CPU usage.Therefore, the present invention convenient for safeguarding in time when being abnormal, to effectively avoid ringing Slow situation is answered, O&M efficiency is improved.
As shown in Fig. 2, being the functional block diagram of the preferred embodiment of CPU usage monitoring device of the present invention.The CPU makes Include receiving unit 110, acquiring unit 112 with rate monitoring device 11, transfer unit 113, display unit 114, issue unit 115, computing unit 116 and test cell 117.So-called module/the unit of the present invention refers to that one kind can be held by processor 13 Row, and the series of computation machine program segment of fixed function can be completed, storage is in memory 12.In the present embodiment, Function about each module/unit will be described in detail in subsequent embodiment.
Receiving unit 110 receives CPU usage monitoring instruction.
In at least one embodiment of the present invention, the standard Spring Boot product of market usually will not be right The CPU usage of RocketMQ is monitored, and in traditional host level, cpu monitor is comprising all processes of operating system Statistics, therefore it is excessively high or other operating system process CPU makes using the CPU usage of java process for also cannot be distinguished It is excessively high with rate, in this way, may then generate erroneous judgement when the high phenomenon of hurricane occurs in CPU usage.
In addition, the CPU usage, as the core index of interest using O&M, if higher, application system may It will appear processing and respond slow situation, affect to the use of user.
Therefore, by the technical program, the electronic equipment can be realized the monitoring to CPU usage, effectively avoid missing Sentence and handle and respond slow situation, and then improves O&M efficiency.
In at least one embodiment of the present invention, the client includes RocketMQ client, the RocketMQ Client is the message-oriented middleware of a queuing model, it may be assumed that an independent system software or service routine, be located at client computer or On the operating system of server, computer resource and network communication are managed, two stand-alone utilities or only can be connected Erection system, and can be realized message system function.
Specifically, the CPU usage refers to the cpu resource that the program of operation occupies, and therefore, the CPU usage is got over Height, illustrates while the program run is more, on the contrary then fewer.The height of the CPU usage has directly with the height of cpu performance Relationship.
In at least one embodiment of the present invention, the receiving unit 110 receive CPU usage monitoring instruction include with The combination of lower one or more:
(1) CPU usage that the receiving unit 110 receives user's triggering monitors instruction.
Specifically, the user can trigger the CPU usage monitoring instruction, the triggering by clicking trigger key Key can be virtual key or physical button etc..
The user can also input corresponding phonetic order, be instructed using monitoring as the CPU usage, the present invention is not Limitation.
Either, the user can also input finger print information, to trigger described CPU usage monitoring instruction etc..
(2) receiving unit 110 receives the electronic equipment and triggers the CPU usage prison every prefixed time interval Control the signal of instruction.
Specifically, the prefixed time interval can be configured by the electronic equipment, can also by the user into Row custom-configures, and the present invention does not limit.
Such as: the prefixed time interval can be every 1 minute etc..
(3) receiving unit 110 receives supervising in the preset time triggering CPU usage for the electronic equipment configuration Control the signal of instruction.
Specifically, the preset time can be configured by the electronic equipment, can also be carried out certainly by the user Definition configuration, the present invention do not limit.
Such as: the preset time can be 10 points of the morning of December 1 etc..
(4) receiving unit 110 receives the CPU usage monitoring that the electronic equipment triggers under configuration status Instruction.
Specifically, the configuration status includes, but are not limited to the state etc. of the electronic equipment operation Caton, so that described Electronic equipment automatically determines the reason of operation Caton.
Acquiring unit 112 is instructed according to the monitoring calls RocketMQ tool to obtain CPU state.
In at least one embodiment of the present invention, the CPU state includes available mode and down state.
Specifically, the available mode refers to that the electronic equipment is in operating status;
The down state refers to that the electronic equipment is in crash state or off-mode etc..
It is understood that the electronic equipment is just needed to described only when the CPU state is available mode CPU usage monitoring instruction responds.
Specifically, the acquiring unit 112 can use the CPU shape that script rocketmq.sh detects the RocketMQ State.
Such as: the associated script of the electronic equipment input rocketmq.sh writes mode according to the script, when Output be " rocketmq is not running " when, then illustrate the CPU state be it is unavailable, otherwise, illustrate the CPU State is available.
When the CPU state is available mode, the acquiring unit 112 uses PS order, in conjunction with nominal key, from The PID of RocketMQ process is obtained in the process of all operations.
In at least one embodiment of the present invention, the PS in Linux (Process Status) order is for showing Currently running all processes in system, so that the electronic equipment inquires all processes.
In at least one embodiment of the present invention, the nominal key include NamesrvStartup and BrokerStartup, the NamesrvStartup and BrokerStartup are used for the RocketMQ middleware, are described Class name in the Run Script of RocketMQ middleware, therefore, by the nominal key NamesrvStartup and BrokerStartup, and the PS order is called, the PID of the RocketMQ process can be got.
Specifically, the acquiring unit 112 is obtained from the process of all operations using PS order in conjunction with nominal key The PID of RocketMQ process is taken to include:
The acquiring unit 112 uses PS order, transferred from the process of all operations the RocketMQ it is all into Journey information, the acquiring unit 112 is in conjunction with the nominal key NamesrvStartup and BrokerStartup, from described The PID of the RocketMQ process is obtained in all progress informations.
Such as: the acquiring unit 112 is using order: PID=`ps-fC java | grep " $ INSTANCES " | egrep " NamesrvStartup | BrokerStartup " | awk'{ print $ 2 } ', available operation result: [root@SZC- L0075300 rocketmq]#ps-fC java|grep"rmq_lcloud-config-prd-ins5201"|egrep" NamesrvStartup | BrokerStartup " | awk'{ print $ 2 } ' 16056, therefore, the acquiring unit 112 can be true The PID of the fixed RocketMQ process is 16056.
Unit 113 is transferred according to the PID, recalls current CPU usage using TOP order.
In at least one embodiment of the present invention, the TOP order can real-time dynamicly check the whole fortune of system Market condition, for the progress information of display system operation, and the electronic equipment shows that the process is believed with real-time text information Breath.
Specifically, according to the PID, recall current CPU usage using TOP order includes: the unit 113 of transferring
The unit 113 of transferring is according to the PID, using TOP order, transfers from the process of all operations described The resource information of RocketMQ process, the unit 113 of transferring obtain current according to configuration-direct from the resource information CPU usage.
Further, CPU usage, the memory that the resource information includes, but are not limited to the RocketMQ process account for With rate etc..
The configuration-direct is corresponding with the CPU usage, such as: the configuration-direct may include RocketMqCpu, to get the current CPU usage from the resource information.
Such as: the unit 113 of transferring uses TOP order, and in conjunction with corresponding PID 16056 and the configuration-direct RocketMqCpu forms order 2>&1 of rocketMqCpu=`top-b-n 1-p $ res | awk-v pid=$ pid'{ if ($ 1 ==pid) print $ 9 } ', it is described to transfer unit 113 and then recall described work as from the resource information of the RocketMQ process Preceding CPU usage.
Display unit 114 saves and shows the current CPU usage.
In at least one embodiment of the present invention, described to transfer after unit 113 recalls the current CPU usage, institute It states display unit 114 to save the current CPU usage to configuration database, be transferred with facilitating.
Specifically, the configuration database can be the local data base of the electronic equipment, be also possible to and the electricity The external data base etc. that sub- equipment communicates.
Further, the display unit 114 is after saving the current CPU usage to the configuration database, institute It states and transfers unit 113 and can transfer the current CPU usage from the configuration database, and show the user, with The user is facilitated to be directly viewable.
Specifically, the display unit 114 shows that the current CPU usage includes:
The display unit 114 shows the current CPU usage by Grafana display platform.
Specifically, the Grafana display platform is a visualization panel (Dashboard), support various charts and Layout is shown, and supports Graphite, zabbix, InfluxDB, Prometheus and OpenTSDB as data source.It is described Grafana display platform, which has characteristics that, has flexible graphical option abundant, and can mix a variety of styles, and prop up It holds daytime and Night, while supporting multiple data sources.
At this point, the configuration database can be the non-relational database of the Grafana display platform, to avoid accounting for With the running memory of the electronic equipment.
Certainly, in other embodiments, the display unit 114 can also be shown described current by Highcharts CPU usage, the present invention do not limit.
Highcharts is the chart library write with pure JavaScript language, can it is very simple, easily in web Website or weblication are added with the chart of interactivity, and support the various legends of monitor supervision platform.
Preferably, the method also includes:
When the current CPU usage is more than or equal to the first Configuration Values, issue unit 115 is sounded an alarm.
Specifically, first Configuration Values are a preset threshold values, and first Configuration Values can be set by the electronics It is standby to be configured, it can also be configured according to actual needs by the user, the present invention does not limit.For example, described first matches Setting value can be 80% etc., that is to say, that when the current CPU usage is more than or equal to 80%, the issue unit 115 will sound an alarm.
Further, the issue unit 115 can issue alarm sound, and send alarm mail and/or alarm and disappear Breath to relevant staff, the issue unit 115 can also on the display of the electronic equipment display alarm information etc..
Specifically, the relevant staff may include, but be not limited to the combination of following one or more:
Operation maintenance personnel, developer, tester, project manager etc..
By above embodiment, when the current CPU usage is excessively high, the issue unit 115 can mention in time Show the relevant staff, to facilitate the relevant staff to timely respond to, avoids the fortune to the electronic equipment Row impacts.
Preferably, the method also includes:
The acquiring unit 112 obtains the initial CPU usage in a configuration period, and computing unit 116 calculates described First difference of current CPU usage and the initial CPU usage, the computing unit 116 calculate first difference and The ratio of the initial CPU usage, when the ratio is more than or equal to the second Configuration Values, the issue unit 115 is sent out Alarm out.
Such as: the current CPU usage is that the sampled data of this week a whole morning 10:00 is 50%, the acquiring unit After 112 obtain the initial CPU usage 40% of a whole morning last week 10:00, the computing unit 116, which calculates the current CPU, to be made It is 10% with rate 50% and the first difference of the initial CPU usage 40%, the computing unit 116 further calculates out institute The ratio for stating the first difference 10% and the initial CPU usage 40% is 25%, and is greater than second Configuration Values 20%, then The issue unit 115 sounds an alarm.
Specifically, second Configuration Values are a preset threshold values, and second Configuration Values can be set by the electronics It is standby to be configured, it can also be configured according to actual needs by the user, the present invention does not limit.
By above embodiment, baseline alarm is may be implemented in the electronic equipment, to guarantee that the electronic equipment is normal Operation.
Preferably, the method also includes:
Test cell 117 carries out pressure test to the electronic equipment, and to obtain CPU simulation utilization rate, the calculating is single Member 116 calculates the second difference of the current CPU usage and CPU simulation utilization rate, absolute when second difference When value is greater than preset threshold, the issue unit 115 is sounded an alarm.
Specifically, the pressure test refers to, by simulating the actual use scene of the electronic equipment, to realize to institute State the simulation test of the actual motion index of electronic equipment.
In the present embodiment, the test cell 117 simulates CPU Run-time scenario, to obtain the CPU simulation utilization rate, The computing unit 116 again by the CPU simulation utilization rate and the current CPU usage (i.e. current instream factor) into Row comparison, to calculate second difference, then absolute value and the preset threshold by comparing second difference, analysis The CPU operation is with the presence or absence of abnormal out.
Specifically, the preset threshold can assist the case where determining CPU operation as the benchmark compared, such as: The preset threshold can be 5% etc..
So, when the absolute value of second difference is less than or equal to 5%, the electronic equipment normal operation.
And when the absolute value of second difference is greater than 5%, the issue unit 115 sounds an alarm, such as: the hair Unit 115 can blow a whistle prompting out, or pop up prompting frame on the Grafana display platform, to remind designated person It is handled in time.
In conclusion the present invention can receive CPU usage monitoring instruction;It is instructed according to the monitoring and calls RocketMQ work Tool obtains CPU state;When the CPU state is available mode, using PS order, in conjunction with nominal key, from all operations Process in obtain RocketMQ process PID;According to the PID, current CPU usage is recalled using TOP order;It saves simultaneously Show the current CPU usage.Therefore, the present invention convenient for safeguarding in time when being abnormal, to effectively avoid ringing Slow situation is answered, O&M efficiency is improved.
As shown in figure 3, being that the present invention realizes that the structure of electronic equipment of the preferred embodiment of CPU usage monitoring method is shown It is intended to.
The electronic equipment 1 be it is a kind of can according to the instruction for being previously set or store, automatic progress numerical value calculating and/or The equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number Word processing device (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment 1, which can also be but not limited to any one, to pass through keyboard, mouse, remote controler, touching with user The modes such as template or voice-operated device carry out the electronic product of human-computer interaction, for example, personal computer, tablet computer, smart phone, Personal digital assistant (PersonalDigital Assistant, PDA), game machine, Interactive Internet TV (Internet Protocol Television, IPTV), intellectual wearable device etc..
The electronic equipment 1 can also be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.
Network locating for the electronic equipment 1 include but is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, it is virtual specially With network (Virtual Private Network, VPN) etc..
In one embodiment of the invention, the electronic equipment 1 includes, but are not limited to memory 12, processor 13, And it is stored in the computer program that can be run in the memory 12 and on the processor 13, such as CPU usage prison Control program.
It will be understood by those skilled in the art that the schematic diagram is only the example of electronic equipment 1, not structure paired electrons The restriction of equipment 1 may include perhaps combining certain components or different components, example than illustrating more or fewer components Such as described electronic equipment 1 can also include input-output equipment, network access equipment, bus.
Alleged processor 13 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng the processor 13 is arithmetic core and the control centre of the electronic equipment 1, entire using various interfaces and connection The various pieces of electronic equipment 1, and execute the operating system of the electronic equipment 1 and types of applications program, the program of installation Code etc..
The processor 13 executes the operating system of the electronic equipment 1 and the types of applications program of installation.The place Reason device 13 executes the application program to realize the step in above-mentioned each CPU usage monitoring method embodiment, such as Fig. 1 institute Step S10, S11, S12, S13, the S14 shown.
Alternatively, the processor 13 realizes each module in above-mentioned each Installation practice/mono- when executing the computer program The function of member, such as: receive CPU usage monitoring instruction;Being instructed according to the monitoring calls RocketMQ tool to obtain CPU shape State;When the CPU state is available mode, obtained from the process of all operations using PS order in conjunction with nominal key The PID of RocketMQ process;According to the PID, current CPU usage is recalled using TOP order;It saves and shows described current CPU usage.
Illustratively, the computer program can be divided into one or more module/units, one or more A module/unit is stored in the memory 12, and is executed by the processor 13, to complete the present invention.It is one Or multiple module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for retouching State implementation procedure of the computer program in the electronic equipment 1.It is connect for example, the computer program can be divided into It receives unit 110, acquiring unit 112, transfer unit 113, display unit 114, issue unit 115, computing unit 116 and test list Member 117.
The memory 12 can be used for storing the computer program and/or module, the processor 13 by operation or The computer program and/or module being stored in the memory 12 are executed, and calls the data being stored in memory 12, Realize the various functions of the electronic equipment 1.The memory 12 can mainly include storing program area and storage data area, In, storing program area can application program needed for storage program area, at least one function (such as sound-playing function, image Playing function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory according to mobile phone Deng) etc..In addition, memory 12 may include high-speed random access memory, it can also include nonvolatile memory, such as firmly Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states Part.
The memory 12 can be the external memory and/or internal storage of electronic equipment 1.Further, described Memory 12 can be the circuit with store function for not having physical form in integrated circuit, such as RAM (Random-Access Memory, random access memory), FIFO (First In First Out) etc..Alternatively, the memory 12 is also possible to Memory with physical form, such as memory bar, TF card (Trans-flash Card).
If the integrated module/unit of the electronic equipment 1 is realized in the form of SFU software functional unit and as independent Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program At the computer program can be stored in a computer readable storage medium, which is being executed by processor When, it can be achieved that the step of above-mentioned each embodiment of the method.
Wherein, the computer program includes computer program code, and the computer program code can be source code Form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: can Carry any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer of the computer program code Memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium The content for including can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as in certain departments Method administrative area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
In conjunction with Fig. 1, the memory 12 in the electronic equipment 1 stores multiple instruction to realize a kind of CPU usage The multiple instruction can be performed to realize in monitoring method, the processor 13: receiving CPU usage monitoring instruction;According to institute Stating monitoring instruction calls RocketMQ tool to obtain CPU state;When the CPU state is available mode, using PS order, knot Nominal key is closed, the PID of RocketMQ process is obtained from the process of all operations;According to the PID, TOP order is utilized Recall current CPU usage;It saves and shows the current CPU usage.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
Using PS order, all progress informations of the RocketMQ are transferred from the process of all operations;
In conjunction with the nominal key NamesrvStartup and BrokerStartup, from all progress informations Obtain the PID of the RocketMQ process.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
The RocketMQ process is transferred from the process of all operations using TOP order according to the PID Resource information;
According to configuration-direct, current CPU usage is obtained from the resource information.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
The current CPU usage is shown by Grafana display platform.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
When the current CPU usage is more than or equal to the first Configuration Values, sound an alarm.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
Obtain the initial CPU usage in a configuration period;
Calculate the first difference of the current CPU usage Yu the initial CPU usage;
Calculate the ratio of first difference Yu the initial CPU usage;
When the ratio is more than or equal to the second Configuration Values, sound an alarm.
Preferred embodiment according to the present invention, the processor 13 also execute multiple instruction and include:
Pressure test is carried out to the electronic equipment, to obtain CPU simulation utilization rate;
Calculate the second difference of the current CPU usage and CPU simulation utilization rate;
When the absolute value of second difference is greater than preset threshold, sound an alarm.
Specifically, the processor 13 can refer to the concrete methods of realizing of above-metioned instruction related in Fig. 1 corresponding embodiment The description of step, this will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module It divides, only a kind of logical function partition, there may be another division manner in actual implementation.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.
Therefore, in all respects, the present embodiments are to be considered as illustrative and not restrictive, this The range of invention is indicated by the appended claims rather than the foregoing description, it is intended that the equivalent requirements of the claims will be fallen in All changes in meaning and scope are included in the present invention.Any attached associated diagram label in claim should not be considered as limit Claim involved in making.
Furthermore, it is to be understood that one word of " comprising " does not exclude other units or steps, odd number is not excluded for plural number.In system claims The multiple units or device of statement can also be implemented through software or hardware by a unit or device.Second equal words are used It indicates title, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. a kind of CPU usage monitoring method, which is characterized in that the described method includes:
Receive CPU usage monitoring instruction;
Being instructed according to the monitoring calls RocketMQ tool to obtain CPU state;
When the CPU state is available mode, obtained from the process of all operations using PS order in conjunction with nominal key Take the PID of RocketMQ process;
According to the PID, current CPU usage is recalled using TOP order;
It saves and shows the current CPU usage.
2. CPU usage monitoring method as described in claim 1, which is characterized in that it is described to use PS order, in conjunction with specified pass Key word, the PID that RocketMQ process is obtained from the process of all operations include:
Using PS order, all progress informations of the RocketMQ are transferred from the process of all operations;
In conjunction with the nominal key NamesrvStartup and BrokerStartup, obtained from all progress informations The PID of the RocketMQ process.
3. CPU usage monitoring method as described in claim 1, which is characterized in that it is described according to the PID, it is ordered using TOP Order recalls current CPU usage
The resource of the RocketMQ process is transferred from the process of all operations using TOP order according to the PID Information;
According to configuration-direct, current CPU usage is obtained from the resource information.
4. CPU usage monitoring method as described in claim 1, which is characterized in that show the current CPU usage packet It includes:
The current CPU usage is shown by Grafana display platform.
5. CPU usage monitoring method as described in claim 1, which is characterized in that the method also includes:
When the current CPU usage is more than or equal to the first Configuration Values, sound an alarm.
6. CPU usage monitoring method as described in claim 1, which is characterized in that the method also includes:
Obtain the initial CPU usage in a configuration period;
Calculate the first difference of the current CPU usage Yu the initial CPU usage;
Calculate the ratio of first difference Yu the initial CPU usage;
When the ratio is more than or equal to the second Configuration Values, sound an alarm.
7. CPU usage monitoring method as described in claim 1, which is characterized in that the method also includes:
Pressure test is carried out to electronic equipment, to obtain CPU simulation utilization rate;
Calculate the second difference of the current CPU usage and CPU simulation utilization rate;
When the absolute value of second difference is greater than preset threshold, sound an alarm.
8. a kind of CPU usage monitoring device, which is characterized in that described device includes:
Receiving unit, for receiving CPU usage monitoring instruction;
Acquiring unit calls RocketMQ tool to obtain CPU state for being instructed according to the monitoring;
The acquiring unit is also used to when the CPU state is available mode, using PS order, in conjunction with nominal key, from The PID of RocketMQ process is obtained in the process of all operations;
Unit is transferred, for recalling current CPU usage using TOP order according to the PID;
Display unit, for saving and showing the current CPU usage.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory stores at least one instruction;And
Processor executes the instruction stored in the memory to realize CPU as claimed in any of claims 1 to 7 in one of claims Utilization rate monitoring method.
10. a kind of computer readable storage medium, it is characterised in that: be stored at least one in the computer readable storage medium A instruction, at least one described instruction are executed by the processor in electronic equipment to realize such as any one of claim 1 to 7 The CPU usage monitoring method.
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 true CN109800124A (en) 2019-05-24
CN109800124B 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)

Cited By (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 (8)

* 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
CN103164282A (en) * 2011-12-19 2013-06-19 中国移动通信集团安徽有限公司 Method and system of adjusting middleware service process maximum value
US20140330958A1 (en) * 2013-05-06 2014-11-06 Empire Technology Development, Llc Computing device performance monitor
CN107179975A (en) * 2016-03-09 2017-09-19 北京京东尚科信息技术有限公司 monitoring method and device
CN107302449A (en) * 2017-06-13 2017-10-27 中国工商银行股份有限公司 Intelligent monitoring statistics and alarm processing system and method
CN107368400A (en) * 2017-08-01 2017-11-21 广东欧珀移动通信有限公司 CPU monitoring methods, device, computer-readable recording medium and mobile terminal
CN107870848A (en) * 2016-09-23 2018-04-03 腾讯科技(深圳)有限公司 Detection method, the device and system of cpu performance conflict
CN108874624A (en) * 2018-05-31 2018-11-23 康键信息技术(深圳)有限公司 Server, the method and storage medium for monitoring Java process

Patent Citations (8)

* 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
CN103164282A (en) * 2011-12-19 2013-06-19 中国移动通信集团安徽有限公司 Method and system of adjusting middleware service process maximum value
US20140330958A1 (en) * 2013-05-06 2014-11-06 Empire Technology Development, Llc Computing device performance monitor
CN107179975A (en) * 2016-03-09 2017-09-19 北京京东尚科信息技术有限公司 monitoring method and device
CN107870848A (en) * 2016-09-23 2018-04-03 腾讯科技(深圳)有限公司 Detection method, the device and system of cpu performance conflict
CN107302449A (en) * 2017-06-13 2017-10-27 中国工商银行股份有限公司 Intelligent monitoring statistics and alarm processing system and method
CN107368400A (en) * 2017-08-01 2017-11-21 广东欧珀移动通信有限公司 CPU monitoring methods, device, computer-readable recording medium and mobile terminal
CN108874624A (en) * 2018-05-31 2018-11-23 康键信息技术(深圳)有限公司 Server, the method and storage medium for monitoring Java process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MB5FF2F1C4B5E55: "RocketMQ之七:RocketMQ管理与监控", 《51CTO博客》 *

Cited By (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

Also Published As

Publication number Publication date
CN109800124B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN108595316B (en) Lifecycle management method, manager, device, and medium for distributed application
CN109359026A (en) Log reporting method, device, electronic equipment and computer readable storage medium
CN109800124A (en) CPU usage monitoring method, device, electronic equipment and storage medium
CN109669837A (en) Equipment state method for early warning, system, computer installation and readable storage medium storing program for executing
CN111352800A (en) Big data cluster monitoring method and related equipment
CN113076104A (en) Page generation method, device, equipment and storage medium
JP2022048088A (en) Method and apparatus for testing code, electronic device, storage medium and computer program
CN109901889A (en) The full link monitoring method of supporting business system O&M based on J2EE platform
CN110825731A (en) Data storage method and device, electronic equipment and storage medium
CN112306700A (en) Abnormal RPC request diagnosis method and device
CN114153688A (en) Distributed monitoring method and device based on cloud platform
CN113778790A (en) Method and system for monitoring state of computing system based on Zabbix
CN109634986B (en) System monitoring method, device, computer and computer readable storage medium
CN110322153A (en) Monitor event processing method and system
CN109889399A (en) RocketMQ client connection number monitoring method, device, electronic equipment and storage medium
Cai et al. Experience availability: tail-latency oriented availability in software-defined cloud computing
CN109766236A (en) KAFKA message queue number monitoring method, device, electronic equipment and storage medium
CN109815082B (en) KAFKA theme monitoring method and device, electronic equipment and storage medium
CN104331405B (en) Data report processing method and device
CN109558300B (en) Whole cabinet alarm processing method and device, terminal and storage medium
CN111274032A (en) Task processing system and method, and storage medium
CN109840179A (en) RocketMQ Thread Count monitoring method, device, electronic equipment and storage medium
CN113242148B (en) Method, device, medium and electronic equipment for generating monitoring alarm related information
CN109766238B (en) Session number-based operation and maintenance platform performance monitoring method and device and related equipment
EP4209933A1 (en) Data processing method and apparatus, and electronic device and storage medium

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