[go: up one dir, main page]

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
processes
resource
resources
target device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 a device for monitoring target equipment. The method includes: judging whether the preset monitoring condition is satisfied; if so, obtaining the identifiers of all processes on the target device; obtaining information on the occupation of different types of resources by each process; for each type of resource, generating a pair of each process A list of occupancy information for resources of this type; display each list generated. The technical solution can fully display the occupancy of various types of resources by all processes on the target device, so that the user can better monitor the target device and further handle possible abnormal situations.

Description

一种监控目标设备的方法和装置A method and device for monitoring target equipment

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种监控目标设备的方法和装置。The invention relates to the field of computer technology, in particular to a method and device for monitoring target equipment.

背景技术Background technique

了解当前使用的计算设备的运行状态是用户一个十分重要的需求,例如微软的Windows系统中的任务管理器就可以为户直观地为用户显示CPU、磁盘、网络和内存的使用状况。例如,图1示出了Windows系统中任务管理器的界面示意图。如图1所示,Windows系统中任务管理器可以展示进程标识pid,以及对应的CPU占用率和内存占用率,但是也仅限于这展示各个进程对这两种资源的占用信息,不够全面。It is a very important requirement for users to understand the operating status of the computing device currently in use. For example, the task manager in Microsoft Windows system can intuitively display the usage status of CPU, disk, network and memory for the user. For example, FIG. 1 shows a schematic diagram of an interface of a task manager in a Windows system. As shown in Figure 1, the task manager in the Windows system can display the process identifier pid, and the corresponding CPU usage rate and memory usage rate, but it is limited to displaying the occupation information of these two resources by each process, which is not comprehensive enough.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的监控目标设备的方法和装置。In view of the above problems, the present invention is proposed to provide a method and device for monitoring a target device that overcomes the above problems or at least partially solves the above problems.

依据本发明的一个方面,提供了一种监控目标设备的方法,包括:According to one aspect of the present invention, a method for monitoring a target device is provided, including:

判断是否满足预设的监控条件;Judging whether the preset monitoring conditions are met;

如果满足,获取目标设备上的所有进程的标识;If so, obtain the identities of all processes on the target device;

获取每个进程对不同类型资源的占用信息;Obtain information about the occupancy of different types of resources by each process;

对于每种类型资源,生成各进程对该类型资源的占用信息列表;For each type of resource, generate a list of occupancy information of the type of resource by each process;

展示所生成的各列表。Display each list generated.

可选地,该方法进一步包括:Optionally, the method further includes:

在每个列表中根据各进程对该类型资源的占用量将各进程进行排序。The processes are sorted in each list according to their usage of resources of that type.

可选地,该方法还包括:Optionally, the method also includes:

对于每种类型的资源所对应的列表,将该列表中的各进程按照排序顺序分为多个组,在列表中将不同组的进程用不同颜色进行标记展示。For the list corresponding to each type of resource, the processes in the list are divided into multiple groups according to the sort order, and the processes of different groups are marked and displayed in different colors in the list.

可选地,所述展示所生成的各列表包括:Optionally, each list generated by the display includes:

预设不同快捷标识和各列表之间的对应关系;Preset the corresponding relationship between different shortcut signs and lists;

当接收到用户输入的一个快捷标识时,展示该快捷标识对应的列表。When a shortcut identifier input by the user is received, a list corresponding to the shortcut identifier is displayed.

可选地,该方法还包括:Optionally, the method also includes:

获取各进程对应的应用程序的相关信息;Obtain relevant information about the application program corresponding to each process;

当接收到用户在所展示的一个列表中选择一个进程的指令时,展示该被选择的进程对应的应用程序的相关信息。When receiving an instruction from the user to select a process in the displayed list, relevant information of the application program corresponding to the selected process is displayed.

可选地,所述对应的应用程序的相关信息包括如下中的一种或多种:Optionally, the relevant information of the corresponding application program includes one or more of the following:

应用程序的名称;the name of the application;

应用程序的功能描述信息;Functional description information of the application;

应用程序的启动时间;The startup time of the application;

应用程序的启动者。The launcher of the application.

可选地,所述不同类型资源包括如下中的一种或多种:Optionally, the different types of resources include one or more of the following:

CPU资源、内存资源、硬盘资源、I/O资源。CPU resources, memory resources, hard disk resources, and I/O resources.

可选地,所述判断是否满足预设的监控条件包括:Optionally, the judging whether a preset monitoring condition is met includes:

判断是否到了预设的检测周期对应的时间;Judging whether the time corresponding to the preset detection cycle has arrived;

或者,or,

判断所述目标设备上的所有进程对指定一种或多种类型资源的总占用量是否达到了预设阈值;Judging whether the total occupancy of one or more types of resources by all processes on the target device reaches a preset threshold;

或者,or,

监测所述目标设备上的所有进程对指定一种或多种类型资源的总占用量的变化状态,判断所述总占用量在预设长度时间内的变化值是否超过一定值时;When monitoring the change status of the total occupancy of one or more types of resources by all processes on the target device, and judging whether the change value of the total occupancy exceeds a certain value within a preset length of time;

或者,or,

判断所述目标设备是否发生业务故障。It is judged whether the target device has a service failure.

可选地,若是到了预设的检测周期对应的时间,则所述预设的监控条件满足;Optionally, if the time corresponding to the preset detection period arrives, the preset monitoring condition is met;

或者,or,

若所述目标设备上的所有进程对指定一种或多种类型资源的总占用量达到了预设阈值,则所述预设的监控条件满足;If the total occupation of one or more types of resources by all processes on the target device reaches a preset threshold, the preset monitoring condition is met;

或者,or,

若所述目标设备上的所有进程对指定一种或多种类型资源的总占用量在预设长度时间内的变化值超过一定值,则所述预设的监控条件满足;If the change value of the total occupancy of one or more types of resources by all processes on the target device exceeds a certain value within a preset length of time, the preset monitoring condition is satisfied;

或者,or,

若所述目标设备发生业务故障,则所述预设的监控条件满足。If a service failure occurs on the target device, the preset monitoring condition is satisfied.

可选地,所述获取目标设备上的所有进程的标识包括:Optionally, said acquiring the identifiers of all processes on the target device includes:

读取目标设备上的指定目录下的文件,从该文件中获取进程的标识。Read the file in the specified directory on the target device, and get the process ID from the file.

可选地,该方法还包括:Optionally, the method also includes:

预设应用程序资源占用阈值列表;该列表中对应保存了应用程序和对应的多个资源占用阈值,其中所述多个资源占用阈值分别对应不同类型资源;A list of preset application resource occupation thresholds; the list stores corresponding application programs and corresponding multiple resource occupation thresholds, wherein the multiple resource occupation thresholds correspond to different types of resources respectively;

根据各列表中的信息以及所述应用程序资源占用阈值列表,判断是否触发报警,如果是则进行报警处理。According to the information in each list and the application resource occupation threshold list, it is judged whether an alarm is triggered, and if so, alarm processing is performed.

可选地,所述根据各列表中的信息以及所述应用程序资源占用阈值列表,判断是否触发报警包括:Optionally, the determining whether to trigger an alarm according to the information in each list and the application resource occupation threshold list includes:

对于每个列表中的每个进程,根据该进程对应的应用程序查询所述应用程序资源占用阈值列表,得到相应类型资源的资源占用阈值,判断该进程在该列表中的资源占用量是否大于或等于查询得到的资源占用阈值,是则触发报警。For each process in each list, query the application program resource occupation threshold list according to the application program corresponding to the process, obtain the resource occupation threshold value of the corresponding type of resource, and judge whether the resource occupation amount of the process in the list is greater than or It is equal to the resource occupation threshold obtained from the query, if it is, an alarm will be triggered.

可选地,所述进行报警处理包括:通过指定渠道发送报警信息;Optionally, the performing alarm processing includes: sending alarm information through a designated channel;

所述通过指定渠道发送报警信息包括如下中的一种或多种:在目标设备上显示包含报警信息的弹窗;通过电子邮件系统向指定电子邮件地址发送报警信息;通过即时通讯系统向指定的即时通讯账号发送报警信息;通过手机短信向指定的手机号码发送报警信息;通过与指定服务器之间连接向该指定服务器上报报警信息。The sending of the alarm information through the specified channel includes one or more of the following: displaying a pop-up window containing the alarm information on the target device; sending the alarm information to the specified email address through the email system; sending the alarm information to the specified email address through the instant messaging system. The instant messaging account sends the alarm information; sends the alarm information to the designated mobile phone number through the mobile phone text message; reports the alarm information to the designated server through the connection with the designated server.

