CN103617108A - Method and device for monitoring computer equipment operating states - Google Patents

Method and device for monitoring computer equipment operating states Download PDF

Info

Publication number
CN103617108A
CN103617108A CN201310690467.9A CN201310690467A CN103617108A CN 103617108 A CN103617108 A CN 103617108A CN 201310690467 A CN201310690467 A CN 201310690467A CN 103617108 A CN103617108 A CN 103617108A
Authority
CN
China
Prior art keywords
thread
state parameter
real time
dbjective state
alternative
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310690467.9A
Other languages
Chinese (zh)
Inventor
陈新
董永胜
季晓旭
叶鑫
王兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
KUNSHAN CVIC SE Co Ltd
Original Assignee
KUNSHAN CVIC SE Co 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 KUNSHAN CVIC SE Co Ltd filed Critical KUNSHAN CVIC SE Co Ltd
Priority to CN201310690467.9A priority Critical patent/CN103617108A/en
Publication of CN103617108A publication Critical patent/CN103617108A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for monitoring computer equipment operating states. The method comprises the steps of establishing at least one thread when a monitoring order is received, triggering the thread in real time to obtain a plurality of alternative state parameters corresponding to the thread, selecting at least one target state parameter from the alternative state parameters in real time according to the preset selecting rule, and displaying the target state parameter in real time. According to the method, at least one target state parameter is obtained from the alternative state parameters in real time, the alternative state parameters are operating state parameters of a hardware module of computer equipment, the target state parameter is displayed, and the computer equipment can be monitored in real time.

Description

