CN105528277A - Method and equipment for monitoring target device - Google Patents

Method and equipment for monitoring target device Download PDF

Info

Publication number
CN105528277A
CN105528277A CN201510917487.4A CN201510917487A CN105528277A CN 105528277 A CN105528277 A CN 105528277A CN 201510917487 A CN201510917487 A CN 201510917487A CN 105528277 A CN105528277 A CN 105528277A
Authority
CN
China
Prior art keywords
list
resource
target device
application program
mark
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
CN201510917487.4A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510917487.4A priority Critical patent/CN105528277A/en
Publication of CN105528277A publication Critical patent/CN105528277A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3017Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and equipment for monitoring a target device. The method comprises the following steps: judging whether a preset monitoring condition is met or not; if the preset monitoring condition is met, acquiring labels of all processes of the target device; acquiring occupation information of each process on different types of resources; for each type of resource, generating occupation information lists of all the process on such type of resource; showing all generated lists. According to the technical scheme, occupation situations of all the processes of the target device on various different types of resources can be shown comprehensively, so that a user can better monitor the target device, and further handle exceptional situations possibly existing.

Description

A kind of method and apparatus of monitoring objective equipment
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus of monitoring objective equipment.
Background technology
The running status understanding the computing equipment of current use is the very important demand of user one, and such as, task manager in the Windows system of Microsoft just can for family be intuitively for user shows the behaviour in service of CPU, disk, network and internal memory.Such as, Fig. 1 shows the interface schematic diagram of task manager in Windows system.As shown in Figure 1, in Windows system, task manager can show process identification (PID) pid, and the CPU usage of correspondence and memory usage, but being also only limitted to this shows the occupied information of each process to this two spike-type cultivars, not comprehensively.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of method and apparatus of monitoring objective equipment overcoming the problems referred to above or solve the problem at least in part.
According to one aspect of the present invention, provide a kind of method of monitoring objective equipment, comprising:
Judge whether to meet the monitoring condition preset;
If met, obtain the mark of all processes on target device;
Obtain the occupied information of each process to dissimilar resource;
For every types of resources, generate the occupied information list of each process to the type resource;
Show each list generated.
Alternatively, the method comprises further:
According to each process, each process is sorted by the occupancy of the type resource in each list.
Alternatively, the method also comprises:
For every type resource corresponding to list, each process in this list is divided into multiple groups according to clooating sequence, in lists the process different colours of difference group is carried out mark show.
Alternatively, each list that described displaying generates comprises:
Preset the corresponding relation between different quick marks and each list;
When fast identifying for one that receives user's input, show this list that fast mark is corresponding.
Alternatively, the method also comprises:
Obtain the relevant information of application program corresponding to each process;
When receiving user and select the instruction of a process in shown list, show that this is by the relevant information of application program corresponding to the process selected.
Alternatively, the relevant information of the application program of described correspondence comprises one or more as follows:
The title of application program;
The functional circuit information of application program;
The start-up time of application program;
The initiator of application program.
Alternatively, described dissimilar resource comprises one or more as follows:
Cpu resource, memory source, hard disk resources, I/O resource.
Alternatively, judge whether described in that meeting the monitoring condition preset comprises:
Judge whether the time that default sense cycle is corresponding;
Or,
Judge whether all processes on described target device reach predetermined threshold value to specifying total occupancy of one or more resource type;
Or,
The all processes on described target device of monitoring to the variable condition of total occupancy of specifying one or more resource type, when judging whether the changing value of described total occupancy within the preset length time exceedes certain value;
Or,
Judge whether described target device traffic failure occurs.
Alternatively, if arrived time corresponding to the sense cycle preset, then described default monitoring condition has met;
Or,
If all processes on described target device reach predetermined threshold value to specifying total occupancy of one or more resource type, then described default monitoring condition meets;
Or,
If all processes on described target device exceed certain value to specifying the changing value of total occupancy within the preset length time of one or more resource type, then described default monitoring condition meets;
Or,
If described target device generation traffic failure, then described default monitoring condition meets.
Alternatively, the mark of all processes on described acquisition target device comprises:
Read the file under the assigned catalogue on target device, from this file, obtain the mark of process.
Alternatively, the method also comprises:
Default application resource takies threshold list; The corresponding multiple resource occupation threshold values saving application program and correspondence in this list, wherein said multiple resource occupation threshold value corresponding dissimilar resource respectively;
Take threshold list according to the information in each list and described application resource, judge whether trigger alarm, if it is carry out alert process.
Alternatively, describedly take threshold list according to the information in each list and described application resource, judge whether that trigger alarm comprises:
For each process in each list, threshold list is taken according to application resource described in the application queries that this process is corresponding, obtain the resource occupation threshold value of respective type resource, judging whether this process resource occupation amount is in the list more than or equal to and inquire about the resource occupation threshold value that obtains, is then trigger alarm.
Alternatively, carry out alert process described in comprise: send warning message by specifying channel;
Described by specify channel send warning message comprise following in one or more: display comprises the bullet window of warning message on the target device; Warning message is sent to appointment e-mail address by e-mail system; Warning message is sent to the instant messaging account of specifying by instant communicating system; Warning message is sent to the phone number of specifying by SMS; By reporting warning message to this given server with being connected between given server.
According to another aspect of the present invention, provide a kind of device of monitoring objective equipment, comprising:
Condition judgment unit, is suitable for judging whether to meet presetting monitoring condition;
Monitoring processing unit, is suitable for when described condition judgment unit is judged as meeting pre-conditioned, obtains the mark of all processes on target device; Obtain the occupied information of each process to dissimilar resource; For every types of resources, generate the occupied information list of each process to the type resource;
Display unit, is suitable for showing each list generated.
Alternatively, described monitoring processing unit, is suitable for each process being sorted according to the occupancy of each process to the type resource in each list.
Alternatively, described display unit, is also suitable for, for the list corresponding to the resource of every type, each process in this list being divided into multiple groups according to clooating sequence, in lists the process different colours of difference group is carried out mark and shows.
Alternatively, described display unit, is suitable for presetting the corresponding relation between different quick marks and each list; When fast identifying for one that receives user's input, show this list that fast mark is corresponding.
Alternatively, described monitoring processing unit, is further adapted for the relevant information obtaining application program corresponding to each process;
Described display unit, is further adapted for when receiving user and select the instruction of a process in shown list, shows that this is by the relevant information of application program corresponding to the process selected.
Alternatively, the relevant information of the application program of described correspondence comprises one or more as follows:
The title of application program;
The functional circuit information of application program;
The start-up time of application program;
The initiator of application program.
Alternatively, described dissimilar resource comprises one or more as follows: cpu resource, memory source, hard disk resources, I/O resource.
Alternatively, described condition judgment unit, the time that the sense cycle being suitable for having judged whether to preset is corresponding; Or, judge whether all processes on described target device reach predetermined threshold value to specifying total occupancy of one or more resource type; Or all processes on described target device of monitoring, to the variable condition of total occupancy of specifying one or more resource type, judge whether the changing value of described total occupancy within the preset length time exceedes certain value; Or, judge whether described target device traffic failure occurs.
Alternatively, described condition judgment unit, is suitable for, when having arrived time corresponding to the sense cycle preset, determining that described default monitoring condition meets; Or, when all processes on described target device are to when specifying total occupancy of one or more resource type to reach predetermined threshold value, determine that described default monitoring condition meets; Or, when all processes on described target device are to when specifying the changing value of total occupancy within the preset length time of one or more resource type to exceed certain value, determine that described default monitoring condition meets; Or, when described target device generation traffic failure, determine that described default monitoring condition meets.
Alternatively, described monitoring processing unit, is suitable for the file under the assigned catalogue on reading target device, obtains the mark of process from this file.
Alternatively, said apparatus comprises further:
Alert process unit, is suitable for default application resource and takies threshold list; Take threshold list according to the information in each list and described application resource, judge whether trigger alarm, if it is carry out alert process;
Described application resource takies the corresponding multiple resource occupation threshold values saving application program and correspondence in threshold list, wherein said multiple resource occupation threshold value corresponding dissimilar resource respectively.
Alternatively, described alert process unit, be suitable for for each process in each list, threshold list is taken according to application resource described in the application query that this process is corresponding, obtain the resource occupation threshold value of respective type resource, judging whether this process resource occupation amount is in the list more than or equal to and inquire about the resource occupation threshold value that obtains, is then trigger alarm.
Alternatively, described alert process unit, is suitable for by specifying channel to send warning message;
Described by specify channel send warning message comprise following in one or more: display comprises the bullet window of warning message on the target device; Warning message is sent to appointment e-mail address by e-mail system; Warning message is sent to the instant messaging account of specifying by instant communicating system; Warning message is sent to the phone number of specifying by SMS; By reporting warning message to this given server with being connected between given server.
From the above, according to technical scheme of the present invention, first judge whether to meet the monitoring condition preset, the mark of all processes on target device is obtained further when satisfying condition, and obtain the occupied information of each process to dissimilar resource, by generating the mode of occupied information list, the occupied information of each process to all kinds resource is shown.This technical scheme can represent all processes on target device all sidedly and take situation to various dissimilar resource, user can be monitored target device better, process further to the abnormal conditions that may exist.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the interface schematic diagram of task manager in Windows system;
Fig. 2 shows a kind of according to an embodiment of the invention schematic flow sheet of method of monitoring objective equipment;
Fig. 3 shows the interface schematic diagram of cpu resource, memory source, exchange memory resource, Internet resources and I/O resource occupation information list;
Fig. 4 shows a kind of according to an embodiment of the invention structural representation of device of monitoring objective equipment.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 2 shows a kind of according to an embodiment of the invention schematic flow sheet of method of monitoring objective equipment, and as shown in Figure 2, the method comprises:
Step S210, judges whether to meet the monitoring condition preset.
Step S220, if met, obtains the mark of all processes on target device.
Step S230, obtains the occupied information of each process to dissimilar resource.
Step S240, for every types of resources, generates the occupied information list of each process to the type resource.
Step S250, shows each list generated.
Visible, method shown in Fig. 2, first judge whether to meet the monitoring condition preset, the mark of all processes on target device is obtained further when satisfying condition, and obtain the occupied information of each process to dissimilar resource, by generating the mode of occupied information list, the occupied information of each process to all kinds resource is shown.This technical scheme can represent all processes on target device all sidedly and take situation to various dissimilar resource, user can be monitored target device better, process further to the abnormal conditions that may exist.
In one embodiment of the invention, the method shown in Fig. 2 comprises further: each process sorted to the occupancy of the type resource according to each process in each list.
Wherein, the occupancy of each process to the type resource can be sorted from high to low or from low to high, facilitate user to check and whether can clear up some process, or find that some process may exist exception, as resource occupation amount is obviously too high.
In one embodiment of the invention, method shown in Fig. 2 also comprises: for every type resource corresponding to list, each process in this list is divided into multiple groups according to clooating sequence, in lists the process different colours of difference group is carried out mark and show.
Such as, clooating sequence is the sequence carried out from high to low the occupancy of the resource of this list corresponding types, then the process of sequence front 3 can be carried out marking red warning, and these processes of prompting user may have problems; After sequence being in, the process of 5% carries out marking ash process, and these processes of prompting user can not have problems usually, thus facilitate checking of user widely, more efficient.
In one embodiment of the invention, in the method shown in Fig. 2, show that each list generated comprises: preset the corresponding relation between different quick marks and each list; When fast identifying for one that receives user's input, show this list that fast mark is corresponding.
Such as, user wishes to check I/O (write/read) situation of each process to disk, the quick mark of I/O the Resources list can be set to i, when receiving the occupied information list showing I/O resource when user inputs i.Particularly, the quick mark of user's input can be accepted by providing for user quick mark input interface.
In one embodiment of the invention, the method shown in Fig. 2 also comprises: the relevant information obtaining application program corresponding to each process; When receiving user and select the instruction of a process in shown list, show that this is by the relevant information of application program corresponding to the process selected.
An application program may start multiple process simultaneously, and meanwhile, user also may wish to learn the process of checking is by which application program launching.Particularly, the relevant information of application program can comprise one or more as follows: the title of application program; The functional circuit information of application program; The start-up time of application program; The initiator of application program.
Like this, user can see in the occupied information list of resource that each process takies situation to this resource, not only succinct but also directly perceived; And user wishes to check that the situation of one of them concrete process is, to receive when user selects the instruction of a process in shown list and can, in detail for user represents the title of application program corresponding to this process, functional circuit information, start-up time and initiator etc., facilitate user to make further judgement according to these information.
In one embodiment of the invention, in the method shown in Fig. 2, dissimilar resource comprise following in one or more: cpu resource, memory source, hard disk resources, I/O resource.
Such as, in linux system, by reading/proc/stat, / proc/<pid>/stat, / proc/<pid>/task/LEssT.LTssT.L Ttid>/stat and these files of/proc/cpuinfo correspondingly can obtain total CPU time, the CPU time of process, the information of the CPU time of thread and the number of CPU, then by certain algorithm as the CPU snapshot in two enough short time intervals of sampling and process snapshot carry out the cpu resource occupancy of calculation procedure, memory source occupancy corresponding to corresponding process pid is obtained by ps order, by reading/proc/pid/io file acquisition ioread, the value of iowrite, perread, perwrite also calculates the I/O resource occupation amount of process, etc.Such as, Fig. 3 shows the interface schematic diagram of cpu resource, memory source, exchange memory resource, Internet resources and I/O resource occupation information list.
In one embodiment of the invention, in the method shown in Fig. 2, judge whether that meeting the monitoring condition preset comprises: judged whether the time that default sense cycle is corresponding; Or, judge whether all processes on target device reach predetermined threshold value to specifying total occupancy of one or more resource type; Or, all processes on monitoring objective equipment to the variable condition of total occupancy of specifying one or more resource type, when judging whether the changing value of total occupancy within the preset length time exceedes certain value; Or, judge whether target device traffic failure occurs.
Particularly, in one embodiment of the invention, in said method, if arrived time corresponding to the sense cycle preset, then the monitoring condition preset has met; Or if all processes on target device reach predetermined threshold value to specifying total occupancy of one or more resource type, then the monitoring condition preset meets; Or if all processes on target device exceed certain value to specifying the changing value of total occupancy within the preset length time of one or more resource type, then the monitoring condition preset meets; Or if target device generation traffic failure, then the monitoring condition preset meets.
Such as, according to user's request, every one hour, target device is monitored, then corresponding device can be set the time whether reaching predetermined period corresponding is judged; Or, the total occupancy of all processes on target device to one or more resource type reaches predetermined threshold value, as network traffics, if on target machine, flow summation reaches 80% of saturation volume is exactly generally that abnormal conditions occur, now can monitor described above network interface card.Again such as, on 10 minutes internal object machines, the flow summation of all network interface cards increases 200,000,000 suddenly, or directly there occurs network failure, is namely now meet default monitoring condition, needs to monitor.
In one embodiment of the invention, in the method shown in Fig. 2, the mark obtaining all processes on target device comprises: read the file under the assigned catalogue on target device, obtain the mark of process from this file.Such as, can by the process identification (PID) pid under reading/proc/ file acquisition proc in linux system.
In one embodiment of the invention, said method also comprises: default application resource takies threshold list; The corresponding multiple resource occupation threshold values saving application program and correspondence in this list, wherein multiple resource occupation threshold value corresponding dissimilar resource respectively; Take threshold list according to the information in each list and application resource, judge whether trigger alarm, if it is carry out alert process.
Such as, target device has run 5 processes, one of them process is to the occupancy of cpu resource more than 60%, and the occupancy of these 5 processes to cpu resource is also only 75%.User tentatively can assert that the process of this cpu resource occupancy more than 60% exists unusual condition under normal circumstances.But user is a large database on target device by the application program that this process of investigation discovery is corresponding, and this database normally works, and therefore user assert that this process is normal.Situation like this also has a lot, and therefore user can according to the actual requirements, and application programs resource occupation threshold list is arranged.
In one embodiment of the invention, in said method, threshold list is taken according to the information in each list and application resource, judge whether that trigger alarm comprises: for each process in each list, the application queries application resource corresponding according to this process takies threshold list, obtaining the resource occupation threshold value of respective type resource, judge whether this process resource occupation amount is in the list more than or equal to and inquire about the resource occupation threshold value that obtains, is then trigger alarm.
Such as, for application A, cpu resource is taken threshold value in threshold list and is set to 70% taking with cpu resource by user, wherein application A starts process a, b, c, the cpu resource rate inquiring process a in the list of cpu resource occupied information be 30%, process a cpu resource rate be 10%, the cpu resource rate of process a is 25%, learning that total CPU usage of application A reaches 75% by calculating, being now greater than the resource occupation threshold value of inquiring about and obtaining, then trigger alarm.
In one embodiment of the invention, in said method, carrying out alert process and comprise: sending warning message by specifying channel; One or more are as follows comprised: display comprises the bullet window of warning message on the target device by appointment channel transmission warning message; Warning message is sent to appointment e-mail address by e-mail system; Warning message is sent to the instant messaging account of specifying by instant communicating system; Warning message is sent to the phone number of specifying by SMS; By reporting warning message to this given server with being connected between given server.
Even if trigger alarm does not mean that target device necessarily goes wrong yet, operation maintenance personnel now also may be needed to carry out further artificial investigation, now can send warning message by above-mentioned multiple channel to operation maintenance personnel.Wherein, user can self-defined alert levels according to demand, for different alert levels, can send warning message by different channels.Such as, comparatively serious warning message can send directly to specified mobile phone number, as the mode by note; And the lighter warning message of degree can be sent to appointment e-mail address by e-mail system in the mode of Email, etc.Wherein, warning message can comprise the resource occupation information etc. of the application program of trigger alarm.
Fig. 4 shows a kind of according to an embodiment of the invention structural representation of device of monitoring objective equipment, and as shown in Figure 4, the device 400 of monitoring objective equipment comprises:
Condition judgment unit 410, is suitable for judging whether to meet presetting monitoring condition.
Monitoring processing unit 420, is suitable for when condition judgment unit is judged as meeting pre-conditioned, obtains the mark of all processes on target device; Obtain the occupied information of each process to dissimilar resource; For every types of resources, generate the occupied information list of each process to the type resource.
Display unit 430, is suitable for showing each list generated.
Visible, device shown in Fig. 4, by cooperatively interacting of each unit, first judge whether to meet the monitoring condition preset, the mark of all processes on target device is obtained further when satisfying condition, and obtain the occupied information of each process to dissimilar resource, by generating the mode of occupied information list, the occupied information of each process to all kinds resource is shown.This technical scheme can represent all processes on target device all sidedly and take situation to various dissimilar resource, user can be monitored target device better, process further to the abnormal conditions that may exist.
In one embodiment of the invention, in the device shown in Fig. 4, monitoring processing unit 420, is suitable for each process being sorted according to the occupancy of each process to the type resource in each list.
In one embodiment of the invention, in device shown in Fig. 4, display unit 430, is also suitable for for the list corresponding to the resource of every type, each process in this list is divided into multiple groups according to clooating sequence, in lists the process different colours of difference group is carried out mark and show.
In one embodiment of the invention, in the device shown in Fig. 4, display unit 430, is suitable for presetting the corresponding relation between different quick marks and each list; When fast identifying for one that receives user's input, show this list that fast mark is corresponding.
In one embodiment of the invention, in the device shown in Fig. 4, monitoring processing unit 420, is further adapted for the relevant information obtaining application program corresponding to each process; Display unit 430, is further adapted for when receiving user and select the instruction of a process in shown list, shows that this is by the relevant information of application program corresponding to the process selected.
In one embodiment of the invention, in said apparatus, the relevant information of corresponding application program comprise following in one or more: the title of application program; The functional circuit information of application program; The start-up time of application program; The initiator of application program.
In one embodiment of the invention, in the device shown in Fig. 4, dissimilar resource comprise following in one or more: cpu resource, memory source, hard disk resources, I/O resource.
In one embodiment of the invention, in the device shown in Fig. 4, condition judgment unit 410, the time that the sense cycle being suitable for having judged whether to preset is corresponding; Or, judge whether all processes on target device reach predetermined threshold value to specifying total occupancy of one or more resource type; Or all processes on monitoring objective equipment, to the variable condition of total occupancy of one or more resource type of appointment, judge whether the changing value of total occupancy within the preset length time exceedes certain value; Or, judge whether target device traffic failure occurs.
In one embodiment of the invention, in said apparatus, condition judgment unit 410, is suitable for, when having arrived time corresponding to the sense cycle preset, determining that the monitoring condition preset meets; Or, when all processes on target device are to when specifying total occupancy of one or more resource type to reach predetermined threshold value, determine that the monitoring condition preset meets; Or, when all processes on target device are to when specifying the changing value of total occupancy within the preset length time of one or more resource type to exceed certain value, determine that the monitoring condition preset meets; Or, when target device generation traffic failure, determine that the monitoring condition preset meets.
In one embodiment of the invention, in the device shown in Fig. 4, monitoring processing unit 420, is suitable for the file under the assigned catalogue on reading target device, obtains the mark of process from this file.
In one embodiment of the invention, said apparatus comprises further: alert process unit, is suitable for default application resource and takies threshold list; Take threshold list according to the information in each list and application resource, judge whether trigger alarm, if it is carry out alert process; Application resource takies the corresponding multiple resource occupation threshold values saving application program and correspondence in threshold list, wherein multiple resource occupation threshold value corresponding dissimilar resource respectively.
In one embodiment of the invention, in said apparatus, alert process unit, be suitable for for each process in each list, the application query application resource corresponding according to this process takies threshold list, obtaining the resource occupation threshold value of respective type resource, judge whether this process resource occupation amount is in the list more than or equal to and inquire about the resource occupation threshold value that obtains, is then trigger alarm.
In one embodiment of the invention, in said apparatus, alert process unit, is suitable for by specifying channel to send warning message; One or more are as follows comprised: display comprises the bullet window of warning message on the target device by appointment channel transmission warning message; Warning message is sent to appointment e-mail address by e-mail system; Warning message is sent to the instant messaging account of specifying by instant communicating system; Warning message is sent to the phone number of specifying by SMS; By reporting warning message to this given server with being connected between given server.
It should be noted that, the embodiment of above each device embodiment is identical with the embodiment of aforementioned corresponding method embodiment, does not repeat them here.
In sum, technical scheme of the present invention, first judge whether to meet the monitoring condition preset, the mark of all processes on target device is obtained further when satisfying condition, and obtain the occupied information of each process to dissimilar resource, by generating the mode of occupied information list, the occupied information of each process to all kinds resource is shown.This technical scheme can represent all processes on target device all sidedly and take situation to various dissimilar resource, user can be monitored target device better, process further to the abnormal conditions that may exist.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.
It should be noted that:
Intrinsic not relevant to any certain computer, virtual bench or miscellaneous equipment with display at this algorithm provided.Various fexible unit also can with use based on together with this teaching.According to description above, the structure constructed required by this kind of device is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the device of the monitoring objective equipment of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses a kind of method of A1, monitoring objective equipment, comprising:
Judge whether to meet the monitoring condition preset;
If met, obtain the mark of all processes on target device;
Obtain the occupied information of each process to dissimilar resource;
For every types of resources, generate the occupied information list of each process to the type resource;
Show each list generated.
A2, method as described in A1, wherein, the method comprises further:
According to each process, each process is sorted by the occupancy of the type resource in each list.
A3, method as described in A1, also comprise:
For every type resource corresponding to list, each process in this list is divided into multiple groups according to clooating sequence, in lists the process different colours of difference group is carried out mark show.
A4, method as described in A1, wherein, each list that described displaying generates comprises:
Preset the corresponding relation between different quick marks and each list;
When fast identifying for one that receives user's input, show this list that fast mark is corresponding.
A5, method as described in A1, also comprise:
Obtain the relevant information of application program corresponding to each process;
When receiving user and select the instruction of a process in shown list, show that this is by the relevant information of application program corresponding to the process selected.
A6, method as described in A5, wherein, the relevant information of the application program of described correspondence comprise following in one or more:
The title of application program;
The functional circuit information of application program;
The start-up time of application program;
The initiator of application program.
A7, method as described in A1, wherein, described dissimilar resource comprise following in one or more:
Cpu resource, memory source, hard disk resources, I/O resource.
A8, method as described in A1, wherein, described in judge whether that meeting the monitoring condition preset comprises:
Judge whether the time that default sense cycle is corresponding;
Or,
Judge whether all processes on described target device reach predetermined threshold value to specifying total occupancy of one or more resource type;
Or,
The all processes on described target device of monitoring to the variable condition of total occupancy of specifying one or more resource type, when judging whether the changing value of described total occupancy within the preset length time exceedes certain value;
Or,
Judge whether described target device traffic failure occurs.
A9, method as described in A8, wherein,
If arrived the time that the sense cycle preset is corresponding, then described default monitoring condition has met;
Or,
If all processes on described target device reach predetermined threshold value to specifying total occupancy of one or more resource type, then described default monitoring condition meets;
Or,
If all processes on described target device exceed certain value to specifying the changing value of total occupancy within the preset length time of one or more resource type, then described default monitoring condition meets;
Or,
If described target device generation traffic failure, then described default monitoring condition meets.
A10, method as described in A1, wherein, the mark of all processes on described acquisition target device comprises:
Read the file under the assigned catalogue on target device, from this file, obtain the mark of process.
A11, method according to any one of A1-A10, also comprise:
Default application resource takies threshold list; The corresponding multiple resource occupation threshold values saving application program and correspondence in this list, wherein said multiple resource occupation threshold value corresponding dissimilar resource respectively;
Take threshold list according to the information in each list and described application resource, judge whether trigger alarm, if it is carry out alert process.
A12, method as described in A11, wherein, describedly take threshold list according to the information in each list and described application resource, judge whether that trigger alarm comprises:
For each process in each list, threshold list is taken according to application resource described in the application queries that this process is corresponding, obtain the resource occupation threshold value of respective type resource, judging whether this process resource occupation amount is in the list more than or equal to and inquire about the resource occupation threshold value that obtains, is then trigger alarm.
A13, method as described in A11, wherein, described in carry out alert process and comprise: send warning message by specifying channel;
Described by specify channel send warning message comprise following in one or more: display comprises the bullet window of warning message on the target device; Warning message is sent to appointment e-mail address by e-mail system; Warning message is sent to the instant messaging account of specifying by instant communicating system; Warning message is sent to the phone number of specifying by SMS; By reporting warning message to this given server with being connected between given server.
The invention also discloses the device of B14, a kind of monitoring objective equipment, comprising:
Condition judgment unit, is suitable for judging whether to meet presetting monitoring condition;
Monitoring processing unit, is suitable for when described condition judgment unit is judged as meeting pre-conditioned, obtains the mark of all processes on target device; Obtain the occupied information of each process to dissimilar resource; For every types of resources, generate the occupied information list of each process to the type resource;
Display unit, is suitable for showing each list generated.
B15, device as described in B14, wherein,
Described monitoring processing unit, is suitable for each process being sorted according to the occupancy of each process to the type resource in each list.
B16, device as described in B14, wherein,
Described display unit, is also suitable for, for the list corresponding to the resource of every type, each process in this list being divided into multiple groups according to clooating sequence, in lists the process different colours of difference group is carried out mark and shows.
B17, device as described in B14, wherein,
Described display unit, is suitable for presetting the corresponding relation between different quick marks and each list; When fast identifying for one that receives user's input, show this list that fast mark is corresponding.
B18, device as described in B14, wherein,
Described monitoring processing unit, is further adapted for the relevant information obtaining application program corresponding to each process;
Described display unit, is further adapted for when receiving user and select the instruction of a process in shown list, shows that this is by the relevant information of application program corresponding to the process selected.
B19, device as described in B18, wherein, the relevant information of the application program of described correspondence comprise following in one or more:
The title of application program;
The functional circuit information of application program;
The start-up time of application program;
The initiator of application program.
B20, device as described in B14, wherein, described dissimilar resource comprise following in one or more: cpu resource, memory source, hard disk resources, I/O resource.
B21, device as described in B14, wherein,
Described condition judgment unit, the time that the sense cycle being suitable for having judged whether to preset is corresponding; Or, judge whether all processes on described target device reach predetermined threshold value to specifying total occupancy of one or more resource type; Or all processes on described target device of monitoring, to the variable condition of total occupancy of specifying one or more resource type, judge whether the changing value of described total occupancy within the preset length time exceedes certain value; Or, judge whether described target device traffic failure occurs.
B22, device as described in B21, wherein,
Described condition judgment unit, is suitable for, when having arrived time corresponding to the sense cycle preset, determining that described default monitoring condition meets; Or, when all processes on described target device are to when specifying total occupancy of one or more resource type to reach predetermined threshold value, determine that described default monitoring condition meets; Or, when all processes on described target device are to when specifying the changing value of total occupancy within the preset length time of one or more resource type to exceed certain value, determine that described default monitoring condition meets; Or, when described target device generation traffic failure, determine that described default monitoring condition meets.
B23, device as described in B14, wherein,
Described monitoring processing unit, is suitable for the file under the assigned catalogue on reading target device, obtains the mark of process from this file.
B24, device according to any one of B14-B23, comprise further:
Alert process unit, is suitable for default application resource and takies threshold list; Take threshold list according to the information in each list and described application resource, judge whether trigger alarm, if it is carry out alert process;
Described application resource takies the corresponding multiple resource occupation threshold values saving application program and correspondence in threshold list, wherein said multiple resource occupation threshold value corresponding dissimilar resource respectively.
B25, device as described in B24, wherein,
Described alert process unit, be suitable for for each process in each list, threshold list is taken according to application resource described in the application query that this process is corresponding, obtain the resource occupation threshold value of respective type resource, judging whether this process resource occupation amount is in the list more than or equal to and inquire about the resource occupation threshold value that obtains, is then trigger alarm.
B26, device as described in B24, wherein,
Described alert process unit, is suitable for by specifying channel to send warning message;
Described by specify channel send warning message comprise following in one or more: display comprises the bullet window of warning message on the target device; Warning message is sent to appointment e-mail address by e-mail system; Warning message is sent to the instant messaging account of specifying by instant communicating system; Warning message is sent to the phone number of specifying by SMS; By reporting warning message to this given server with being connected between given server.