依据本发明的另一方面,提供了一种监控目标设备的装置,包括:According to another aspect of the present invention, a device for monitoring a target device is provided, including:

条件判断单元,适于判断是否满足预设监控条件;A condition judging unit, adapted to judge whether a preset monitoring condition is met;

监控处理单元,适于在所述条件判断单元判断为满足预设条件时,获取目标设备上的所有进程的标识;获取每个进程对不同类型资源的占用信息;对于每种类型资源,生成各进程对该类型资源的占用信息列表;The monitoring and processing unit is adapted to obtain the identifiers of all processes on the target device when the condition judging unit judges that the preset condition is satisfied; obtain the occupancy information of each process for different types of resources; for each type of resource, generate each A list of process occupation information for this type of resource;

展示单元,适于展示所生成的各列表。A display unit is suitable for displaying each generated list.

可选地,所述监控处理单元,适于在每个列表中将各进程根据各进程对该类型资源的占用量进行排序。Optionally, the monitoring processing unit is adapted to sort the processes in each list according to the occupancy of the type of resources by the processes.

可选地,所述展示单元,还适于对于每种类型的资源所对应的列表,将该列表中的各进程按照排序顺序分为多个组,在列表中将不同组的进程用不同颜色进行标记展示。Optionally, the display unit is further adapted to divide the processes in the list into multiple groups according to the sort order for the list corresponding to each type of resource, and use different colors for the processes of different groups in the list Make a markup display.

可选地,所述展示单元,适于预设不同快捷标识和各列表之间的对应关系;当接收到用户输入的一个快捷标识时,展示该快捷标识对应的列表。Optionally, the display unit is adapted to preset correspondence between different shortcut identifiers and lists; when receiving a shortcut identifier input by a user, display the list corresponding to the shortcut identifier.

可选地,所述监控处理单元,进一步适于获取各进程对应的应用程序的相关信息;Optionally, the monitoring and processing unit is further adapted to obtain relevant information of application programs corresponding to each process;

所述展示单元,进一步适于当接收到用户在所展示的一个列表中选择一个进程的指令时,展示该被选择的进程对应的应用程序的相关信息。The display unit is further adapted to display relevant information of the application program corresponding to the selected process when receiving an instruction from the user to select a process in the displayed list.

可选地,所述对应的应用程序的相关信息包括如下中的一种或多种:Optionally, the relevant information of the corresponding application program includes one or more of the following:

应用程序的名称;the name of the application;

应用程序的功能描述信息;Functional description information of the application;

应用程序的启动时间;The startup time of the application;

应用程序的启动者。The launcher of the application.

可选地,所述不同类型资源包括如下中的一种或多种:CPU资源、内存资源、硬盘资源、I/O资源。Optionally, the different types of resources include one or more of the following: CPU resources, memory resources, hard disk resources, and I/O resources.

可选地,所述条件判断单元,适于判断是否到了预设的检测周期对应的时间;或者,判断所述目标设备上的所有进程对指定一种或多种类型资源的总占用量是否达到了预设阈值;或者,监测所述目标设备上的所有进程对指定一种或多种类型资源的总占用量的变化状态,判断所述总占用量在预设长度时间内的变化值是否超过一定值;或者,判断所述目标设备是否发生业务故障。Optionally, the condition judging unit is adapted to judge whether the time corresponding to the preset detection period has arrived; or, judge whether the total occupancy of all processes on the target device for one or more types of resources reaches or, monitor the change status of the total occupancy of one or more types of resources by all processes on the target device, and determine whether the change value of the total occupancy within a preset length of time exceeds a certain value; or, determine whether a service failure occurs on the target device.

可选地,所述条件判断单元,适于在到了预设的检测周期对应的时间时,确定所述预设的监控条件满足;或者,当所述目标设备上的所有进程对指定一种或多种类型资源的总占用量达到了预设阈值时,确定所述预设的监控条件满足;或者,当所述目标设备上的所有进程对指定一种或多种类型资源的总占用量在预设长度时间内的变化值超过一定值时,确定所述预设的监控条件满足;或者,当所述目标设备发生业务故障时,确定所述预设的监控条件满足。Optionally, the condition judging unit is adapted to determine that the preset monitoring condition is satisfied when the time corresponding to the preset detection period arrives; or, when all processes on the target device specify one or When the total occupancy of multiple types of resources reaches a preset threshold, it is determined that the preset monitoring condition is satisfied; or, when the total occupancy of all processes on the target device for the specified one or more types of resources is within When the change value within a preset length of time exceeds a certain value, it is determined that the preset monitoring condition is satisfied; or, when a service failure occurs on the target device, it is determined that the preset monitoring condition is satisfied.

可选地,所述监控处理单元,适于读取目标设备上的指定目录下的文件,从该文件中获取进程的标识。Optionally, the monitoring processing unit is adapted to read a file in a specified directory on the target device, and obtain the process identifier from the file.

可选地,上述装置进一步包括:Optionally, the above-mentioned device further includes:

报警处理单元,适于预设应用程序资源占用阈值列表;根据各列表中的信息以及所述应用程序资源占用阈值列表,判断是否触发报警,如果是则进行报警处理;The alarm processing unit is adapted to preset the application resource occupation threshold list; according to the information in each list and the application resource occupation threshold list, it is judged whether an alarm is triggered, and if so, alarm processing is performed;

所述应用程序资源占用阈值列表中对应保存了应用程序和对应的多个资源占用阈值,其中所述多个资源占用阈值分别对应不同类型资源。The application program resource occupation threshold list correspondingly stores application programs and corresponding resource occupation thresholds, wherein the multiple resource occupation thresholds correspond to different types of resources respectively.

可选地,所述报警处理单元,适于对于每个列表中的每个进程,根据该进程对应的应用查询所述应用程序资源占用阈值列表,得到相应类型资源的资源占用阈值,判断该进程在该列表中的资源占用量是否大于或等于查询得到的资源占用阈值,是则触发报警。Optionally, the alarm processing unit is adapted to, for each process in each list, query the application resource occupation threshold list according to the application corresponding to the process, obtain the resource occupation threshold of the corresponding type of resource, and judge the process If the resource usage in the list is greater than or equal to the resource usage threshold obtained from the query, an alarm is triggered.

可选地,所述报警处理单元,适于通过指定渠道发送报警信息;Optionally, the alarm processing unit is adapted to send alarm information through a designated channel;

所述通过指定渠道发送报警信息包括如下中的一种或多种:在目标设备上显示包含报警信息的弹窗;通过电子邮件系统向指定电子邮件地址发送报警信息;通过即时通讯系统向指定的即时通讯账号发送报警信息;通过手机短信向指定的手机号码发送报警信息;通过与指定服务器之间连接向该指定服务器上报报警信息。The sending of the alarm information through the specified channel includes one or more of the following: displaying a pop-up window containing the alarm information on the target device; sending the alarm information to the specified email address through the email system; sending the alarm information to the specified email address through the instant messaging system. The instant messaging account sends the alarm information; sends the alarm information to the designated mobile phone number through the mobile phone text message; reports the alarm information to the designated server through the connection with the designated server.

由上述可知,根据本发明的技术方案,首先判断是否满足预设的监控条件,在满足条件的情况下进一步获取目标设备上的所有进程的标识,并获取每个进程对不同类型资源的占用信息,通过生成占用信息列表的方式,对每个进程对各种类型资源的占用信息进行展示。该技术方案可以全面地展现目标设备上所有进程对各种不同类型资源的占用情况,使得用户可以更好地对目标设备进行监控,进一步对可能存在的异常情况进行处理。As can be seen from the above, according to the technical solution of the present invention, it is first judged whether the preset monitoring conditions are met, and if the conditions are met, the identifiers of all processes on the target device are further obtained, and the occupancy information of each process on different types of resources is obtained , by generating a list of occupation information to display the occupation information of various types of resources for each process. The technical solution can fully display the occupancy of various types of resources by all processes on the target device, so that the user can better monitor the target device and further handle possible abnormal situations.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1示出了Windows系统中任务管理器的界面示意图;Fig. 1 shows the interface diagram of task manager in Windows system;