A kind of monitoring method of computer equipment running status and device
Technical field
The application relates to Computer Applied Technology field, especially a kind of monitoring method of computer equipment running status and device.
Background technology
Society, the work for the treatment of of information data mainly relies on computer equipment, computing machine is the main modular units such as CPU, internal memory and hard disk that rely in operational process, conventionally by the duty of modular unit described in some Parametric Representation, such as: the parameter relevant with CPU, comprise that CPU usage, the parameter relevant with internal memory comprise memory usage, relevant with the hard disk hard disk utilization rate etc. that comprises.The running status of described modular unit directly determines the work efficiency of computer processing data, and therefore, above-mentioned several parameter informations are the direct running status of Response calculation machine also.
If CPU usage is too high, can cause process to be suspended, even cause deadlock; If memory usage is too high, can affect the data processing amount of computing machine; If hard disk utilization rate is too high, can cause the even preservation of system file of user.Certainly, the operation of other modular units or service condition are not good, can affect equally the normal operation of computer equipment.Therefore, needing a kind of scheme badly monitors the running status of computer equipment.
Summary of the invention
In view of this, the application provides a kind of monitoring method and device of computer equipment running status, to realize the monitoring to computer equipment running status.The technical scheme that the application provides is as follows:
A monitoring method for computer equipment running status, comprising:
When receiving Monitoring instruction, create at least one thread;
Trigger in real time described thread and obtain a plurality of alternative state parameters corresponding with this thread;
According to default selection rule, from described a plurality of alternative state parameters, choose at least one dbjective state parameter in real time;
Described dbjective state parameter is shown in real time.
Said method, preferred, described when receiving Monitoring instruction, create at least one thread, comprising:
When receiving Monitoring instruction, create CPU status poll thread, internal storage state inquiry thread and disk state inquiry thread.
Said method, preferred, described described a plurality of dbjective state parameters are shown in real time, comprising:
In real time the described dbjective state parameter of choosing is encapsulated in class object;
From described class object, obtain in real time described dbjective state parameter;
Described dbjective state parameter is shown in real time.
Said method, preferred, at the default selection rule of foundation, choose at least one dbjective state parameter from described a plurality of alternative state parameters after, also comprise:
With the data structure form of class, described dbjective state parameter is kept in default journal file.
The application also provides a kind of monitoring device of computer equipment running status, comprising:
Creating unit, for when receiving Monitoring instruction, creates at least one thread;
Trigger element, obtains a plurality of alternative state parameters corresponding with this thread for triggering in real time described thread;
Choose unit, for according to default selection rule, from described a plurality of alternative state parameters, choose at least one dbjective state parameter in real time;
Display unit, for showing described dbjective state parameter in real time.
Said apparatus, preferred, the thread that described creating unit creates comprises CPU status poll thread, internal storage state inquiry thread and disk state inquiry thread.
Said apparatus, preferred, described display unit comprises:
Encapsulation subelement, for being encapsulated into class object by the described dbjective state parameter of choosing in real time;
Obtain subelement, for obtaining described dbjective state parameter from described class object in real time;
Show subelement, for described dbjective state parameter is shown in real time.
Said apparatus, preferred, also comprise:
Storage unit, for the data structure form with class, is kept at described dbjective state parameter in default journal file.
From above technical scheme, the application provides a kind of monitoring method and device of computer equipment running status, described method comprises: when receiving Monitoring instruction, create at least one thread, trigger in real time described thread and obtain a plurality of alternative state parameters corresponding with this thread, according to default selection rule, from described a plurality of alternative state parameters, choose at least one dbjective state parameter in real time, described dbjective state parameter is shown in real time.The method of utilizing the application to provide, by at least one the dbjective state parameter in alternative state parameter described in Real-time Obtaining, wherein, described alternative state parameter is the running state parameter of the hardware module of described computer equipment, and described dbjective state parameter is shown, can realize the real-time monitoring to described computer equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of a kind of computer equipment method for monitoring operation states embodiment mono-that Fig. 1 provides for the application;
The part process flow diagram of a kind of computer equipment method for monitoring operation states embodiment bis-that Fig. 2 provides for the application;
The structural representation of a kind of computer equipment monitoring running state device embodiment tri-that Fig. 3 provides for the application;
The part-structure schematic diagram of a kind of computer equipment monitoring running state device embodiment tetra-that Fig. 4 provides for the application;
The structural representation of a kind of computer equipment monitoring running state device embodiment five that Fig. 5 provides for the application;
Fig. 6 shows a kind of application example figure of the embodiment of the present application;
Fig. 7 shows the another kind of application example figure of the embodiment of the present application;
Fig. 8 shows another application example figure of the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
The operation of computer equipment depends on certain hardware module, and described hardware module is including but not limited to CPU, internal memory, hard disk.The work of described each hardware module or use state can exert an influence to the overall operation state of computer equipment to a certain extent.Weigh described each hardware module state and mainly comprise following several indexs:
CPU usage: the occupancy of the program of operation to CPU.This index is the multitask timesharing mechanism based on modern operating system, and CPU, within a period of time, processes a plurality of task process simultaneously, and described a plurality of task process take CPU in turn.For example, A process takies 10ms, and B process takies 30ms, and next idle 60ms is again that A process accounts for 10ms, and B process accounts for 30ms, idle 60ms.If be all this kind of situation within a period of time, in this period, the utilization rate of CPU is 40%.
Memory Allocation rate: the ratio of the memory size of having distributed and total amount of ram.For example, the content capacity of having distributed is the 0.7G in 1G internal memory, and described Memory Allocation rate is 70%.
Hard disk occupancy: the ratio of the hard disk having used and hard disk total amount.For example, described hard disk has used the 100G in 200G hard disk, and described hard disk occupancy is 50%.
Refer to Fig. 1, it shows the process flow diagram of a kind of computer equipment method for monitoring operation states embodiment mono-that the application provides, and the present embodiment can comprise:
Step 101: when receiving Monitoring instruction, create at least one thread.
Described Monitoring instruction is that external system generates automatically, and described external system sends described Monitoring instruction after generating Monitoring instruction.When receiving this Monitoring instruction, start the execution of this method, first create at least one thread.Wherein, described thread can be one, can be also a plurality of.
It should be noted that, described thread is the thread that obtains the current running status of equipment, as obtains the thread of internal storage state.
Step 102: trigger in real time described thread and obtain a plurality of alternative state parameters corresponding with this thread.
Described alternative state parameter is the current running state parameter of described equipment.The mode of described triggering, can be the corresponding instruction of invokes thread, for example free-m instruction.After being triggered, can obtain described thread the alternative state parameter corresponding with this thread.It should be noted that, the alternative state parameter corresponding with each thread is a plurality of.Such as: amount that the alternative state parameter corresponding with described internal storage state thread can be memory amount, Memory Allocation amount, internal memory is unallocated, as the amount of ram of compose buffer, as the amount of ram etc. of reading buffer zone.
When the thread creating in step 101 is a plurality of, each thread execution triggering in described a plurality of thread is obtained the alternative state parameter corresponding with each thread.
Step 103: according to default selection rule, choose at least one dbjective state parameter in real time from described a plurality of alternative state parameters.
The selection rule setting in advance can be: the sign that sets in advance the state parameter that will choose, in described alternative state parameter, search sign and identify identical state parameter with described default state parameter, the state parameter finding is defined as to dbjective state parameter.It should be noted that, described state parameter sign is one or more in the sign of described alternative state parameter, as, in described alternative state parameter, include: memory amount, Memory Allocation amount, internal memory is unallocated amount, the sign corresponding with described each alternative state parameter is respectively: total, used, free, what in described default selection rule, arrange is designated total, used.
Certainly, described selection rule is including but not limited to this kind of mode.
Step 104: described dbjective state parameter is shown in real time.
It should be noted that, demonstration be described dbjective state parameter name and parameter value thereof.Wherein, described title can be English name, can be also Chinese, or both combinations.
The mode of described demonstration can be the form of figure, can be the form of form, or both combinations.Certainly, display mode is including but not limited to above-mentioned two kinds of modes.The dbjective state parameter of described demonstration is analyzed for the relevant personnel, to obtain the running status of described computer run equipment.For example, utilize Memory Allocation amount and described memory amount, can know the partition coefficient of described internal memory.
It should be noted that, the step 102 in the present embodiment to step 104 is all carried out in real time, can obtain in real time the running status of each hardware module, thereby can realize the real-time monitoring to computer equipment running status.
From above technical scheme, the application provides a kind of monitoring method of computer equipment running status, described method comprises: when receiving Monitoring instruction, create at least one thread, trigger in real time described thread and obtain a plurality of alternative state parameters corresponding with this thread, according to default selection rule, from described a plurality of alternative state parameters, choose at least one dbjective state parameter in real time, described dbjective state parameter is shown in real time.The method of utilizing the application to provide, by at least one the dbjective state parameter in alternative state parameter described in Real-time Obtaining, wherein, described alternative state parameter is the running state parameter of the hardware module of described computer equipment, and described dbjective state parameter is shown, can realize the real-time monitoring to described computer equipment.
In above-described embodiment, step 101 can realize in the following manner:
When receiving Monitoring instruction, create CPU status poll thread, internal storage state inquiry thread and disk state inquiry thread.
Wherein, described CPU status poll thread, for inquiring about the running status of CPU; Internal storage state inquiry thread, is used state for audit memory; Disk state inquiry thread, is used state for inquiring about hard disk.Triggering the mode of described three threads, can be to call described three instructions that thread is corresponding.For example, the instruction corresponding with described CPU status poll thread is vmstat; The instruction corresponding with described internal storage state inquiry thread is free-m; The instruction corresponding with described disk state inquiry thread is df-m.
After calling above-mentioned three orders, trigger respectively each self-corresponding thread and obtain corresponding state parameter.Refer to Fig. 6, it shows a kind of application example figure of the embodiment of the present application, shows and call the CPU alternative state parameter that vmstat order gets in this figure; Refer to Fig. 7, it shows the another kind of application example figure of the embodiment of the present application, shows and call the internal memory alternative state parameter that free-m order gets in this figure; Refer to Fig. 8, another application example figure that it shows the embodiment of the present application, shows in this figure and calls the hard disk alternative state parameter that df – m order gets.
As shown in Figure 6, the alternative state parameter corresponding with described CPU status poll thread can be system number percent service time sy, cpu idle time number percent id, CPU space time number percent wa of user's number percent service time us, the CPU of kernel thread average b, CPU in the kernel thread average r that can move, waiting list per second etc.
The default selection rule corresponding with described CPU status poll thread can be to set in advance the state parameter of choosing to be designated: us, sy, wa and id search the sign parameter corresponding with described preset state parameter identification in described alternative state parameter.
As shown in Figure 7, the alternative state parameter corresponding with described internal storage state inquiry thread can be memory amount Mem_total, internal memory Allocation Mem_used, internal memory is unallocated amount Mem_free, virtual memory total amount Swap_total, virtual memory Allocation Swap_used, virtual memory is unallocated amount Swap_free, in order to amount of ram shared, the buffered data district buffers of different process swapping datas, another buffered data district cached etc.
The default selection rule corresponding with described internal storage state inquiry thread, can be to set in advance the state parameter of choosing to be designated: Mem_total, Mem_used, Swap_total and Swap_used search the sign parameter corresponding with described preset state parameter identification in described alternative state parameter.
As shown in Figure 8, the alternative state parameter corresponding with described disk state inquiry thread can be available, with, use %, mount point etc.
The default selection rule corresponding with described disk state inquiry thread, can be to set in advance the state parameter of choosing to be designated: available, with, use %, in described alternative state parameter, search the sign parameter corresponding with described preset state parameter identification.
It should be noted that, each English name or the Chinese that in the present embodiment, use just play mark action, use other forms of title to identify related content, also belong to the application's protection domain.
Refer to Fig. 2, it shows the part process flow diagram of the monitoring method embodiment bis-of a kind of computer equipment running status that the application provides; The step 104 of embodiment mono-can comprise:
Step 201: in real time the described dbjective state parameter of choosing is encapsulated in class object.
Class is a kind of data structure form, in class object, can set in advance the field comprising, and wherein, the field comprising can be one, can be also a plurality of.For example, set in advance the class that name is called iw_sys_watch, described class object is in order to encapsulate the parameters value of described dbjective state parameter.In this iw_sys_watch class, each field and the corresponding relation that is used for determining the default selection rule (order/row/column) of dbjective state parameter, refer to table 1.Wherein, described order/row/column refers to, and with certain order, obtains alternative state parameter, obtains the dbjective state parameter that a certain row of certain a line point in all alternative state parameters that show.
Figure BDA0000439402150000081
Table 1
The form of described encapsulation is the parameter value of described dbjective state parameter to be put into each field of class object corresponding to described class.For example, the numerical value that described vmstat/*/us is corresponding is 0, by 0, is encapsulated in described cpu_us field.
Step 202: obtain in real time described dbjective state parameter from described class object.
Step 203: described dbjective state parameter is shown in real time.
From each field of described class object, obtaining field value shows in real time.
After above-mentioned each embodiment, can also comprise:
With the data structure form of class, described dbjective state parameter is kept in default journal file.Wherein: described journal file sets in advance in disk, in order to deposit described dbjective state parameter.By the parameter name of described dbjective state parameter and parameter value are preserved, can realize the running status within certain period to described computer equipment and check.
Refer to Fig. 3, it shows the structural representation of a kind of computer equipment monitoring running state device embodiment tri-that the application provides, and the present embodiment can comprise: creating unit 301, trigger element 302, choose unit 303 and display unit 304.Wherein:
Described creating unit 301, for when receiving Monitoring instruction, creates at least one thread.
Described Monitoring instruction is that external system generates automatically, and described external system sends described Monitoring instruction after generating Monitoring instruction.Described creating unit 301, when receiving this Monitoring instruction, starts the execution of this method, and first described creating unit 301 creates at least one thread.Wherein, described thread can be one, can be also a plurality of.
It should be noted that, described thread is the thread that obtains the current running status of equipment, as obtains the thread of internal storage state.
Described trigger element 302, obtains a plurality of alternative state parameters corresponding with this thread for triggering in real time described thread.
Described alternative state parameter is the current running state parameter of described equipment.The mode that described trigger element 302 triggers, can be the corresponding instruction of invokes thread, for example free-m instruction.After being triggered, can obtain described thread the alternative state parameter corresponding with this thread.It should be noted that, the alternative state parameter corresponding with each thread is a plurality of.Such as: amount that the alternative state parameter corresponding with described internal storage state thread can be memory amount, Memory Allocation amount, internal memory is unallocated, as the amount of ram of compose buffer, as the amount of ram etc. of reading buffer zone.
When the thread creating when described creating unit 301 is a plurality of, each thread execution that described trigger element 302 triggers in described a plurality of threads is obtained the alternative state parameter corresponding with each thread.
At least one dbjective state parameter for according to default selection rule, is chosen in real time in the described unit 303 of choosing from described a plurality of alternative state parameters.
The selection rule setting in advance can be: the sign that sets in advance the state parameter that will choose, in described alternative state parameter, search sign and identify identical state parameter with described default state parameter, the state parameter finding is defined as to dbjective state parameter.It should be noted that, described state parameter sign is one or more in the sign of described alternative state parameter, as, in described alternative state parameter, include: memory amount, Memory Allocation amount, internal memory is unallocated amount, the sign corresponding with described each alternative state parameter is respectively: total, used, free, what in described default selection rule, arrange is designated total, used.
Certainly, described selection rule is including but not limited to this kind of mode.
Described display unit 304, for showing described dbjective state parameter in real time.
It should be noted that, what described display unit 304 showed is described dbjective state parameter name and parameter value thereof.Wherein, described title can be English name, can be also Chinese, or both combinations.
The mode of described demonstration can be the form of figure, can be the form of form, or both combinations.Certainly, display mode is including but not limited to above-mentioned two kinds of modes.The dbjective state parameter of described demonstration is analyzed for the relevant personnel, to obtain the running status of described computer run equipment.For example, utilize Memory Allocation amount and described memory amount, can know the partition coefficient of described internal memory.
It should be noted that, in the present embodiment, unit 302 to 304 is all to carry out in real time work, can obtain in real time the running status of each hardware module, thereby can realize the real-time monitoring to computer equipment running status.
From above technical scheme, the present embodiment provides a kind of monitoring device of computer equipment running status, this device is by when receiving Monitoring instruction, create at least one thread, trigger in real time described thread and obtain a plurality of alternative state parameters corresponding with this thread, according to default selection rule, from described a plurality of alternative state parameters, choose at least one dbjective state parameter in real time, described dbjective state parameter is shown in real time.The device that utilizes the application to provide, by at least one the dbjective state parameter in alternative state parameter described in Real-time Obtaining, wherein, described alternative state parameter is the running state parameter of the hardware module of described computer equipment, and described dbjective state parameter is shown, can realize the real-time monitoring to described computer equipment.
The thread that the creating unit 301 of above-described embodiment creates comprises CPU status poll thread, internal storage state inquiry thread and disk state inquiry thread.
Wherein, described CPU status poll thread, for inquiring about the running status of CPU; Internal storage state inquiry thread, is used state for audit memory; Disk state inquiry thread, is used state for inquiring about hard disk.Described trigger element 302 triggers the mode of described three threads, can be to call described three instructions that thread is corresponding.For example, the instruction corresponding with described CPU status poll thread is vmstat; The instruction corresponding with described internal storage state inquiry thread is free-m; The instruction corresponding with described disk state inquiry thread is df-m.
When described trigger element 302 calls after above-mentioned three orders, trigger respectively each self-corresponding thread and obtain corresponding state parameter.Refer to Fig. 6, it shows a kind of application example figure of the embodiment of the present application, shows and call the CPU alternative state parameter that vmstat order gets in this figure; Refer to Fig. 7, it shows the another kind of application example figure of the embodiment of the present application, shows and call the internal memory alternative state parameter that free-m order gets in this figure; Refer to Fig. 8, another application example figure that it shows the embodiment of the present application, shows in this figure and calls the hard disk alternative state parameter that df – m order gets.
As shown in Figure 6, the alternative state parameter corresponding with described CPU status poll thread can be system number percent service time sy, cpu idle time number percent id, CPU space time number percent wa of user's number percent service time us, the CPU of kernel thread average b, CPU in the kernel thread average r that can move, waiting list per second etc.
The default selection rule corresponding with described CPU status poll thread can be to set in advance the state parameter of choosing to be designated: us, sy, wa and id search the sign parameter corresponding with described preset state parameter identification in described alternative state parameter.
As shown in Figure 7, the alternative state parameter corresponding with described internal storage state inquiry thread can be memory amount Mem_total, internal memory Allocation Mem_used, internal memory is unallocated amount Mem_free, virtual memory total amount Swap_total, virtual memory Allocation Swap_used, virtual memory is unallocated amount Swap_free, in order to amount of ram shared, the buffered data district buffers of different process swapping datas, another buffered data district cached etc.
The default selection rule corresponding with described internal storage state inquiry thread, can be to set in advance the state parameter of choosing to be designated: Mem_total, Mem_used, Swap_total and Swap_used search the sign parameter corresponding with described preset state parameter identification in described alternative state parameter.
As shown in Figure 8, the alternative state parameter corresponding with described disk state inquiry thread can be available, with, use %, mount point etc.
The default selection rule corresponding with described disk state inquiry thread, can be to set in advance the state parameter of choosing to be designated: available, with, use %, in described alternative state parameter, search the sign parameter corresponding with described preset state parameter identification.
It should be noted that, each English name or the Chinese that in the present embodiment, use just play mark action, use other forms of title to identify related content, also belong to the application's protection domain.
Refer to Fig. 4, it shows the part-structure schematic diagram of the monitoring device embodiment tetra-of a kind of computer equipment running status that the application provides; The display unit 304 of embodiment tri-can comprise: encapsulate subelement 401, obtain subelement 402 and show subelement 403.Wherein:
Described encapsulation subelement 401, for being encapsulated into class object by the described dbjective state parameter of choosing in real time.
Class is a kind of data structure form, in class object, can set in advance the field comprising, and wherein, the field comprising can be one, can be also a plurality of.For example, set in advance the class that name is called iw_sys_watch, described class object is in order to encapsulate the parameters value of described dbjective state parameter.In this iw_sys_watch class, each field and the corresponding relation that is used for determining the default selection rule (order/row/column) of dbjective state parameter, refer to table 1.Wherein, described order/row/column refers to, and with certain order, obtains alternative state parameter, obtains the dbjective state parameter that a certain row of certain a line point in all alternative state parameters that show.
The form of described encapsulation subelement 401 encapsulation is the parameter value of described dbjective state parameter to be put into each field of class object corresponding to described class.For example, the numerical value that described vmstat/*/us is corresponding is 0, by 0, is encapsulated in described cpu_us field.
The described subelement 402 that obtains, for obtaining described dbjective state parameter from described class object in real time.
Described demonstration subelement 403, for showing described dbjective state parameter in real time.
Described demonstration subelement 403 obtains field value and shows in real time from each field of described class object.
Refer to Fig. 5, on the basis of above-mentioned each embodiment, can also comprise: storage unit 105.
Described storage unit 105, with the data structure form of class, is kept at described dbjective state parameter in default journal file.Wherein: described journal file sets in advance in disk, in order to deposit described dbjective state parameter.By the parameter name of described dbjective state parameter and parameter value are preserved, can realize the running status within certain period to described computer equipment and check.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.
Above the monitoring method of a kind of computer equipment running status provided by the present invention and device are described in detail, the above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (8)