Claims (10)

1. a method for monitoring objective equipment, comprising:
Judge whether to meet the monitoring condition preset;
If met, obtain the mark of all processes on target device;
Obtain the occupied information of each process to dissimilar resource;
For every types of resources, generate the occupied information list of each process to the type resource;
Show each list generated.
2. the method for claim 1, wherein the method comprises further:
According to each process, each process is sorted by the occupancy of the type resource in each list.
3. the method for claim 1, also comprises:
For every type resource corresponding to list, each process in this list is divided into multiple groups according to clooating sequence, in lists the process different colours of difference group is carried out mark show.
4. each list that the method for claim 1, wherein described displaying generates comprises:
Preset the corresponding relation between different quick marks and each list;
When fast identifying for one that receives user's input, show this list that fast mark is corresponding.
5. the method for claim 1, also comprises:
Obtain the relevant information of application program corresponding to each process;
When receiving user and select the instruction of a process in shown list, show that this is by the relevant information of application program corresponding to the process selected.
6. a device for monitoring objective equipment, comprising:
Condition judgment unit, is suitable for judging whether to meet presetting monitoring condition;
Monitoring processing unit, is suitable for when described condition judgment unit is judged as meeting pre-conditioned, obtains the mark of all processes on target device; Obtain the occupied information of each process to dissimilar resource; For every types of resources, generate the occupied information list of each process to the type resource;
Display unit, is suitable for showing each list generated.
7. device as claimed in claim 6, wherein,
Described monitoring processing unit, is suitable for each process being sorted according to the occupancy of each process to the type resource in each list.
8. device as claimed in claim 6, wherein,
Described display unit, is also suitable for, for the list corresponding to the resource of every type, each process in this list being divided into multiple groups according to clooating sequence, in lists the process different colours of difference group is carried out mark and shows.
9. device as claimed in claim 6, wherein,
Described display unit, is suitable for presetting the corresponding relation between different quick marks and each list; When fast identifying for one that receives user's input, show this list that fast mark is corresponding.
10. device as claimed in claim 6, wherein,
Described monitoring processing unit, is further adapted for the relevant information obtaining application program corresponding to each process;
Described display unit, is further adapted for when receiving user and select the instruction of a process in shown list, shows that this is by the relevant information of application program corresponding to the process selected.
CN201510917487.4A 2015-12-10 2015-12-10 Method and equipment for monitoring target device Pending CN105528277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510917487.4A CN105528277A (en) 2015-12-10 2015-12-10 Method and equipment for monitoring target device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510917487.4A CN105528277A (en) 2015-12-10 2015-12-10 Method and equipment for monitoring target device