图2示出了根据本发明一个实施例的一种监控目标设备的方法的流程示意图;FIG. 2 shows a schematic flowchart of a method for monitoring a target device according to an embodiment of the present invention;

图3示出了CPU资源、内存资源、交换内存资源、网络资源和I/O资源占用信息列表的界面示意图;FIG. 3 shows a schematic interface diagram of CPU resource, memory resource, swap memory resource, network resource and I/O resource occupancy information list;

图4示出了根据本发明一个实施例的一种监控目标设备的装置的结构示意图。Fig. 4 shows a schematic structural diagram of an apparatus for monitoring a target device according to an embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

图2示出了根据本发明一个实施例的一种监控目标设备的方法的流程示意图,如图2所示,该方法包括:FIG. 2 shows a schematic flowchart of a method for monitoring a target device according to an embodiment of the present invention. As shown in FIG. 2, the method includes:

步骤S210,判断是否满足预设的监控条件。Step S210, judging whether a preset monitoring condition is met.

步骤S220,如果满足,获取目标设备上的所有进程的标识。Step S220, if it is satisfied, obtain the identifiers of all processes on the target device.

步骤S230,获取每个进程对不同类型资源的占用信息。Step S230, acquiring information about the occupation of different types of resources by each process.

步骤S240,对于每种类型资源,生成各进程对该类型资源的占用信息列表。Step S240, for each type of resource, generate a list of occupancy information of the type of resource by each process.

步骤S250,展示所生成的各列表。Step S250, displaying the generated lists.

可见,图2所示的方法,首先判断是否满足预设的监控条件,在满足条件的情况下进一步获取目标设备上的所有进程的标识,并获取每个进程对不同类型资源的占用信息,通过生成占用信息列表的方式,对每个进程对各种类型资源的占用信息进行展示。该技术方案可以全面地展现目标设备上所有进程对各种不同类型资源的占用情况,使得用户可以更好地对目标设备进行监控,进一步对可能存在的异常情况进行处理。It can be seen that the method shown in Figure 2 first judges whether the preset monitoring conditions are met, and further obtains the identifiers of all processes on the target device if the conditions are met, and obtains the occupancy information of each process for different types of resources, through The way to generate the occupancy information list is to display the occupancy information of various types of resources for each process. The technical solution can fully display the occupancy of various types of resources by all processes on the target device, so that the user can better monitor the target device and further handle possible abnormal situations.

在本发明的一个实施例中,图2所示的方法进一步包括:在每个列表中根据各进程对该类型资源的占用量将各进程进行排序。In an embodiment of the present invention, the method shown in FIG. 2 further includes: sorting the processes in each list according to the occupation of the resource of the type by the processes.

其中,可以将各进程对该类型资源的占用量从高到低或从低到高进行排序,方便用户查看是否可以清理某些进程,或者发现某些进程可能存在异常,如资源占用量明显过高。Among them, the resource usage of each process can be sorted from high to low or from low to high, so that users can check whether some processes can be cleaned up, or find that some processes may have abnormalities, such as resource usage is obviously too high. high.

在本发明的一个实施例中,图2所示的方法还包括:对于每种类型的资源所对应的列表,将该列表中的各进程按照排序顺序分为多个组,在列表中将不同组的进程用不同颜色进行标记展示。In an embodiment of the present invention, the method shown in FIG. 2 further includes: for the list corresponding to each type of resource, divide the processes in the list into multiple groups according to the sort order, and divide the processes in the list into different groups. The progress of the group is marked with different colors.

例如,排序顺序为对该列表对应类型的资源的占用量由高到低进行的排序,则可以将排序前3的进程进行标红警示,提示用户这些进程可能存在问题;将排序处于后5%的进程进行标灰处理,提示用户这些进程通常不会存在问题,从而大大地方便了用户的查看,更有效率。For example, if the sorting order is to sort the resource usage of the corresponding type of the list from high to low, you can mark the top 3 processes in red as a warning to remind users that there may be problems with these processes; put the sorting in the bottom 5% The process is grayed out to remind the user that there is usually no problem with these processes, which greatly facilitates the user's viewing and is more efficient.

在本发明的一个实施例中,图2所示的方法中,展示所生成的各列表包括:预设不同快捷标识和各列表之间的对应关系;当接收到用户输入的一个快捷标识时,展示该快捷标识对应的列表。In one embodiment of the present invention, in the method shown in FIG. 2 , displaying the generated lists includes: preset the corresponding relationship between different shortcut identifiers and each list; when receiving a shortcut identifier input by the user, Display the list corresponding to the shortcut identifier.

例如,用户希望查看各进程对磁盘的I/O(写入/读取)情况,可以将I/O资源列表的快捷标识设置为i,当接收到用户输入i时展示I/O资源的占用信息列表。具体地,可以通过为用户提供快捷标识输入接口来接受用户输入的快捷标识。For example, if the user wants to check the I/O (write/read) status of each process to the disk, the shortcut identifier of the I/O resource list can be set to i, and the occupation of the I/O resource will be displayed when the user input i is received list of information. Specifically, the shortcut identifier input by the user may be accepted by providing the user with a shortcut identifier input interface.

在本发明的一个实施例中,图2所示的方法还包括:获取各进程对应的应用程序的相关信息;当接收到用户在所展示的一个列表中选择一个进程的指令时,展示该被选择的进程对应的应用程序的相关信息。In one embodiment of the present invention, the method shown in FIG. 2 further includes: obtaining information about the application corresponding to each process; when receiving an instruction from the user to select a process in a displayed list, displaying the Information about the application corresponding to the selected process.

一个应用程序可能同时启动多个进程,同时,用户也可能希望得知正在查看的进程是由哪个应用程序启动的。具体地,应用程序的相关信息可以包括如下中的一种或多种:应用程序的名称;应用程序的功能描述信息;应用程序的启动时间;应用程序的启动者。An application may start multiple processes at the same time, and the user may also want to know which application started the process being viewed. Specifically, the relevant information of the application program may include one or more of the following: the name of the application program; the function description information of the application program; the start time of the application program; the initiator of the application program.

这样,用户可以在资源的占用信息列表中看到各个进程对该资源的占用情况,既简洁又直观;而用户希望查看其中一个具体进程的情况是,在接收到用户在所展示的一个列表中选择一个进程的指令时可以详细地为用户展现该进程对应的应用程序的名称、功能描述信息、启动时间以及启动者等,方便用户根据这些信息做出进一步的判断。In this way, the user can see the occupancy of the resource by each process in the resource occupancy information list, which is concise and intuitive; when the user wants to view one of the specific processes, after receiving the information in a list displayed by the user When selecting an instruction of a process, the user can be presented with the name of the application program corresponding to the process, the function description information, the start time and the initiator, etc. in detail, so that the user can make further judgments based on these information.

在本发明的一个实施例中,图2所示的方法中,不同类型资源包括如下中的一种或多种:CPU资源、内存资源、硬盘资源、I/O资源。In an embodiment of the present invention, in the method shown in FIG. 2 , different types of resources include one or more of the following: CPU resources, memory resources, hard disk resources, and I/O resources.

例如,在Linux系统中,通过读取/proc/stat、/proc/<pid>/stat、/proc/<pid>/task/<tid>/stat以及/proc/cpuinfo这几个文件可以对应获取总的CPU时间、进程的CPU时间、线程的CPU时间以及CPU的个数的信息,然后通过一定的算法如采样两个足够短的时间间隔的CPU快照与进程快照来计算进程的CPU资源占用量;通过ps命令获取对应进程pid对应的内存资源占用量;通过读取/proc/pid/io文件获取ioread,iowrite,perread,perwrite的值并计算得出进程的I/O资源占用量,等等。例如,图3示出了CPU资源、内存资源、交换内存资源、网络资源和I/O资源占用信息列表的界面示意图。For example, in the Linux system, by reading the files /proc/stat, /proc/<pid>/stat, /proc/<pid>/task/<tid>/stat and /proc/cpuinfo, you can obtain the corresponding The total CPU time, the CPU time of the process, the CPU time of the thread, and the number of CPUs, and then use a certain algorithm such as sampling two CPU snapshots and process snapshots with a sufficiently short time interval to calculate the CPU resource usage of the process ; Obtain the memory resource usage corresponding to the process pid through the ps command; obtain the values of ioread, iowrite, perread, and perwrite by reading the /proc/pid/io file and calculate the I/O resource usage of the process, etc. . For example, FIG. 3 shows a schematic interface diagram of a CPU resource, memory resource, swap memory resource, network resource and I/O resource occupancy information list.