1. a monitoring method for computer equipment running status, is characterized in that, comprising:
When receiving Monitoring instruction, create at least one thread;
Trigger in real time described thread and obtain a plurality of alternative state parameters corresponding with this thread;
According to default selection rule, from described a plurality of alternative state parameters, choose at least one dbjective state parameter in real time;
Described dbjective state parameter is shown in real time.
2. method according to claim 1, is characterized in that, described when receiving Monitoring instruction, creates at least one thread, comprising:
When receiving Monitoring instruction, create CPU status poll thread, internal storage state inquiry thread and disk state inquiry thread.
3. method according to claim 1, is characterized in that, described described a plurality of dbjective state parameters is shown in real time, comprising:
In real time the described dbjective state parameter of choosing is encapsulated in class object;
From described class object, obtain in real time described dbjective state parameter;
Described dbjective state parameter is shown in real time.
4. according to the method described in claims 1 to 3 any one, it is characterized in that, at the default selection rule of foundation, choose at least one dbjective state parameter from described a plurality of alternative state parameters after, also comprise:
With the data structure form of class, described dbjective state parameter is kept in default journal file.
5. a monitoring device for computer equipment running status, is characterized in that, comprising:
Creating unit, for when receiving Monitoring instruction, creates at least one thread;
Trigger element, obtains a plurality of alternative state parameters corresponding with this thread for triggering in real time described thread;
Choose unit, for according to default selection rule, from described a plurality of alternative state parameters, choose at least one dbjective state parameter in real time;
Display unit, for showing described dbjective state parameter in real time.
6. device according to claim 5, is characterized in that, the thread that described creating unit creates comprises CPU status poll thread, internal storage state inquiry thread and disk state inquiry thread.
7. device according to claim 5, is characterized in that, described display unit comprises:
Encapsulation subelement, for being encapsulated into class object by the described dbjective state parameter of choosing in real time;
Obtain subelement, for obtaining described dbjective state parameter from described class object in real time;
Show subelement, for described dbjective state parameter is shown in real time.
8. according to the device described in claim 5 to 7 any one, it is characterized in that, also comprise:
Storage unit, for the data structure form with class, is kept at described dbjective state parameter in default journal file.
CN201310690467.9A 2013-12-17 2013-12-17 Method and device for monitoring computer equipment operating states Pending CN103617108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310690467.9A CN103617108A (en) 2013-12-17 2013-12-17 Method and device for monitoring computer equipment operating states

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310690467.9A CN103617108A (en) 2013-12-17 2013-12-17 Method and device for monitoring computer equipment operating states