Publications (1)

Publication Number Publication Date
CN105528277A true CN105528277A (en) 2016-04-27

Family

ID=55770520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510917487.4A Pending CN105528277A (en) 2015-12-10 2015-12-10 Method and equipment for monitoring target device

Country Status (1)

Country Link
CN (1) CN105528277A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984371A (en) * 2017-07-12 2018-12-11 北京视联动力国际信息技术有限公司 A kind of performance display methods, device and electronic equipment
CN109347876A (en) * 2018-11-29 2019-02-15 深圳市网心科技有限公司 A kind of safety defense method and relevant apparatus
CN109412884A (en) * 2018-08-21 2019-03-01 平安科技(深圳)有限公司 Performance data acquisition method, device and storage medium, the server of component
CN109542714A (en) * 2018-09-29 2019-03-29 中国平安人寿保险股份有限公司 Method for monitoring application program and device, computer installation and computer storage medium
CN109862379A (en) * 2018-12-29 2019-06-07 北京奇艺世纪科技有限公司 A kind of log processing method, device, mobile terminal and storage medium
CN109982144A (en) * 2019-03-12 2019-07-05 四川长虹电器股份有限公司 Monitor and judge the automated testing method that application process CPU occupies superelevation and alarms
CN110795323A (en) * 2019-10-29 2020-02-14 Oppo广东移动通信有限公司 Load statistical method, device, storage medium and electronic equipment
CN110908856A (en) * 2018-09-14 2020-03-24 株式会社安川电机 Resource monitoring system, resource monitoring method, and program
CN111124627A (en) * 2018-11-01 2020-05-08 百度在线网络技术(北京)有限公司 Method, device, terminal and storage medium for determining application program caller
CN111651323A (en) * 2020-05-29 2020-09-11 山东中创软件商用中间件股份有限公司 Application software monitoring method, device and equipment
CN112328446A (en) * 2020-10-28 2021-02-05 成都安易迅科技有限公司 Program process monitoring method and device and computer equipment
CN113783796A (en) * 2021-07-22 2021-12-10 许继集团有限公司 Communication method and device for current conversion system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100125683A1 (en) * 2008-11-20 2010-05-20 Soeda Takayoshi Method of monitoring device forming information processing system, information apparatus and information processing system
CN103166773A (en) * 2011-12-09 2013-06-19 国家电网公司 Method and system for monitoring operation state of server
CN103970596A (en) * 2014-03-17 2014-08-06 珠海市君天电子科技有限公司 Process management method and terminal
CN104461714A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for processing progresses of server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100125683A1 (en) * 2008-11-20 2010-05-20 Soeda Takayoshi Method of monitoring device forming information processing system, information apparatus and information processing system
CN103166773A (en) * 2011-12-09 2013-06-19 国家电网公司 Method and system for monitoring operation state of server
CN103970596A (en) * 2014-03-17 2014-08-06 珠海市君天电子科技有限公司 Process management method and terminal
CN104461714A (en) * 2014-12-24 2015-03-25 北京奇虎科技有限公司 Method and device for processing progresses of server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
APPLE支持: "OS X Mavericks:关于活动监视器", 《HTTPS://SUPPORT.APPLE.COM/ZH-CN/HT5890》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984371A (en) * 2017-07-12 2018-12-11 北京视联动力国际信息技术有限公司 A kind of performance display methods, device and electronic equipment
CN109412884A (en) * 2018-08-21 2019-03-01 平安科技(深圳)有限公司 Performance data acquisition method, device and storage medium, the server of component
CN110908856A (en) * 2018-09-14 2020-03-24 株式会社安川电机 Resource monitoring system, resource monitoring method, and program
CN109542714A (en) * 2018-09-29 2019-03-29 中国平安人寿保险股份有限公司 Method for monitoring application program and device, computer installation and computer storage medium
CN111124627A (en) * 2018-11-01 2020-05-08 百度在线网络技术(北京)有限公司 Method, device, terminal and storage medium for determining application program caller
CN109347876A (en) * 2018-11-29 2019-02-15 深圳市网心科技有限公司 A kind of safety defense method and relevant apparatus
CN109347876B (en) * 2018-11-29 2022-04-01 深圳市网心科技有限公司 Security defense method and related device
CN109862379A (en) * 2018-12-29 2019-06-07 北京奇艺世纪科技有限公司 A kind of log processing method, device, mobile terminal and storage medium
CN109982144B (en) * 2019-03-12 2020-06-30 四川长虹电器股份有限公司 Automatic testing method for monitoring and judging CPU occupancy of application process and alarming
CN109982144A (en) * 2019-03-12 2019-07-05 四川长虹电器股份有限公司 Monitor and judge the automated testing method that application process CPU occupies superelevation and alarms
CN110795323A (en) * 2019-10-29 2020-02-14 Oppo广东移动通信有限公司 Load statistical method, device, storage medium and electronic equipment
CN111651323A (en) * 2020-05-29 2020-09-11 山东中创软件商用中间件股份有限公司 Application software monitoring method, device and equipment
CN112328446A (en) * 2020-10-28 2021-02-05 成都安易迅科技有限公司 Program process monitoring method and device and computer equipment
CN112328446B (en) * 2020-10-28 2024-04-30 成都安易迅科技有限公司 Program progress monitoring method and device and computer equipment
CN113783796A (en) * 2021-07-22 2021-12-10 许继集团有限公司 Communication method and device for current conversion system