在本发明的一个实施例中,图2所示的方法中,判断是否满足预设的监控条件包括:判断是否到了预设的检测周期对应的时间;或者,判断目标设备上的所有进程对指定一种或多种类型资源的总占用量是否达到了预设阈值;或者,监测目标设备上的所有进程对指定一种或多种类型资源的总占用量的变化状态,判断总占用量在预设长度时间内的变化值是否超过一定值时;或者,判断目标设备是否发生业务故障。In one embodiment of the present invention, in the method shown in FIG. 2 , judging whether the preset monitoring condition is met includes: judging whether the time corresponding to the preset detection cycle has arrived; or judging that all processes on the target device Whether the total occupancy of one or more types of resources has reached the preset threshold; or, monitor the change status of the total occupancy of one or more types of resources by all processes on the target device, and determine whether the total occupancy is within the preset threshold. Whether the change value within a set length of time exceeds a certain value; or, determine whether a service failure occurs on the target device.

具体地,在本发明的一个实施例中,上述方法中,若是到了预设的检测周期对应的时间,则预设的监控条件满足;或者,若目标设备上的所有进程对指定一种或多种类型资源的总占用量达到了预设阈值,则预设的监控条件满足;或者,若目标设备上的所有进程对指定一种或多种类型资源的总占用量在预设长度时间内的变化值超过一定值,则预设的监控条件满足;或者,若目标设备发生业务故障,则预设的监控条件满足。Specifically, in one embodiment of the present invention, in the above method, if the time corresponding to the preset detection period arrives, the preset monitoring condition is satisfied; or, if all processes on the target device specify one or more If the total occupancy of one or more types of resources reaches the preset threshold, the preset monitoring conditions are met; If the change value exceeds a certain value, the preset monitoring condition is satisfied; or, if the target device has a service failure, the preset monitoring condition is satisfied.

例如,根据用户需求,每隔一小时对目标设备进行监控,则可以设置相应的装置对是否到达了预设周期对应的时间进行判断;或者,目标设备上的所有进程对一种或多种类型资源的总占用量达到了预设阈值,如网络流量,如果目标机器上流量总和达到了饱和流量的80%一般就是有异常情况发生,此时可以对网卡进行如上述的监控。又例如,10分钟内目标机器上所有网卡的流量总和突然增多200兆,或者直接发生了网络故障,此时即是满足了预设的监控条件,需要进行监控。For example, according to user needs, if the target device is monitored every hour, a corresponding device can be set to judge whether the time corresponding to the preset period has been reached; or, all processes on the target device can monitor one or more types of The total resource usage reaches the preset threshold, such as network traffic. If the total traffic on the target machine reaches 80% of the saturated traffic, it is generally abnormal. At this time, the network card can be monitored as above. For another example, if the total traffic of all network cards on the target machine suddenly increases by 200 megabytes within 10 minutes, or a network failure occurs directly, then the preset monitoring conditions are met and monitoring is required.

在本发明的一个实施例中,图2所示的方法中,获取目标设备上的所有进程的标识包括:读取目标设备上的指定目录下的文件,从该文件中获取进程的标识。例如,在Linux系统中可以通过读取/proc/文件获取proc下的进程标识pid。In one embodiment of the present invention, in the method shown in FIG. 2 , obtaining identifiers of all processes on the target device includes: reading a file in a specified directory on the target device, and obtaining identifiers of processes from the file. For example, in a Linux system, the process identifier pid under proc can be obtained by reading the /proc/ file.

在本发明的一个实施例中,上述方法还包括:预设应用程序资源占用阈值列表;该列表中对应保存了应用程序和对应的多个资源占用阈值,其中多个资源占用阈值分别对应不同类型资源;根据各列表中的信息以及应用程序资源占用阈值列表,判断是否触发报警,如果是则进行报警处理。In an embodiment of the present invention, the above method further includes: preset application resource occupation threshold list; the list correspondingly saves application programs and corresponding multiple resource occupation thresholds, wherein the multiple resource occupation thresholds correspond to different types Resources: According to the information in each list and the application resource occupation threshold list, determine whether to trigger an alarm, and if so, perform alarm processing.

例如,目标设备上运行了5个进程,其中一个进程对CPU资源的占用率超过60%,而这5个进程对CPU资源的占用率也仅为75%。通常情况下用户会初步认定该CPU资源占用率超过60%的进程存在异常状况。但用户通过排查发现该进程对应的应用程序是目标设备上的一个大型数据库,该数据库正在正常工作,因此用户认定该进程正常。诸如此类的情形还有很多,因此用户可以根据实际需求,对应用程序资源占用阈值列表进行设置。For example, there are 5 processes running on the target device, one of which occupies more than 60% of the CPU resources, but these 5 processes only occupy 75% of the CPU resources. Usually, the user will preliminarily determine that there is an abnormality in the process whose CPU resource usage exceeds 60%. However, the user finds that the application corresponding to the process is a large database on the target device through investigation, and the database is working normally, so the user believes that the process is normal. There are many such situations, so the user can set the application resource occupation threshold list according to actual needs.

在本发明的一个实施例中,上述方法中,根据各列表中的信息以及应用程序资源占用阈值列表,判断是否触发报警包括:对于每个列表中的每个进程,根据该进程对应的应用程序查询应用程序资源占用阈值列表,得到相应类型资源的资源占用阈值,判断该进程在该列表中的资源占用量是否大于或等于查询得到的资源占用阈值,是则触发报警。In an embodiment of the present invention, in the above method, according to the information in each list and the application program resource occupation threshold list, judging whether to trigger an alarm includes: for each process in each list, according to the application program corresponding to the process Query the resource occupation threshold list of the application program to obtain the resource occupation threshold of the corresponding type of resource, and judge whether the resource occupation of the process in the list is greater than or equal to the resource occupation threshold obtained from the query, and if so, trigger an alarm.

例如,对于应用程序A,用户在用CPU资源占用阈值列表中将CPU资源占用阈值设置为70%,其中应用程序A启动了进程a、b、c,在CPU资源占用信息列表中查询到进程a的CPU资源率为30%,进程a的CPU资源率为10%,进程a的CPU资源率为25%,通过计算得知应用程序A的总CPU占用率达到了75%,此时大于查询得到的资源占用阈值,则触发报警。For example, for application A, the user sets the CPU resource occupation threshold to 70% in the CPU resource occupation threshold list, where application A starts processes a, b, and c, and finds process a in the CPU resource occupation information list The CPU resource rate of application A is 30%, the CPU resource rate of process a is 10%, and the CPU resource rate of process a is 25%. Through calculation, it is known that the total CPU usage rate of application A reaches 75%, which is greater than the query obtained If the resource usage threshold is exceeded, an alarm will be triggered.

在本发明的一个实施例中,上述方法中,进行报警处理包括:通过指定渠道发送报警信息;通过指定渠道发送报警信息包括如下中的一种或多种:在目标设备上显示包含报警信息的弹窗;通过电子邮件系统向指定电子邮件地址发送报警信息;通过即时通讯系统向指定的即时通讯账号发送报警信息;通过手机短信向指定的手机号码发送报警信息;通过与指定服务器之间连接向该指定服务器上报报警信息。In an embodiment of the present invention, in the above method, performing alarm processing includes: sending alarm information through a designated channel; sending alarm information through a designated channel includes one or more of the following: displaying a message containing the alarm information on the target device Pop-up window; send alarm information to the designated email address through the email system; send alarm information to the designated instant messaging account through the instant messaging system; send alarm information to the designated mobile phone number through mobile phone text messages; The designated server reports alarm information.