Publications (1)

Publication Number Publication Date
CN103617108A true CN103617108A (en) 2014-03-05

Family

ID=50167811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310690467.9A Pending CN103617108A (en) 2013-12-17 2013-12-17 Method and device for monitoring computer equipment operating states

Country Status (1)

Country Link
CN (1) CN103617108A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106133699A (en) * 2014-06-20 2016-11-16 Nec 飞鼎克株式会社 Malfunction informing device, failure notification method and program
CN110119292A (en) * 2018-02-07 2019-08-13 中兴通讯股份有限公司 System operational parameters querying method, matching process, device and node device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648870A (en) * 2005-03-09 2005-08-03 北京软通科技有限责任公司 Automatic detesting method for computer system hardware device
CN101533366A (en) * 2009-03-09 2009-09-16 浪潮电子信息产业股份有限公司 Method for acquiring and analyzing performance data of server
US20100131685A1 (en) * 2008-11-26 2010-05-27 International Business Machines Corporation Hardware configuration information system, method, and computer program product
CN102368224A (en) * 2011-06-29 2012-03-07 奇智软件(北京)有限公司 Processing method and device for hardware detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648870A (en) * 2005-03-09 2005-08-03 北京软通科技有限责任公司 Automatic detesting method for computer system hardware device
US20100131685A1 (en) * 2008-11-26 2010-05-27 International Business Machines Corporation Hardware configuration information system, method, and computer program product
CN101533366A (en) * 2009-03-09 2009-09-16 浪潮电子信息产业股份有限公司 Method for acquiring and analyzing performance data of server
CN102368224A (en) * 2011-06-29 2012-03-07 奇智软件(北京)有限公司 Processing method and device for hardware detection

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106133699A (en) * 2014-06-20 2016-11-16 Nec 飞鼎克株式会社 Malfunction informing device, failure notification method and program
CN110119292A (en) * 2018-02-07 2019-08-13 中兴通讯股份有限公司 System operational parameters querying method, matching process, device and node device
CN110119292B (en) * 2018-02-07 2023-02-07 中兴通讯股份有限公司 System operation parameter query method, matching method, device and node equipment