Similar Documents

Publication Publication Date Title
CN105528277A (en) Method and equipment for monitoring target device
CN110213068B (en) Message middleware monitoring method and related equipment
EP3370391B1 (en) System for data cleansing based aggregation and prioritization of it asset field values from real-time event logs and method thereof
CN111178760B (en) Risk monitoring method, risk monitoring device, terminal equipment and computer readable storage medium
EP3832479B1 (en) Production line monitoring method and apparatus, and electronic device and readable storage medium
CN107483572A (en) The dispositions method and device of a kind of server
US20100204960A1 (en) Remote fault detection and condition monitoring
US9864350B2 (en) Events management
CN105183625A (en) Log data processing method and apparatus
CN112486629B (en) Micro-service state detection method, micro-service state detection device, electronic equipment and storage medium
CN110147241A (en) Program configures update method, electronic device, computer equipment and storage medium
CN105808407A (en) Equipment management method, equipment and equipment management controller
CN105549508A (en) Alarm method based on information combination and apparatus thereof
CN111444067A (en) Rule engine-based configuration system monitoring method, device and equipment
CN105787133A (en) Method and device for filtering advertisement information
CN105228107A (en) A kind of vehicle abnormality processing method and relevant device
CN110083575A (en) Fulfilling monitoring method, device, equipment and computer readable storage medium
CN104468222A (en) Method, device and system for reporting log information
CN104468207A (en) Terminal management method, device and system
CN112034819A (en) Vehicle diagnosis method, vehicle diagnosis device and diagnosis equipment
CN104901833A (en) Method for finding abnormal device and device
CN102281260B (en) Generating method and server of monitoring rule
CN115174223B (en) Industrial control host safety protection method, system, intelligent terminal and storage medium
CN113835961B (en) Alarm information monitoring method, device, server and storage medium
CN113810457A (en) Method and device for reporting service access exception, readable storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 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: 20160427

RJ01 Rejection of invention patent application after publication