即使触发报警也不意味着目标设备一定出现问题,此时可能还需要运维人员进行进一步的人工排查,此时可以通过上述的多种渠道向运维人员发送报警信息。其中,用户可以根据需求自定义报警级别,对于不同的报警级别,可以通过不同的渠道发送报警信息。例如,较为严重的报警信息可以直接向指定手机号码发送,如通过短信的方式;而程度较轻的报警信息可以以电子邮件的方式通过电子邮件系统向指定电子邮件地址发送,等等。其中,报警信息可以包括触发报警的应用程序的资源占用信息等。Even if an alarm is triggered, it does not mean that there must be a problem with the target device. At this time, the operation and maintenance personnel may need to conduct further manual investigation. At this time, the alarm information can be sent to the operation and maintenance personnel through the above-mentioned various channels. Among them, users can customize the alarm level according to their needs. For different alarm levels, alarm information can be sent through different channels. For example, relatively serious alarm information can be sent directly to a designated mobile phone number, such as by means of a short message; and a relatively minor alarm information can be sent to a designated email address through the email system in the form of email, and so on. Wherein, the alarm information may include resource occupation information of the application triggering the alarm, and the like.

图4示出了根据本发明一个实施例的一种监控目标设备的装置的结构示意图,如图4所示,监控目标设备的装置400包括:FIG. 4 shows a schematic structural diagram of an apparatus for monitoring a target device according to an embodiment of the present invention. As shown in FIG. 4 , the apparatus 400 for monitoring a target device includes:

条件判断单元410,适于判断是否满足预设监控条件。The condition judging unit 410 is adapted to judge whether a preset monitoring condition is met.

监控处理单元420,适于在条件判断单元判断为满足预设条件时,获取目标设备上的所有进程的标识;获取每个进程对不同类型资源的占用信息;对于每种类型资源,生成各进程对该类型资源的占用信息列表。The monitoring processing unit 420 is adapted to obtain the identifiers of all processes on the target device when the condition judging unit judges that the preset condition is met; obtain the occupancy information of each process for different types of resources; for each type of resource, generate each process A list of occupancy information for this type of resource.

展示单元430,适于展示所生成的各列表。The display unit 430 is adapted to display the generated lists.

可见,图4所示的装置,通过各单元的相互配合,首先判断是否满足预设的监控条件,在满足条件的情况下进一步获取目标设备上的所有进程的标识,并获取每个进程对不同类型资源的占用信息,通过生成占用信息列表的方式,对每个进程对各种类型资源的占用信息进行展示。该技术方案可以全面地展现目标设备上所有进程对各种不同类型资源的占用情况,使得用户可以更好地对目标设备进行监控,进一步对可能存在的异常情况进行处理。It can be seen that the device shown in Figure 4, through the mutual cooperation of each unit, first judges whether the preset monitoring conditions are met, and further obtains the identifiers of all processes on the target device if the conditions are met, and obtains the identification of each process on the different The occupancy information of type resources displays the occupancy information of various types of resources for each process by generating an occupancy information list. The technical solution can fully display the occupancy of various types of resources by all processes on the target device, so that the user can better monitor the target device and further handle possible abnormal situations.

在本发明的一个实施例中,图4所示的装置中,监控处理单元420,适于在每个列表中将各进程根据各进程对该类型资源的占用量进行排序。In an embodiment of the present invention, in the apparatus shown in FIG. 4 , the monitoring processing unit 420 is adapted to sort the processes in each list according to the occupancy of the resources of the type by the processes.

在本发明的一个实施例中,图4所示的装置中,展示单元430,还适于对于每种类型的资源所对应的列表,将该列表中的各进程按照排序顺序分为多个组,在列表中将不同组的进程用不同颜色进行标记展示。In one embodiment of the present invention, in the device shown in FIG. 4 , the presentation unit 430 is further adapted to divide the processes in the list into multiple groups according to the sort order for the list corresponding to each type of resource. , and mark and display the processes of different groups with different colors in the list.

在本发明的一个实施例中,图4所示的装置中,展示单元430,适于预设不同快捷标识和各列表之间的对应关系;当接收到用户输入的一个快捷标识时,展示该快捷标识对应的列表。In one embodiment of the present invention, in the device shown in FIG. 4 , the display unit 430 is adapted to preset the corresponding relationship between different shortcut identifiers and lists; when receiving a shortcut identifier input by the user, display the A list corresponding to shortcut identifiers.

在本发明的一个实施例中,图4所示的装置中,监控处理单元420,进一步适于获取各进程对应的应用程序的相关信息;展示单元430,进一步适于当接收到用户在所展示的一个列表中选择一个进程的指令时,展示该被选择的进程对应的应用程序的相关信息。In one embodiment of the present invention, in the device shown in FIG. 4 , the monitoring processing unit 420 is further adapted to acquire the relevant information of the application program corresponding to each process; the presentation unit 430 is further adapted to receive the When an instruction of a process is selected in a list of , the relevant information of the application program corresponding to the selected process is displayed.

在本发明的一个实施例中,上述装置中,对应的应用程序的相关信息包括如下中的一种或多种:应用程序的名称;应用程序的功能描述信息;应用程序的启动时间;应用程序的启动者。In an embodiment of the present invention, in the above-mentioned device, the relevant information of the corresponding application program includes one or more of the following: the name of the application program; the function description information of the application program; the start time of the application program; the starter.

在本发明的一个实施例中,图4所示的装置中,不同类型资源包括如下中的一种或多种:CPU资源、内存资源、硬盘资源、I/O资源。In an embodiment of the present invention, in the apparatus shown in FIG. 4 , different types of resources include one or more of the following: CPU resources, memory resources, hard disk resources, and I/O resources.

在本发明的一个实施例中,图4所示的装置中,条件判断单元410,适于判断是否到了预设的检测周期对应的时间;或者,判断目标设备上的所有进程对指定一种或多种类型资源的总占用量是否达到了预设阈值;或者,监测目标设备上的所有进程对指定一种或多种类型资源的总占用量的变化状态,判断总占用量在预设长度时间内的变化值是否超过一定值;或者,判断目标设备是否发生业务故障。In one embodiment of the present invention, in the apparatus shown in FIG. 4 , the condition judging unit 410 is adapted to judge whether the time corresponding to the preset detection period has arrived; Whether the total occupancy of multiple types of resources has reached the preset threshold; or, monitor the change status of the total occupancy of one or more types of resources by all processes on the target device, and determine that the total occupancy is within a preset length of time Whether the change value within exceeds a certain value; or, determine whether a service failure occurs on the target device.

在本发明的一个实施例中,上述装置中,条件判断单元410,适于在到了预设的检测周期对应的时间时,确定预设的监控条件满足;或者,当目标设备上的所有进程对指定一种或多种类型资源的总占用量达到了预设阈值时,确定预设的监控条件满足;或者,当目标设备上的所有进程对指定一种或多种类型资源的总占用量在预设长度时间内的变化值超过一定值时,确定预设的监控条件满足;或者,当目标设备发生业务故障时,确定预设的监控条件满足。In one embodiment of the present invention, in the above-mentioned device, the condition judging unit 410 is adapted to determine that the preset monitoring condition is satisfied when the time corresponding to the preset detection period arrives; or, when all processes on the target device are When the total occupancy of one or more types of resources reaches a preset threshold, it is determined that the preset monitoring condition is satisfied; or, when the total occupancy of all processes on the target device to the specified one or more types of resources is within When the change value within a preset length of time exceeds a certain value, it is determined that the preset monitoring condition is satisfied; or, when a service failure occurs on the target device, it is determined that the preset monitoring condition is satisfied.

在本发明的一个实施例中,图4所示的装置中,监控处理单元420,适于读取目标设备上的指定目录下的文件,从该文件中获取进程的标识。In one embodiment of the present invention, in the apparatus shown in FIG. 4 , the monitoring processing unit 420 is adapted to read a file in a specified directory on the target device, and obtain a process identifier from the file.

在本发明的一个实施例中,上述装置进一步包括:报警处理单元,适于预设应用程序资源占用阈值列表;根据各列表中的信息以及应用程序资源占用阈值列表,判断是否触发报警,如果是则进行报警处理;应用程序资源占用阈值列表中对应保存了应用程序和对应的多个资源占用阈值,其中多个资源占用阈值分别对应不同类型资源。In an embodiment of the present invention, the above-mentioned device further includes: an alarm processing unit, adapted to preset application resource occupation threshold lists; according to the information in each list and the application resource occupation threshold list, determine whether to trigger an alarm, if The alarm processing is performed; the application program and the corresponding multiple resource occupation thresholds are stored in the application resource occupation threshold list correspondingly, and the multiple resource occupation thresholds correspond to different types of resources respectively.