Similar Documents

Publication Publication Date Title
US9479358B2 (en) Managing graphics load balancing strategies
US8863022B2 (en) Process management views
CN106027328B (en) Cluster monitoring method and system based on application container deployment
EP2503733B1 (en) Data collecting method, data collecting apparatus and network management device
CN106547612B (en) Multitasking method and device
CN107256180B (en) Data processing method, device and terminal
US8516462B2 (en) Method and apparatus for managing a stack
CN109753354A (en) Processing method, device and the computer equipment of Streaming Media task based on multithreading
CN102656603B (en) Graphics pipeline scheduling architecture utilizing performance counters
CN104793996A (en) Task scheduling method and device of parallel computing equipment
CN111124668B (en) Memory release method, memory release device, storage medium and terminal
US9442817B2 (en) Diagnosis of application server performance problems via thread level pattern analysis
CN104850394B (en) The management method and distributed system of distributed application program
CN105378668A (en) Operating system-managed interrupt steering in multiprocessor systems
CN114327894A (en) Resource allocation method, device, electronic equipment and storage medium
US20120324194A1 (en) Adjusting the amount of memory allocated to a call stack
CN103617108A (en) Method and device for monitoring computer equipment operating states
US8977752B2 (en) Event-based dynamic resource provisioning
CN113610699B (en) Method, device, equipment and storage medium for scheduling rendering of hardware layer
CN109558210B (en) Method and system for virtual machine to apply GPU (graphics processing Unit) equipment of host
CN106201551A (en) A kind of application program exits method and device
CN114675976A (en) GPU sharing method, device, equipment and medium based on kubernets
CN106155796A (en) A kind of thread scheduling method based on queue and device
CN109002286A (en) Data asynchronous processing method and device based on synchronous programming
CN112860401A (en) Task scheduling method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140305

RJ01 Rejection of invention patent application after publication