在本发明的一个实施例中,上述装置中,报警处理单元,适于对于每个列表中的每个进程,根据该进程对应的应用查询应用程序资源占用阈值列表,得到相应类型资源的资源占用阈值,判断该进程在该列表中的资源占用量是否大于或等于查询得到的资源占用阈值,是则触发报警。In an embodiment of the present invention, in the above device, the alarm processing unit is adapted to, for each process in each list, query the application resource occupation threshold list according to the application corresponding to the process, and obtain the resource occupation of the corresponding type of resource Threshold, determine whether the resource usage of the process in the list is greater than or equal to the resource usage threshold obtained from the query, and if so, trigger an alarm.

在本发明的一个实施例中,上述装置中,报警处理单元,适于通过指定渠道发送报警信息;通过指定渠道发送报警信息包括如下中的一种或多种:在目标设备上显示包含报警信息的弹窗;通过电子邮件系统向指定电子邮件地址发送报警信息;通过即时通讯系统向指定的即时通讯账号发送报警信息;通过手机短信向指定的手机号码发送报警信息;通过与指定服务器之间连接向该指定服务器上报报警信息。In an embodiment of the present invention, in the above-mentioned device, the alarm processing unit is adapted to send alarm information through a specified channel; sending alarm information through a specified channel includes one or more of the following: displaying on the target device pop-up window; send alarm information to the designated email address through the email system; send alarm information to the designated instant messaging account through the instant messaging system; send alarm information to the designated mobile phone number through mobile phone text messages; Report alarm information to the designated server.

需要说明的是,以上各装置实施例的具体实施方式与前述对应方法实施例的具体实施方式相同,在此不再赘述。It should be noted that, the specific implementation manners of the foregoing apparatus embodiments are the same as the specific implementation manners of the aforementioned corresponding method embodiments, and will not be repeated here.

综上所述,本发明的技术方案,首先判断是否满足预设的监控条件,在满足条件的情况下进一步获取目标设备上的所有进程的标识,并获取每个进程对不同类型资源的占用信息,通过生成占用信息列表的方式,对每个进程对各种类型资源的占用信息进行展示。该技术方案可以全面地展现目标设备上所有进程对各种不同类型资源的占用情况,使得用户可以更好地对目标设备进行监控,进一步对可能存在的异常情况进行处理。To sum up, the technical solution of the present invention first judges whether the preset monitoring conditions are satisfied, and further obtains the identifiers of all processes on the target device if the conditions are met, and obtains the occupancy information of each process for different types of resources , by generating a list of occupation information to display the occupation information of various types of resources for each process. The technical solution can fully display the occupancy of various types of resources by all processes on the target device, so that the user can better monitor the target device and further handle possible abnormal situations.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

需要说明的是:It should be noted:

在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual appliance, or other device. Various general purpose devices can also be used with the teachings based on this. The structure required to construct such an apparatus will be apparent from the foregoing description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的监控目标设备的装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the apparatus for monitoring a target device according to an embodiment of the present invention. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了A1、一种监控目标设备的方法,包括:The invention discloses A1. A method for monitoring target equipment, comprising:

判断是否满足预设的监控条件;Judging whether the preset monitoring conditions are met;

如果满足,获取目标设备上的所有进程的标识;If so, obtain the identities of all processes on the target device;

获取每个进程对不同类型资源的占用信息;Obtain information about the occupancy of different types of resources by each process;

对于每种类型资源,生成各进程对该类型资源的占用信息列表;For each type of resource, generate a list of occupancy information of the type of resource by each process;

展示所生成的各列表。Display each list generated.

A2、如A1所述的方法,其中,该方法进一步包括:A2. The method as described in A1, wherein the method further comprises:

在每个列表中根据各进程对该类型资源的占用量将各进程进行排序。The processes are sorted in each list according to their usage of resources of that type.

A3、如A1所述的方法,还包括:A3. The method as described in A1, further comprising:

对于每种类型的资源所对应的列表,将该列表中的各进程按照排序顺序分为多个组,在列表中将不同组的进程用不同颜色进行标记展示。For the list corresponding to each type of resource, the processes in the list are divided into multiple groups according to the sort order, and the processes of different groups are marked and displayed in different colors in the list.

A4、如A1所述的方法,其中,所述展示所生成的各列表包括:A4. The method as described in A1, wherein each list generated by the display includes:

预设不同快捷标识和各列表之间的对应关系;Preset the corresponding relationship between different shortcut signs and lists;

当接收到用户输入的一个快捷标识时,展示该快捷标识对应的列表。When a shortcut identifier input by the user is received, a list corresponding to the shortcut identifier is displayed.

A5、如A1所述的方法,还包括:A5. The method as described in A1, further comprising:

获取各进程对应的应用程序的相关信息;Obtain relevant information about the application program corresponding to each process;

当接收到用户在所展示的一个列表中选择一个进程的指令时,展示该被选择的进程对应的应用程序的相关信息。When receiving an instruction from the user to select a process in the displayed list, relevant information of the application program corresponding to the selected process is displayed.

A6、如A5所述的方法,其中,所述对应的应用程序的相关信息包括如下中的一种或多种:A6. The method as described in A5, wherein the relevant information of the corresponding application includes one or more of the following:

应用程序的名称;the name of the application;

应用程序的功能描述信息;Functional description information of the application;

应用程序的启动时间;The startup time of the application;

应用程序的启动者。The launcher of the application.

A7、如A1所述的方法,其中,所述不同类型资源包括如下中的一种或多种:A7. The method according to A1, wherein the different types of resources include one or more of the following:

CPU资源、内存资源、硬盘资源、I/O资源。CPU resources, memory resources, hard disk resources, and I/O resources.

A8、如A1所述的方法,其中,所述判断是否满足预设的监控条件包括:A8. The method as described in A1, wherein the judging whether the preset monitoring conditions are met includes:

判断是否到了预设的检测周期对应的时间;Judging whether the time corresponding to the preset detection cycle has arrived;

或者,or,

判断所述目标设备上的所有进程对指定一种或多种类型资源的总占用量是否达到了预设阈值;Judging whether the total occupancy of one or more types of resources by all processes on the target device reaches a preset threshold;

或者,or,

监测所述目标设备上的所有进程对指定一种或多种类型资源的总占用量的变化状态,判断所述总占用量在预设长度时间内的变化值是否超过一定值时;When monitoring the change status of the total occupancy of one or more types of resources by all processes on the target device, and judging whether the change value of the total occupancy exceeds a certain value within a preset length of time;

或者,or,

判断所述目标设备是否发生业务故障。It is judged whether the target device has a service failure.

A9、如A8所述的方法,其中,A9. The method as described in A8, wherein,

若是到了预设的检测周期对应的时间,则所述预设的监控条件满足;If the time corresponding to the preset detection period arrives, the preset monitoring condition is met;

或者,or,

若所述目标设备上的所有进程对指定一种或多种类型资源的总占用量达到了预设阈值,则所述预设的监控条件满足;If the total occupation of one or more types of resources by all processes on the target device reaches a preset threshold, the preset monitoring condition is met;

或者,or,

若所述目标设备上的所有进程对指定一种或多种类型资源的总占用量在预设长度时间内的变化值超过一定值,则所述预设的监控条件满足;If the change value of the total occupancy of one or more types of resources by all processes on the target device exceeds a certain value within a preset length of time, the preset monitoring condition is satisfied;

或者,or,

若所述目标设备发生业务故障,则所述预设的监控条件满足。If a service failure occurs on the target device, the preset monitoring condition is satisfied.

A10、如A1所述的方法,其中,所述获取目标设备上的所有进程的标识包括:A10. The method as described in A1, wherein said obtaining the identifiers of all processes on the target device includes:

读取目标设备上的指定目录下的文件,从该文件中获取进程的标识。Read the file in the specified directory on the target device, and get the process ID from the file.

A11、如A1-A10中任一项所述的方法,还包括:A11. The method according to any one of A1-A10, further comprising:

预设应用程序资源占用阈值列表;该列表中对应保存了应用程序和对应的多个资源占用阈值,其中所述多个资源占用阈值分别对应不同类型资源;A list of preset application resource occupation thresholds; the list stores corresponding application programs and corresponding multiple resource occupation thresholds, wherein the multiple resource occupation thresholds correspond to different types of resources respectively;

根据各列表中的信息以及所述应用程序资源占用阈值列表,判断是否触发报警,如果是则进行报警处理。According to the information in each list and the application resource occupation threshold list, it is judged whether an alarm is triggered, and if so, alarm processing is performed.

A12、如A11所述的方法,其中,所述根据各列表中的信息以及所述应用程序资源占用阈值列表,判断是否触发报警包括:A12. The method according to A11, wherein the determining whether to trigger an alarm according to the information in each list and the application resource occupation threshold list includes:

对于每个列表中的每个进程,根据该进程对应的应用程序查询所述应用程序资源占用阈值列表,得到相应类型资源的资源占用阈值,判断该进程在该列表中的资源占用量是否大于或等于查询得到的资源占用阈值,是则触发报警。For each process in each list, query the application program resource occupation threshold list according to the application program corresponding to the process, obtain the resource occupation threshold value of the corresponding type of resource, and judge whether the resource occupation amount of the process in the list is greater than or It is equal to the resource occupation threshold obtained from the query, if it is, an alarm will be triggered.

A13、如A11所述的方法,其中,所述进行报警处理包括:通过指定渠道发送报警信息;A13. The method as described in A11, wherein the performing alarm processing includes: sending alarm information through a designated channel;

所述通过指定渠道发送报警信息包括如下中的一种或多种:在目标设备上显示包含报警信息的弹窗;通过电子邮件系统向指定电子邮件地址发送报警信息;通过即时通讯系统向指定的即时通讯账号发送报警信息;通过手机短信向指定的手机号码发送报警信息;通过与指定服务器之间连接向该指定服务器上报报警信息。The sending of the alarm information through the specified channel includes one or more of the following: displaying a pop-up window containing the alarm information on the target device; sending the alarm information to the specified email address through the email system; sending the alarm information to the specified email address through the instant messaging system. The instant messaging account sends the alarm information; sends the alarm information to the designated mobile phone number through the mobile phone text message; reports the alarm information to the designated server through the connection with the designated server.

本发明还公开了B14、一种监控目标设备的装置,包括:The present invention also discloses B14, a device for monitoring target equipment, including:

条件判断单元,适于判断是否满足预设监控条件;A condition judging unit, adapted to judge whether a preset monitoring condition is met;

监控处理单元,适于在所述条件判断单元判断为满足预设条件时,获取目标设备上的所有进程的标识;获取每个进程对不同类型资源的占用信息;对于每种类型资源,生成各进程对该类型资源的占用信息列表;The monitoring and processing unit is adapted to obtain the identifiers of all processes on the target device when the condition judging unit judges that the preset condition is satisfied; obtain the occupancy information of each process for different types of resources; for each type of resource, generate each A list of process occupation information for this type of resource;

展示单元,适于展示所生成的各列表。A display unit is suitable for displaying each generated list.

B15、如B14所述的装置,其中,B15. The device of B14, wherein,

所述监控处理单元,适于在每个列表中将各进程根据各进程对该类型资源的占用量进行排序。The monitoring processing unit is adapted to sort the processes in each list according to the occupation amount of the resource of the type by each process.

B16、如B14所述的装置,其中,B16. The device of B14, wherein,

所述展示单元,还适于对于每种类型的资源所对应的列表,将该列表中的各进程按照排序顺序分为多个组,在列表中将不同组的进程用不同颜色进行标记展示。The display unit is further adapted to, for the list corresponding to each type of resource, divide the processes in the list into multiple groups according to the sort order, and mark and display the processes in different groups with different colors in the list.

B17、如B14所述的装置,其中,B17. The device of B14, wherein,

所述展示单元,适于预设不同快捷标识和各列表之间的对应关系;当接收到用户输入的一个快捷标识时,展示该快捷标识对应的列表。The display unit is adapted to preset the corresponding relationship between different shortcut identifiers and lists; when receiving a shortcut identifier input by the user, display the list corresponding to the shortcut identifier.

B18、如B14所述的装置,其中,B18. The device of B14, wherein,

所述监控处理单元,进一步适于获取各进程对应的应用程序的相关信息;The monitoring processing unit is further adapted to obtain relevant information of application programs corresponding to each process;

所述展示单元,进一步适于当接收到用户在所展示的一个列表中选择一个进程的指令时,展示该被选择的进程对应的应用程序的相关信息。The display unit is further adapted to display relevant information of the application program corresponding to the selected process when receiving an instruction from the user to select a process in the displayed list.

B19、如B18所述的装置,其中,所述对应的应用程序的相关信息包括如下中的一种或多种:B19. The device as described in B18, wherein the relevant information of the corresponding application program includes one or more of the following:

应用程序的名称;the name of the application;

应用程序的功能描述信息;Functional description information of the application;

应用程序的启动时间;The startup time of the application;

应用程序的启动者。The launcher of the application.

B20、如B14所述的装置,其中,所述不同类型资源包括如下中的一种或多种:CPU资源、内存资源、硬盘资源、I/O资源。B20. The device according to B14, wherein the different types of resources include one or more of the following: CPU resources, memory resources, hard disk resources, and I/O resources.

B21、如B14所述的装置,其中,B21. The device of B14, wherein,

所述条件判断单元,适于判断是否到了预设的检测周期对应的时间;或者,判断所述目标设备上的所有进程对指定一种或多种类型资源的总占用量是否达到了预设阈值;或者,监测所述目标设备上的所有进程对指定一种或多种类型资源的总占用量的变化状态,判断所述总占用量在预设长度时间内的变化值是否超过一定值;或者,判断所述目标设备是否发生业务故障。The condition judging unit is adapted to judge whether the time corresponding to the preset detection period has arrived; or judge whether the total occupancy of one or more types of resources by all processes on the target device has reached a preset threshold ; Or, monitor the change status of the total occupancy of all processes on the target device to the specified one or more types of resources, and determine whether the change value of the total occupancy exceeds a certain value within a preset length of time; or , judging whether a service failure occurs on the target device.

B22、如B21所述的装置,其中,B22. The device of B21, wherein,

所述条件判断单元,适于在到了预设的检测周期对应的时间时,确定所述预设的监控条件满足;或者,当所述目标设备上的所有进程对指定一种或多种类型资源的总占用量达到了预设阈值时,确定所述预设的监控条件满足;或者,当所述目标设备上的所有进程对指定一种或多种类型资源的总占用量在预设长度时间内的变化值超过一定值时,确定所述预设的监控条件满足;或者,当所述目标设备发生业务故障时,确定所述预设的监控条件满足。The condition judging unit is adapted to determine that the preset monitoring condition is satisfied when the time corresponding to the preset detection period arrives; or, when all processes on the target device specify one or more types of resources When the total occupancy of the target device reaches the preset threshold, it is determined that the preset monitoring condition is satisfied; or, when the total occupancy of all processes on the target device for the specified one or more types of resources is within a preset length of time When the change value within exceeds a certain value, it is determined that the preset monitoring condition is satisfied; or, when a service failure occurs on the target device, it is determined that the preset monitoring condition is satisfied.

B23、如B14所述的装置,其中,B23. The device of B14, wherein,

所述监控处理单元,适于读取目标设备上的指定目录下的文件,从该文件中获取进程的标识。The monitoring and processing unit is adapted to read a file in a specified directory on the target device, and obtain a process identifier from the file.

B24、如B14-B23中任一项所述的装置,进一步包括:B24. The device according to any one of B14-B23, further comprising:

报警处理单元,适于预设应用程序资源占用阈值列表;根据各列表中的信息以及所述应用程序资源占用阈值列表,判断是否触发报警,如果是则进行报警处理;The alarm processing unit is adapted to preset the application resource occupation threshold list; according to the information in each list and the application resource occupation threshold list, it is judged whether an alarm is triggered, and if so, alarm processing is performed;

所述应用程序资源占用阈值列表中对应保存了应用程序和对应的多个资源占用阈值,其中所述多个资源占用阈值分别对应不同类型资源。The application program resource occupation threshold list correspondingly stores application programs and corresponding resource occupation thresholds, wherein the multiple resource occupation thresholds correspond to different types of resources respectively.

B25、如B24所述的装置,其中,B25. The device of B24, wherein,

所述报警处理单元,适于对于每个列表中的每个进程,根据该进程对应的应用查询所述应用程序资源占用阈值列表,得到相应类型资源的资源占用阈值,判断该进程在该列表中的资源占用量是否大于或等于查询得到的资源占用阈值,是则触发报警。The alarm processing unit is adapted to, for each process in each list, query the application resource occupation threshold list according to the application corresponding to the process, obtain the resource occupation threshold of the corresponding type of resource, and judge that the process is in the list If the resource usage is greater than or equal to the resource usage threshold obtained from the query, an alarm will be triggered.

B26、如B24所述的装置,其中,B26. The device of B24, wherein,

所述报警处理单元,适于通过指定渠道发送报警信息;The alarm processing unit is adapted to send alarm information through a designated channel;

所述通过指定渠道发送报警信息包括如下中的一种或多种:在目标设备上显示包含报警信息的弹窗;通过电子邮件系统向指定电子邮件地址发送报警信息;通过即时通讯系统向指定的即时通讯账号发送报警信息;通过手机短信向指定的手机号码发送报警信息;通过与指定服务器之间连接向该指定服务器上报报警信息。The sending of the alarm information through the specified channels includes one or more of the following: displaying a pop-up window containing the alarm information on the target device; sending the alarm information to the specified email address through the email system; sending the alarm information to the specified email address through the instant messaging system. The instant messaging account sends the alarm information; sends the alarm information to the designated mobile phone number through the mobile phone text message; reports the alarm information to the designated server through the connection with the designated server.

Claims (10)

1.一种监控目标设备的方法,包括:1. A method of monitoring a target device, comprising: 判断是否满足预设的监控条件;Judging whether the preset monitoring conditions are met; 如果满足,获取目标设备上的所有进程的标识;If so, obtain the identities of all processes on the target device; 获取每个进程对不同类型资源的占用信息;Obtain information about the occupancy of different types of resources by each process; 对于每种类型资源,生成各进程对该类型资源的占用信息列表;For each type of resource, generate a list of occupancy information of the type of resource by each process; 展示所生成的各列表。Display each list generated. 2.如权利要求1所述的方法,其中,该方法进一步包括:2. The method of claim 1, wherein the method further comprises: 在每个列表中根据各进程对该类型资源的占用量将各进程进行排序。The processes are sorted in each list according to their usage of resources of that type. 3.如权利要求1所述的方法,还包括:3. The method of claim 1, further comprising: 对于每种类型的资源所对应的列表,将该列表中的各进程按照排序顺序分为多个组,在列表中将不同组的进程用不同颜色进行标记展示。For the list corresponding to each type of resource, the processes in the list are divided into multiple groups according to the sort order, and the processes of different groups are marked and displayed in different colors in the list. 4.如权利要求1所述的方法,其中,所述展示所生成的各列表包括:4. The method according to claim 1, wherein said displaying the generated lists comprises: 预设不同快捷标识和各列表之间的对应关系;Preset the corresponding relationship between different shortcut signs and lists; 当接收到用户输入的一个快捷标识时,展示该快捷标识对应的列表。When a shortcut identifier input by the user is received, a list corresponding to the shortcut identifier is displayed. 5.如权利要求1所述的方法,还包括:5. The method of claim 1, further comprising: 获取各进程对应的应用程序的相关信息;Obtain relevant information about the application program corresponding to each process; 当接收到用户在所展示的一个列表中选择一个进程的指令时,展示该被选择的进程对应的应用程序的相关信息。When receiving an instruction from the user to select a process in a displayed list, relevant information of the application program corresponding to the selected process is displayed. 6.一种监控目标设备的装置,包括:6. An apparatus for monitoring target equipment, comprising: 条件判断单元,适于判断是否满足预设监控条件;A condition judging unit, adapted to judge whether a preset monitoring condition is met; 监控处理单元,适于在所述条件判断单元判断为满足预设条件时,获取目标设备上的所有进程的标识;获取每个进程对不同类型资源的占用信息;对于每种类型资源,生成各进程对该类型资源的占用信息列表;The monitoring and processing unit is adapted to obtain the identifiers of all processes on the target device when the condition judging unit judges that the preset condition is met; obtain the occupancy information of each process for different types of resources; for each type of resource, generate each A list of process occupation information for this type of resource; 展示单元,适于展示所生成的各列表。A display unit is suitable for displaying each generated list. 7.如权利要求6所述的装置,其中,7. The apparatus of claim 6, wherein, 所述监控处理单元,适于在每个列表中将各进程根据各进程对该类型资源的占用量进行排序。The monitoring processing unit is adapted to sort the processes in each list according to the occupation amount of the resource of the type by each process. 8.如权利要求6所述的装置,其中,8. The apparatus of claim 6, wherein, 所述展示单元,还适于对于每种类型的资源所对应的列表,将该列表中的各进程按照排序顺序分为多个组,在列表中将不同组的进程用不同颜色进行标记展示。The display unit is further adapted to, for the list corresponding to each type of resource, divide the processes in the list into multiple groups according to the sort order, and mark and display the processes in different groups with different colors in the list. 9.如权利要求6所述的装置,其中,9. The apparatus of claim 6, wherein, 所述展示单元,适于预设不同快捷标识和各列表之间的对应关系;当接收到用户输入的一个快捷标识时,展示该快捷标识对应的列表。The display unit is adapted to preset the corresponding relationship between different shortcut identifiers and lists; when receiving a shortcut identifier input by the user, display the list corresponding to the shortcut identifier. 10.如权利要求6所述的装置,其中,10. The apparatus of claim 6, wherein, 所述监控处理单元,进一步适于获取各进程对应的应用程序的相关信息;The monitoring processing unit is further adapted to obtain relevant information of application programs corresponding to each process; 所述展示单元,进一步适于当接收到用户在所展示的一个列表中选择一个进程的指令时,展示该被选择的进程对应的应用程序的相关信息。The display unit is further adapted to display relevant information of the application program corresponding to the selected process when receiving an instruction from the user to select a process in the displayed list.
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 (14)

* 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 security defense method and related device
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
CN110333913A (en) * 2019-07-16 2019-10-15 深圳传音控股股份有限公司 Clean up application methods and terminals
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
CN115794549A (en) * 2022-11-22 2023-03-14 中孚安全技术有限公司 Method, device and medium for managing and controlling resource occupied by application program

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 server running status
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 server running status
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 (17)

* 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 security defense method and related device
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
CN110333913A (en) * 2019-07-16 2019-10-15 深圳传音控股股份有限公司 Clean up application methods and terminals
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
CN115794549A (en) * 2022-11-22 2023-03-14 中孚安全技术有限公司 Method, device and medium for managing and controlling resource occupied by application program

Similar Documents

Publication Publication Date Title
CN105528277A (en) Method and equipment for monitoring target device
CN105429801B (en) A flow monitoring method and device
CN111049705A (en) Method and device for monitoring distributed storage system
CN103136091B (en) Method and device for detecting security status of terminal equipment
CN105117110B (en) Method and device for displaying user equipment state on preset interface of application program
CN107592236A (en) The monitoring method and device of a kind of related business datum of promotion message
US20090216707A1 (en) File resource usage information in metadata of a file
CN105550104B (en) Application program capacity test method and device
US10380867B2 (en) Alert management within a network based virtual collaborative space
CN110231974A (en) O&amp;M information visuallization method, apparatus, equipment and readable storage medium storing program for executing
CN106909457A (en) EMS memory management process and device
CN104461546A (en) Application based computing device optimizing method and device
CN106909458A (en) EMS memory management process and device
CN103034575A (en) Crash analysis method and device
CN111045879A (en) Pressure test report generation method and device and storage medium
CN106921518B (en) Monitoring view display method and device
CN108959101A (en) Test result processing method, device, equipment and memory software testing system
CN104104677B (en) Application program forecasting methods, client and electronic equipment
CN107247649A (en) Method, device and the gateway of detecting system health status
CN112764992A (en) Thread pool monitoring method, device and equipment
CN103514021B (en) The method and apparatus of browser is provided
CN106911554A (en) A kind of historical information methods of exhibiting and device
CN110795239A (en) Application memory leakage detection method and device
CN108268358A (en) The monitoring method of task, apparatus and system
CN104461741A (en) Graphics device interface based computing device optimizing method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160427