WO2020000738A1 - 基于高斯分布的定时任务异常监控方法、电子装置及介质 - Google Patents
基于高斯分布的定时任务异常监控方法、电子装置及介质 Download PDFInfo
- Publication number
- WO2020000738A1 WO2020000738A1 PCT/CN2018/108209 CN2018108209W WO2020000738A1 WO 2020000738 A1 WO2020000738 A1 WO 2020000738A1 CN 2018108209 W CN2018108209 W CN 2018108209W WO 2020000738 A1 WO2020000738 A1 WO 2020000738A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current
- ratio
- timing task
- task
- probability
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
Definitions
- the present application relates to the field of computer technology, and in particular, to a method, an electronic device, and a readable storage medium for monitoring a timing task abnormality based on a Gaussian distribution.
- the purpose of the present application is to provide a method, an electronic device, and a readable storage medium for timing task abnormality monitoring based on a Gaussian distribution, so as to automatically and accurately determine an abnormal timing task.
- a first aspect of the present application provides an electronic device, the electronic device includes a memory and a processor, and the memory stores a Gaussian distribution-based timing task abnormality monitoring system that can be run on the processor. , When the Gaussian distribution-based timing task abnormality monitoring system is executed by the processor, the following steps are implemented:
- a probability superposition value of each preset parameter data of the current timing task is calculated according to a preset calculation formula; the probability superposition value is a Gaussian distribution probability of each preset parameter data of the current timing task in a preset normal timing task Superimposed value of the probability of occurrence in space;
- the second aspect of the present application further provides a method for monitoring abnormality of a scheduled task based on Gaussian distribution.
- the method for monitoring abnormality of a scheduled task based on Gaussian distribution includes:
- a probability superposition value of each preset parameter data of the current timing task is calculated according to a preset calculation formula; the probability superposition value is a Gaussian distribution probability of each preset parameter data of the current timing task in a preset normal timing task Superimposed value of the probability of occurrence in space;
- the third aspect of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a timing task abnormality monitoring system based on Gaussian distribution, and the timing task based on Gaussian distribution.
- the abnormality monitoring system may be executed by at least one processor, so that the at least one processor executes the steps of the method for monitoring abnormality of a timing task based on the Gaussian distribution as described above.
- the Gaussian-based timed task abnormality monitoring method, electronic device, and readable storage medium proposed in the present application collect various preset parameter data of the current timed task monitored and calculate each of the current timed task according to a preset calculation formula.
- the superimposed value of the appearance probability value of the preset parameter data in the Gaussian distribution probability space of the preset normal timing task analyzing whether the monitored current timing task is abnormal based on the probability superposition value. Because it can obtain the probability value in the probability space corresponding to the Gaussian distribution according to the preset parameter data of the current timing task, and automatically determine whether the current timing task is abnormal based on the superposition value of each probability value, intelligent calculation can be used to determine the timing task. Whether it is abnormal or not requires manual analysis and judgment by the operating personnel, which saves labor and time costs and improves efficiency.
- FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of a timing task abnormality monitoring system based on Gaussian distribution;
- FIG. 2 is a schematic flowchart of an embodiment of a method for monitoring a timing task abnormality based on a Gaussian distribution in this application.
- the application provides a timing task abnormality monitoring system based on Gaussian distribution.
- FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of a timing task abnormality monitoring system 10 based on a Gaussian distribution of the present application.
- the timing task abnormality monitoring system 10 based on the Gaussian distribution is installed and runs in the electronic device 1.
- the electronic device 1 may include, but is not limited to, a memory 11, a processor 12, and a display 13.
- FIG. 1 only shows the electronic device 1 with components 11-13, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
- the memory 11 is at least one type of readable computer storage medium.
- the memory 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1.
- the memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in hard disk, a smart memory card (SMC), and a secure digital device. (Secure Digital, SD) card, Flash card, etc.
- the memory 11 may further include both an internal storage unit of the electronic device 1 and an external storage device.
- the memory 11 is configured to store application software installed on the electronic device 1 and various types of data, such as program codes of the timing task abnormality monitoring system 10 based on a Gaussian distribution.
- the memory 11 may also be used to temporarily store data that has been output or will be output.
- the processor 12 may be a central processing unit (CPU), a microprocessor, or other data processing chip, configured to run program codes or process data stored in the memory 11, such as Execute the timing task abnormality monitoring system 10 and the like based on the Gaussian distribution.
- CPU central processing unit
- microprocessor or other data processing chip, configured to run program codes or process data stored in the memory 11, such as Execute the timing task abnormality monitoring system 10 and the like based on the Gaussian distribution.
- the display 13 may be an LED display, a liquid crystal display, a touch-type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like.
- the display 13 is used to display information processed in the electronic device 1 and to display a visual user interface, such as various preset parameter data of the current timing task, and a determination result of whether the current timing task is abnormal.
- the components 11-13 of the electronic device 1 communicate with each other through a system bus.
- the Gaussian distribution-based timing task abnormality monitoring system 10 includes at least one computer-readable instruction stored in the memory 11, and the at least one computer-readable instruction may be executed by the processor 12 to implement the embodiments of the present application.
- Step S1 Collect various preset parameter data of the current timing task monitored
- Step S2 Calculate a probability superposition value of each preset parameter data of the current timing task according to a preset calculation formula; the probability superposition value is a value of each preset parameter data of the current timing task in a preset normal timing task. Superimposed value of occurrence probability value in Gaussian distribution probability space;
- Step S3 Analyze whether the monitored current timing task is abnormal based on the probability superposition value.
- each preset parameter data may include the current CPU usage rate of a scheduled task, or the ratio of the current CPU usage rate to the memory usage rate allocated for the scheduled task in advance; the current memory footprint of the scheduled task, or the current memory usage rate Ratio to disk I / O usage; the current execution time of the scheduled task, or the ratio of the current execution time to the historical average execution time; the ratio of the current cpu usage ratio to the historical cpu usage ratio of the timed task; the timed task's The ratio of the current memory usage ratio to the historical usage ratio, and so on.
- Each parameter has a probability space with Gaussian distribution.
- the probability value in the probability space corresponding to the Gaussian distribution can be obtained according to each preset parameter data, and according to each Probability value to automatically determine whether the current timing task is abnormal.
- various monitoring parameters such as the CPU occupancy rate can be integrated, and dynamic intelligent calculation can be used to determine whether the timing task is abnormal, without the need for manual analysis and judgment by the operator.
- the timing task abnormality monitoring system collects various preset parameter data of the current timing task (such as CPU, memory, disk I / O occupancy rate, execution time, etc. related to the timing task), and can obtain There are two optional implementations of the numerical points corresponding to each preset parameter data: 1.
- each preset parameter data can be directly used as the corresponding numerical point, for example, the CPU usage rate of the current scheduled task is 0.05, The corresponding value point is 0.05. 2.
- the preset parameter data can also be converted into the corresponding attribute value points according to the preset segment conversion method, for example, converted into value points in a segmented manner, and here is preset
- the parameter is "execute time" for example, if the execution time is 0-5 minutes, the identifier is 1; the 5-10 minutes is 2; the 10-17 minutes is 3; the 18-25 minutes is 4; The mark for 25-30 minutes is 5; the mark for 30 minutes and more is 6.
- a suitable implementation manner 1 or 2 may be selected to convert the numerical points, which is not limited herein.
- a preset archive database of past historical data stores historical case information that has been used to make timing task abnormality judgments, and finds all normal timing tasks in historical cases.
- abnormal monitoring is performed on the current scheduled task, there are the following formulas:
- a1, a2 to an are the 1,2 to n preset parameters in the current scheduled task to be monitored (for example, selecting several more important attributes such as CPU, memory, and disk I / O related to the current scheduled task Occupancy rate, execution time, etc.)
- the attribute value points after conversion, A1, A2 to An are the first, second to nth preset attribute information corresponding to all the normal scheduled tasks in the preset archive database (the extracted current scheduled tasks).
- the same attributes, such as the CPU, memory, disk I / O occupancy rate, execution time, etc. related to the timing task, are a set of reference attribute value points after conversion.
- mean (A1) is the mean of A1, which determines the position of the probability map of the Gaussian distribution (that is, the normal distribution).
- Mean ((a1-mean (A1)) ⁇ 2) is the value of a1 and mean (A1). The standard deviation is also the magnitude of the Gaussian (ie, normal) distribution.
- Gauss (an, mean (An), mean ((an-mean (An)) ⁇ 2)) is the nth preset parameter attribute value point in the current timing task to be monitored at the corresponding nth reference attribute value point
- the occurrence probability value in the Gaussian distribution probability space of the set, P is the superposition value of the appearance probability value of the 1, 2, ... n preset parameter attribute value points in the current timing task to be monitored; the final calculated P value is The probability that the current scheduled task to be monitored is a normal scheduled task.
- a reasonable preset probability threshold may be set in advance. If the calculated probability that the currently scheduled task to be monitored is a normal scheduled task, that is, the P value is less than the preset probability threshold, it is judged that the current task needs to be monitored.
- the timing task is not similar to the normal timing task, that is, it is automatically determined that the currently scheduled task to be monitored is an abnormal timing task; if the P value is greater than the preset probability threshold, the currently scheduled task to be monitored is similar to the normal timing task, that is, automatically determined
- the currently scheduled task to be monitored is a normal scheduled task.
- timing tasks that record historical data can use the formula:
- the preset probability threshold can also be adjusted by the user according to the needs of different application scenarios. For example, in the scenario where the execution of a scheduled task is more stringent, the threshold can be appropriately increased. In scenarios where the execution of a timed task is not too strict, the threshold can be lowered appropriately. More flexible and practical.
- the preset parameter data of the current timing task that is monitored is collected; the occurrence probability of each preset parameter data of the current timing task in the Gaussian distribution probability space of the preset normal timing task is calculated according to a preset calculation formula.
- Superimposed value of the value analyze whether the monitored current timing task is abnormal based on the probability superimposed value. Because it can obtain the probability value in the probability space corresponding to the Gaussian distribution according to the preset parameter data of the current timing task, and automatically determine whether the current timing task is abnormal based on the superposition value of each probability value, intelligent calculation can be used to determine the timing task. Whether it is abnormal or not requires manual analysis and judgment by the operating personnel, which saves labor and time costs and improves efficiency.
- the method further includes:
- the current timing task and each preset parameter data of the current timing task may be sent via SMS, WeChat, QQ message, email, and other methods.
- Early warning information is sent to preset terminals, such as mobile phones and handheld terminals of operators, to remind operators to deal with abnormal timing tasks in a timely manner.
- an early warning may also be performed in combination with ranking judgment, for example, each of the current scheduled tasks to be monitored is monitored.
- the occurrence probability values of the preset parameter attribute value points in the Gaussian distribution probability space of the set of corresponding reference attribute value points are sorted in descending order.
- the parameters that are ranked in the lower order in the order may appear in the current scheduled task to be monitored.
- Abnormal parameters, the parameters that may appear abnormal are sent to the operator for early warning.
- an abnormal probability threshold corresponding to each preset parameter may also be set. If there is a preset parameter attribute value point, a probability of occurrence in a Gaussian distribution probability space of a set of corresponding reference attribute value points If the value is higher than its corresponding abnormal probability threshold, then this parameter is sent to the operator for early warning.
- FIG. 2 is a schematic flowchart of an embodiment of a method for monitoring timing task abnormality based on Gaussian distribution.
- the method for monitoring timing task abnormality based on Gaussian distribution includes the following steps:
- Step S10 Collect various preset parameter data of the monitored current scheduled task
- Step S20 Calculate a probability superposition value of each preset parameter data of the current timing task according to a preset calculation formula; the probability superposition value is a value of each preset parameter data of the current timing task in a preset normal timing task. Superimposed value of occurrence probability value in Gaussian distribution probability space;
- Step S30 Analyze whether the monitored current timing task is abnormal based on the probability superposition value.
- each preset parameter data may include the current CPU usage rate of a scheduled task, or the ratio of the current CPU usage rate to the memory usage rate allocated for the scheduled task in advance; the current memory footprint of the scheduled task, or the current memory usage rate Ratio to disk I / O usage; the current execution time of the scheduled task, or the ratio of the current execution time to the historical average execution time; the ratio of the current cpu usage ratio to the historical cpu usage ratio of the timed task; the timed task's The ratio of the current memory usage ratio to the historical usage ratio, and so on.
- Each parameter has a probability space with Gaussian distribution.
- the probability value in the probability space corresponding to the Gaussian distribution can be obtained according to each preset parameter data, and according to each Probability value to automatically determine whether the current timing task is abnormal.
- various monitoring parameters such as the CPU occupancy rate can be integrated, and dynamic intelligent calculation can be used to determine whether the timing task is abnormal, without the need for manual analysis and judgment by the operator.
- the timing task abnormality monitoring system collects various preset parameter data of the current timing task (such as CPU, memory, disk I / O occupancy rate, execution time, etc. related to the timing task), and can obtain There are two optional implementations of the numerical points corresponding to each preset parameter data: 1.
- each preset parameter data can be directly used as the corresponding numerical point, for example, the CPU usage rate of the current scheduled task is 0.05, The corresponding value point is 0.05. 2.
- the preset parameter data can also be converted into the corresponding attribute value points according to the preset segment conversion method, for example, converted into value points in a segmented manner, and here is preset
- the parameter is "execute time" for example, if the execution time is 0-5 minutes, the identifier is 1; the 5-10 minutes is 2; the 10-17 minutes is 3; the 18-25 minutes is 4; The mark for 25-30 minutes is 5; the mark for 30 minutes and more is 6.
- a suitable implementation manner 1 or 2 may be selected to convert the numerical points, which is not limited herein.
- the preset archive database of past historical data stores historical case information that has been used to make timing task abnormality judgments, and finds all normal timing tasks in historical cases.
- abnormal monitoring is performed on the current scheduled task, there are the following formulas:
- a1, a2 to an are the 1,2 to n preset parameters in the current scheduled task to be monitored (for example, selecting several more important attributes such as CPU, memory, and disk I / O related to the current scheduled task Occupancy rate, execution time, etc.)
- the attribute value points after conversion, A1, A2 to An are the first, second to nth preset attribute information corresponding to all the normal scheduled tasks in the preset archive database (the extracted current scheduled tasks).
- the same attributes, such as the CPU, memory, disk I / O occupancy rate, execution time, etc. related to the timing task, are a set of reference attribute value points after conversion.
- mean (A1) is the mean of A1, which determines the position of the probability map of the Gaussian distribution (that is, the normal distribution).
- Mean ((a1-mean (A1)) ⁇ 2) is the value of a1 and mean (A1). The standard deviation is also the magnitude of the Gaussian (ie, normal) distribution.
- Gauss (an, mean (An), mean ((an-mean (An)) ⁇ 2)) is the nth preset parameter attribute value point in the current timing task to be monitored at the corresponding nth reference attribute value point
- the occurrence probability value in the Gaussian distribution probability space of the set, P is the superposition value of the appearance probability value of the 1, 2, ... n preset parameter attribute value points in the current timing task to be monitored; the final calculated P value is The probability that the current scheduled task to be monitored is a normal scheduled task.
- a reasonable preset probability threshold may be set in advance. If the calculated probability that the currently scheduled task to be monitored is a normal scheduled task, that is, the P value is less than the preset probability threshold, it is judged that the current task needs to be monitored.
- the timing task is not similar to the normal timing task, that is, it is automatically determined that the currently scheduled task to be monitored is an abnormal timing task; if the P value is greater than the preset probability threshold, the currently scheduled task to be monitored is similar to the normal timing task, that is, automatically determined
- the currently scheduled task to be monitored is a normal scheduled task.
- timing tasks that record historical data can use the formula:
- the preset probability threshold can also be adjusted by the user according to the needs of different application scenarios. For example, in the scenario where the execution of a scheduled task is more stringent, the threshold can be appropriately increased. In scenarios where the execution of a timed task is not too strict, the threshold can be lowered appropriately. More flexible and practical.
- the preset parameter data of the current timing task that is monitored is collected; the occurrence probability of each preset parameter data of the current timing task in the Gaussian distribution probability space of the preset normal timing task is calculated according to a preset calculation formula.
- Superimposed value of the value analyze whether the monitored current timing task is abnormal based on the probability superimposed value. Because it can obtain the probability value in the probability space corresponding to the Gaussian distribution according to the preset parameter data of the current timing task, and automatically determine whether the current timing task is abnormal according to the superposition value of each probability value, the intelligent calculation can be used to determine the timing task. Whether it is abnormal or not requires manual analysis and judgment by the operating personnel, which saves labor and time costs and improves efficiency.
- the method further includes:
- the current timing task and each preset parameter data of the current timing task may be sent via SMS, WeChat, QQ message, email, and other methods.
- Early warning information is sent to preset terminals, such as mobile phones and handheld terminals of operators, to remind operators to deal with abnormal timing tasks in a timely manner.
- an early warning may also be performed in combination with ranking judgment, for example, each of the current scheduled tasks to be monitored is monitored.
- the occurrence probability values of the preset parameter attribute value points in the Gaussian distribution probability space of the set of corresponding reference attribute value points are sorted in descending order.
- the parameters that are ranked in the lower order in the order may appear in the current scheduled task to be monitored.
- Abnormal parameters, the parameters that may appear abnormal are sent to the operator for early warning.
- an abnormal probability threshold corresponding to each preset parameter may also be set. If there is a preset parameter attribute value point, a probability of occurrence in a Gaussian distribution probability space of a set of corresponding reference attribute value points If the value is higher than its corresponding abnormal probability threshold, then this parameter is sent to the operator for early warning.
- the present application also provides a computer-readable storage medium that stores a Gaussian distribution-based timing task abnormality monitoring system.
- the Gaussian-based timing task abnormality monitoring system may be processed by at least one processor. Execution, so that the at least one processor executes the steps of the method for monitoring a timing task abnormality based on the Gaussian distribution in the foregoing embodiment, and the specific implementation process of steps S10, S20, and S30 of the method for monitoring the timing task abnormality based on a Gaussian distribution As mentioned above, it will not be repeated here.
- the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.
- a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
一种基于高斯分布的定时任务异常监控方法、电子装置及可读存储介质,该方法包括:采集监控的当前定时任务的各个预设参数数据(S10);根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值(S20);所述概率叠加值为所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;基于所述概率叠加值分析监控的当前定时任务是否异常(S30)。本方法实现智能计算判定出定时任务是否异常,无需由运营人员人工分析判断,节约了人工和时间成本,提高了效率。
Description
优先权申明
本申请基于巴黎公约申明享有2018年06月29日递交的申请号为CN 201810694778.5、名称为“基于高斯分布的定时任务异常监控方法、电子装置及介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
本申请涉及计算机技术领域,尤其涉及一种基于高斯分布的定时任务异常监控方法、电子装置及可读存储介质。
现有技术中对定时任务进行异常监控时,一般是简单的对资源指标设定阈值,若超过阈值,则向运营人员发布预警提示,由运营人员人工分析来综合判断该定时任务是否异常,这种判断异常的方式不够准确,且需依靠人工分析判断,提高了人工和时间成本,效率低下。
发明内容
本申请的目的在于提供一种基于高斯分布的定时任务异常监控方法、电子装置及可读存储介质,旨在自动准确地判断出异常定时任务。
为实现上述目的,本申请第一方面提供一种电子装置,所述电子装置包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的基于高斯分布的定时任务异常监控***,所述基于高斯分布的定时任务异常监控***被所述处理器执行时实现如下步骤:
采集监控的当前定时任务的各个预设参数数据;
根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值;所述概率叠加值为所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;
基于所述概率叠加值分析监控的当前定时任务是否异常。
此外,为实现上述目的,本申请第二方面还提供一种基于高斯分布的定时任务异常监控方法,所述基于高斯分布的定时任务异常监控方法包括:
采集监控的当前定时任务的各个预设参数数据;
根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值;所述概率叠加值为所述当前定时任务的各个预设参 数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;
基于所述概率叠加值分析监控的当前定时任务是否异常。
进一步地,为实现上述目的,本申请第三方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有基于高斯分布的定时任务异常监控***,所述基于高斯分布的定时任务异常监控***可被至少一个处理器执行,以使所述至少一个处理器执行如上述的基于高斯分布的定时任务异常监控方法的步骤。
本申请提出的基于高斯分布的定时任务异常监控方法、电子装置及可读存储介质,通过采集监控的当前定时任务的各个预设参数数据;根据预设计算公式计算出所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;基于所述概率叠加值分析监控的当前定时任务是否异常。由于能根据当前定时任务的各个预设参数数据获取其在对应高斯分布的概率空间中的概率值,并依据各个概率值的叠加值来自动判断当前定时任务是否异常,实现智能计算判定出定时任务是否异常,无需由运营人员人工分析判断,节约了人工和时间成本,提高了效率。
图1为本申请基于高斯分布的定时任务异常监控***较佳实施例的运行环境示意图;
图2为本申请基于高斯分布的定时任务异常监控方法一实施例的流程示意图。
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
本申请提供一种基于高斯分布的定时任务异常监控***。请参阅图1,是本申请基于高斯分布的定时任务异常监控***10较佳实施例的运行环境示意图。
在本实施例中,所述的基于高斯分布的定时任务异常监控***10安装并运行于电子装置1中。该电子装置1可包括,但不仅限于,存储器11、处理器12及显示器13。图1仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
所述存储器11为至少一种类型的可读计算机存储介质,所述存储器11在一些实施例中可以是所述电子装置1的内部存储单元,例如该电子装置1的硬盘或内存。所述存储器11在另一些实施例中也可以是所述电子装置1的外部存储设备,例如所述电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括所述电子装置1的内部存储单元也包括外部存储设备。所述存储器11用于存储安装于所述电子装置1的应用软件及各类数据,例如所述基于高斯分布的定时任务异常监控***10的程序代码等。所述存储器11还可以用于暂时地存储已经输出或者将要输出的数据。
所述处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器11中存储的程序代码或处理数据,例如执行所述基于高斯分布的定时任务异常监控***10等。
所述显示器13在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器13用于显示在所述电子装置1中处理的信息以及用于显示可视化的用户界面,例如当前定时任务的各个预设参数数据、当前定时任务是否异常的判断结果等。所述电子装置1的部件11-13通过***总线相互通信。
基于高斯分布的定时任务异常监控***10包括至少一个存储在所述存储器11中的计算机可读指令,该至少一个计算机可读指令可被所述处理器12执行,以实现本申请各实施例。
其中,上述基于高斯分布的定时任务异常监控***10被所述处理器12执行时实现如下步骤:
步骤S1,采集监控的当前定时任务的各个预设参数数据;
步骤S2,根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值;所述概率叠加值为所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现 概率值的叠加值;
步骤S3,基于所述概率叠加值分析监控的当前定时任务是否异常。
本实施例中预先将对定时任务进行异常监控的观测数据整合为若干具有代表性的参数即采集的各个预设参数数据。例如,各个预设参数数据可包括定时任务的当前cpu使用率,或当前cpu使用率与预先为该定时任务分配的内存使用率的比值;该定时任务的当前内存占用大小,或当前内存使用率与磁盘I/O使用率的比值;该定时任务的当前执行时间,或当前执行时间与历史平均执行时间的比值;该定时任务的当前cpu使用比例与历史cpu使用比例的比值;该定时任务的当前内存使用比例与历史使用比例的比值,等等。每个参数都存在着一个高斯分布的概率空间,采集到当前定时任务的各个预设参数数据后,可根据各个预设参数数据获取其在对应高斯分布的概率空间中的概率值,并依据各个概率值来自动判断当前定时任务是否异常。本实施例中能整合出如cpu占用率等各个监控参数,并动态智能计算判定出定时任务是否异常,无需由运营人员人工分析判断。
具体地,由于异常定时任务和正常定时任务在执行时比起来一定会具有较大差异,而正常定时任务在执行时的情况都存在相似性。因此,若将各个定时任务中的若干具有代表性的参数(如与定时任务相关的CPU、内存、磁盘I/O占用率、执行时间等)转换成各个数值点,则在一定区域内,在历史数据记录的若干正常定时任务中每个出现的点空间内周围存在着一个高斯分布的概率空间。基于此原理,本实施例中,定时任务异常监控***采集当前定时任务的各个预设参数数据(如与定时任务相关的CPU、内存、磁盘I/O占用率、执行时间等),并可获取各个预设参数数据对应的数值点,有以下两种可选的实施方式:1、可直接将各个预设参数数据的值作为对应的数值点,例如,当前定时任务的cpu使用率为0.05,则对应的数值点为0.05。2、还可按预设分段转换方式将预设参数数据转换成对应的属性数值点,例如,以分段的方式来转换成数值点,在此以预设参数为“执行时间”来举例说明,如执行时间为0-5分钟的标识为1;5-10分钟的标识为2;10-17分钟的标识为3;18-25分钟的标识为4;25-30分钟的标识为5;30分钟及以上的标识为6。根据不同监控参数的特征,可选择合适的实施方式1或2来进行数值点的转换,在此不做限定。
在过往历史数据的预设归档数据库中保存有曾经进行过定时任务异常判断的历史案例信息,找出历史案例中的所有正常定时任务。在对当前定时任务进行异常监控时,有如下公式:
P=Gauss(a1,mean(A1),mean((a1-mean(A1))^2))*Gauss(a2,mean(A2),mean((a2-mean(A2))^2))*…Gauss (an,mean(An),mean((an-mean(An))^2))
其中,a1,a2至an为需监控的当前定时任务中第1,2至n个预设参数(例如,选择几个较为重要的属性如与当前定时任务相关的CPU、内存、磁盘I/O占用率、执行时间等)转换后的属性数值点,A1,A2至An为预设归档数据库中所有正常定时任务对应的第1,2至n个预设属性信息(与提取的当前定时任务中相同的属性,如与定时任务相关的CPU、内存、磁盘I/O占用率、执行时间等)转换后的参考属性数值点的集合。公式中,mean(A1)为求A1的均值,决定了高斯分布(即正态分布)概率图的位置,mean((a1-mean(A1))^2)为求a1与mean(A1)的标准差,也是高斯分布(即正态分布)的分布的幅度。Gauss(an,mean(An),mean((an-mean(An))^2))为需监控的当前定时任务中第n个预设参数属性数值点在对应的第n个参考属性数值点的集合的高斯分布概率空间中的出现概率值,P为需监控的当前定时任务中第1,2…n个预设参数属性数值点的出现概率值的叠加值;最终计算得到的P值即为需监控的当前定时任务为正常定时任务的概率。
由于在一定区域内,在历史数据记录的若干正常定时任务中每个出现的点空间内周围存在着一个高斯分布的概率空间,即正常定时任务间存在相似性,可利用当前需监控的定时任务是否与历史数据记录的正常定时任务相似来判断当前需监控的定时任务是否异常。也即当前需监控的定时任务中各个数值点出现在历史数据记录的若干正常定时任务中每个点附近空间位置的概率越高,则当前需监控的定时任务与正常定时任务的相似度越高。具体在公式中,各个点的概率值叠加得到的参数P越高,则当前需监控的定时任务为正常定时任务的可能性越大。
因此,本实施例中可预先设定一个合理的预设概率阈值,若计算得到的当前需监控的定时任务为正常定时任务的概率即P值小于该预设概率阈值,则判断当前需监控的定时任务与正常定时任务不相似,即自动判断当前需监控的定时任务为异常定时任务;若P值大于该预设概率阈值,则判断当前需监控的定时任务与正常定时任务相似,即自动判断当前需监控的定时任务为正常定时任务。
在预先设定概率阈值时,可将历史数据记录的若干定时任务(包括异常定时任务和正常定时任务)利用公式:
P=Gauss(a1,mean(A1),mean((a1-mean(A1))^2))*Gauss(a2,mean(A2),mean((a2-mean(A2))^2))*…Gauss(an,mean(An),mean((an-mean(An))^2))来不断训练及验证概率阈值的合理性,在达到一定准确性后,即可设定好一合理的预设概率阈值。当然,在后续实际应用过程中,该预设概率阈值也可 以被用户根据不同应用场景的需要进行调整,如在对定时任务的执行要求较严格的场景中,可适当调高该阈值;在对定时任务的执行要求不太严格的场景中,可适当调低该阈值。更加灵活、实用。
本实施例通过采集监控的当前定时任务的各个预设参数数据;根据预设计算公式计算出所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;基于所述概率叠加值分析监控的当前定时任务是否异常。由于能根据当前定时任务的各个预设参数数据获取其在对应高斯分布的概率空间中的概率值,并依据各个概率值的叠加值来自动判断当前定时任务是否异常,实现智能计算判定出定时任务是否异常,无需由运营人员人工分析判断,节约了人工和时间成本,提高了效率。
在一可选的实施例中,在上述图1的实施例的基础上,所述基于高斯分布的定时任务异常监控***10被所述处理器12执行时,还包括:
若判断所述当前定时任务为异常定时任务,则发送包含所述当前定时任务及所述当前定时任务的各个预设参数数据的预警提示信息至预设终端,以提醒运营人员及时处理异常定时任务。
本实施例中,智能计算判定出当前定时任务为异常定时任务时,可通过短信、微信、QQ消息、邮件等方式发送包含所述当前定时任务及所述当前定时任务的各个预设参数数据的预警提示信息至预设终端如运营人员的手机、手持终端等,以提醒运营人员及时处理异常定时任务。
进一步地,本实施例中,除了通过设置概率阈值的方式来判定当前需监控的定时任务是否为异常定时任务之外,还可结合排序判断进行预警,例如,将需监控的当前定时任务中各个预设参数属性数值点在对应的参考属性数值点的集合的高斯分布概率空间中的出现概率值按高低顺序进行排序,排序中排在后几位的参数为需监控的当前定时任务中可能出现异常的参数,则将可能出现异常的参数发送至向运营人员以进行预警提示。或者,在另一种实施方式中,还可设定各个预设参数对应的异常概率阈值,若有预设参数属性数值点在对应的参考属性数值点的集合的高斯分布概率空间中的出现概率值高于其对应的异常概率阈值,则将该参数发送至向运营人员以进行预警提示。
如图2所示,图2为本申请基于高斯分布的定时任务异常监控方法一实施例的流程示意图,该基于高斯分布的定时任务异常监控方法包括以下步骤:
步骤S10,采集监控的当前定时任务的各个预设参数数据;
步骤S20,根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值;所述概率叠加值为所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;
步骤S30,基于所述概率叠加值分析监控的当前定时任务是否异常。
本实施例中预先将对定时任务进行异常监控的观测数据整合为若干具有代表性的参数即采集的各个预设参数数据。例如,各个预设参数数据可包括定时任务的当前cpu使用率,或当前cpu使用率与预先为该定时任务分配的内存使用率的比值;该定时任务的当前内存占用大小,或当前内存使用率与磁盘I/O使用率的比值;该定时任务的当前执行时间,或当前执行时间与历史平均执行时间的比值;该定时任务的当前cpu使用比例与历史cpu使用比例的比值;该定时任务的当前内存使用比例与历史使用比例的比值,等等。每个参数都存在着一个高斯分布的概率空间,采集到当前定时任务的各个预设参数数据后,可根据各个预设参数数据获取其在对应高斯分布的概率空间中的概率值,并依据各个概率值来自动判断当前定时任务是否异常。本实施例中能整合出如cpu占用率等各个监控参数,并动态智能计算判定出定时任务是否异常,无需由运营人员人工分析判断。
具体地,由于异常定时任务和正常定时任务在执行时比起来一定会具有较大差异,而正常定时任务在执行时的情况都存在相似性。因此,若将各个定时任务中的若干具有代表性的参数(如与定时任务相关的CPU、内存、磁盘I/O占用率、执行时间等)转换成各个数值点,则在一定区域内,在历史数据记录的若干正常定时任务中每个出现的点空间内周围存在着一个高斯分布的概率空间。基于此原理,本实施例中,定时任务异常监控***采集当前定时任务的各个预设参数数据(如与定时任务相关的CPU、内存、磁盘I/O占用率、执行时间等),并可获取各个预设参数数据对应的数值点,有以下两种可选的实施方式:1、可直接将各个预设参数数据的值作为对应的数值点,例如,当前定时任务的cpu使用率为0.05,则对应的数值点为0.05。2、还可按预设分段转换方式将预设参数数据转换成对应的属性数值点,例如,以分段的方式来转换成数值点,在此以预设参数为“执行时间”来举例说明,如执行时间为0-5分钟的标识为1;5-10分钟的标识为2;10-17分钟的标识为3;18-25分钟的标识为4;25-30分钟的标识为5;30分钟及以上的标识为6。根据不同监控参数的特征,可选择合适的实施方式1或2来进行数值点的转换,在此不做限定。
在过往历史数据的预设归档数据库中保存有曾经进行过定时任 务异常判断的历史案例信息,找出历史案例中的所有正常定时任务。在对当前定时任务进行异常监控时,有如下公式:
P=Gauss(a1,mean(A1),mean((a1-mean(A1))^2))*Gauss(a2,mean(A2),mean((a2-mean(A2))^2))*…Gauss(an,mean(An),mean((an-mean(An))^2))
其中,a1,a2至an为需监控的当前定时任务中第1,2至n个预设参数(例如,选择几个较为重要的属性如与当前定时任务相关的CPU、内存、磁盘I/O占用率、执行时间等)转换后的属性数值点,A1,A2至An为预设归档数据库中所有正常定时任务对应的第1,2至n个预设属性信息(与提取的当前定时任务中相同的属性,如与定时任务相关的CPU、内存、磁盘I/O占用率、执行时间等)转换后的参考属性数值点的集合。公式中,mean(A1)为求A1的均值,决定了高斯分布(即正态分布)概率图的位置,mean((a1-mean(A1))^2)为求a1与mean(A1)的标准差,也是高斯分布(即正态分布)的分布的幅度。Gauss(an,mean(An),mean((an-mean(An))^2))为需监控的当前定时任务中第n个预设参数属性数值点在对应的第n个参考属性数值点的集合的高斯分布概率空间中的出现概率值,P为需监控的当前定时任务中第1,2…n个预设参数属性数值点的出现概率值的叠加值;最终计算得到的P值即为需监控的当前定时任务为正常定时任务的概率。
由于在一定区域内,在历史数据记录的若干正常定时任务中每个出现的点空间内周围存在着一个高斯分布的概率空间,即正常定时任务间存在相似性,可利用当前需监控的定时任务是否与历史数据记录的正常定时任务相似来判断当前需监控的定时任务是否异常。也即当前需监控的定时任务中各个数值点出现在历史数据记录的若干正常定时任务中每个点附近空间位置的概率越高,则当前需监控的定时任务与正常定时任务的相似度越高。具体在公式中,各个点的概率值叠加得到的参数P越高,则当前需监控的定时任务为正常定时任务的可能性越大。
因此,本实施例中可预先设定一个合理的预设概率阈值,若计算得到的当前需监控的定时任务为正常定时任务的概率即P值小于该预设概率阈值,则判断当前需监控的定时任务与正常定时任务不相似,即自动判断当前需监控的定时任务为异常定时任务;若P值大于该预设概率阈值,则判断当前需监控的定时任务与正常定时任务相似,即自动判断当前需监控的定时任务为正常定时任务。
在预先设定概率阈值时,可将历史数据记录的若干定时任务(包括异常定时任务和正常定时任务)利用公式:
P=Gauss(a1,mean(A1),mean((a1-mean(A1))^2)) *Gauss(a2,mean(A2),mean((a2-mean(A2))^2))*…Gauss(an,mean(An),mean((an-mean(An))^2))来不断训练及验证概率阈值的合理性,在达到一定准确性后,即可设定好一合理的预设概率阈值。当然,在后续实际应用过程中,该预设概率阈值也可以被用户根据不同应用场景的需要进行调整,如在对定时任务的执行要求较严格的场景中,可适当调高该阈值;在对定时任务的执行要求不太严格的场景中,可适当调低该阈值。更加灵活、实用。
本实施例通过采集监控的当前定时任务的各个预设参数数据;根据预设计算公式计算出所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;基于所述概率叠加值分析监控的当前定时任务是否异常。由于能根据当前定时任务的各个预设参数数据获取其在对应高斯分布的概率空间中的概率值,并依据各个概率值的叠加值来自动判断当前定时任务是否异常,实现智能计算判定出定时任务是否异常,无需由运营人员人工分析判断,节约了人工和时间成本,提高了效率。
在一可选的实施例中,在上述实施例的基础上,该方法还包括:
若判断所述当前定时任务为异常定时任务,则发送包含所述当前定时任务及所述当前定时任务的各个预设参数数据的预警提示信息至预设终端,以提醒运营人员及时处理异常定时任务。
本实施例中,智能计算判定出当前定时任务为异常定时任务时,可通过短信、微信、QQ消息、邮件等方式发送包含所述当前定时任务及所述当前定时任务的各个预设参数数据的预警提示信息至预设终端如运营人员的手机、手持终端等,以提醒运营人员及时处理异常定时任务。
进一步地,本实施例中,除了通过设置概率阈值的方式来判定当前需监控的定时任务是否为异常定时任务之外,还可结合排序判断进行预警,例如,将需监控的当前定时任务中各个预设参数属性数值点在对应的参考属性数值点的集合的高斯分布概率空间中的出现概率值按高低顺序进行排序,排序中排在后几位的参数为需监控的当前定时任务中可能出现异常的参数,则将可能出现异常的参数发送至向运营人员以进行预警提示。或者,在另一种实施方式中,还可设定各个预设参数对应的异常概率阈值,若有预设参数属性数值点在对应的参考属性数值点的集合的高斯分布概率空间中的出现概率值高于其对应的异常概率阈值,则将该参数发送至向运营人员以进行预警提示。
此外,本申请还提供一种计算机可读存储介质,所述计算机可读 存储介质存储有基于高斯分布的定时任务异常监控***,所述基于高斯分布的定时任务异常监控***可被至少一个处理器执行,以使所述至少一个处理器执行如上述实施例中的基于高斯分布的定时任务异常监控方法的步骤,该基于高斯分布的定时任务异常监控方法的步骤S10、S20、S30等具体实施过程如上文所述,在此不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上参照附图说明了本申请的优选实施例,并非因此局限本申请的权利范围。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本领域技术人员不脱离本申请的范围和实质,可以有多种变型方案实现本申请,比如作为一个实施例的特征可用于另一实施例而得到又一实施例。凡在运用本申请的技术构思之内所作的任何修改、等同替换和改进,均应在本申请的权利范围之内。
Claims (20)
- 一种电子装置,其特征在于,所述电子装置包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的基于高斯分布的定时任务异常监控***,所述基于高斯分布的定时任务异常监控***被所述处理器执行时实现如下步骤:采集监控的当前定时任务的各个预设参数数据;根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值;所述概率叠加值为所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;基于所述概率叠加值分析监控的当前定时任务是否异常。
- 如权利要求1所述的电子装置,其特征在于,所述根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值的步骤包括:将采集的各个预设参数数据按预设分段转换方式转换成对应的属性数值点,并将转换得到的各个属性数值点代入如下公式:P=Gauss(a1,mean(A1),mean((a1-mean(A1))^2))*Gauss(a2,mean(A2),mean((a2-mean(A2))^2))*Gauss(an,mean(An),mean((an-mean(An))^2))其中,a1至an为所述当前定时任务中第1至n个预设参数数据转换后的属性数值点,A1至An为预设归档数据库中所有正常定时任务对应的第1至n个预设参数数据转换后的参考属性数值点的集合;Gauss(an,mean(An),mean((an-mean(An))^2))为所述当前定时任务中第n个预设参数数据转换后的属性数值点在对应的第n个参考属性数值点的集合的高斯分布概率空间中的出现概率值,P为所述当前定时任务中第1至n个预设参数数据转换后的属性数值点的出现概率值的叠加值。
- 如权利要求2所述的电子装置,其特征在于,所述基于所述概率叠加值分析监控的当前定时任务是否异常的步骤包括:若P大于预设概率阈值,则判断所述当前定时任务为正常定时任务;若P小于或等于预设概率阈值,则判断所述当前定时任务为异常定时任务。
- 如权利要求3所述的电子装置,其特征在于,所述基于高斯分布的定时任务异常监控***被所述处理器执行时,还实现如下步骤:若判断所述当前定时任务为异常定时任务,则发送包含所述当前 定时任务及所述当前定时任务的各个预设参数数据的预警提示信息至预设终端,以提醒运营人员及时处理异常定时任务。
- 如权利要求1所述的电子装置,其特征在于,所述预设参数数据包括:所述当前定时任务的当前cpu使用率与预先为所述当前定时任务分配的内存使用率的比值、当前内存使用率与磁盘I/O使用率的比值、当前执行时间与历史平均执行时间的比值、当前cpu使用比例与历史cpu使用比例的比值、当前内存使用比例与历史内存使用比例的比值中的至少一个。
- 如权利要求2所述的电子装置,其特征在于,所述预设参数数据包括:所述当前定时任务的当前cpu使用率与预先为所述当前定时任务分配的内存使用率的比值、当前内存使用率与磁盘I/O使用率的比值、当前执行时间与历史平均执行时间的比值、当前cpu使用比例与历史cpu使用比例的比值、当前内存使用比例与历史内存使用比例的比值中的至少一个。
- 如权利要求3所述的电子装置,其特征在于,所述预设参数数据包括:所述当前定时任务的当前cpu使用率与预先为所述当前定时任务分配的内存使用率的比值、当前内存使用率与磁盘I/O使用率的比值、当前执行时间与历史平均执行时间的比值、当前cpu使用比例与历史cpu使用比例的比值、当前内存使用比例与历史内存使用比例的比值中的至少一个。
- 如权利要求4所述的电子装置,其特征在于,所述预设参数数据包括:所述当前定时任务的当前cpu使用率与预先为所述当前定时任务分配的内存使用率的比值、当前内存使用率与磁盘I/O使用率的比值、当前执行时间与历史平均执行时间的比值、当前cpu使用比例与历史cpu使用比例的比值、当前内存使用比例与历史内存使用比例的比值中的至少一个。
- 一种基于高斯分布的定时任务异常监控方法,其特征在于,所述基于高斯分布的定时任务异常监控方法包括:采集监控的当前定时任务的各个预设参数数据;根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值;所述概率叠加值为所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;基于所述概率叠加值分析监控的当前定时任务是否异常。
- 如权利要求9所述的基于高斯分布的定时任务异常监控方法,其特征在于,所述根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值的步骤包括:将采集的各个预设参数数据按预设分段转换方式转换成对应的属性数值点,并将转换得到的各个属性数值点代入如下公式:P=Gauss(a1,mean(A1),mean((a1-mean(A1))^2))*Gauss(a2,mean(A2),mean((a2-mean(A2))^2))*Gauss(an,mean(An),mean((an-mean(An))^2))其中,a1至an为所述当前定时任务中第1至n个预设参数数据转换后的属性数值点,A1至An为预设归档数据库中所有正常定时任务对应的第1至n个预设参数数据转换后的参考属性数值点的集合;Gauss(an,mean(An),mean((an-mean(An))^2))为所述当前定时任务中第n个预设参数数据转换后的属性数值点在对应的第n个参考属性数值点的集合的高斯分布概率空间中的出现概率值,P为所述当前定时任务中第1至n个预设参数数据转换后的属性数值点的出现概率值的叠加值。
- 如权利要求10所述的基于高斯分布的定时任务异常监控方法,其特征在于,所述基于所述概率叠加值分析监控的当前定时任务是否异常的步骤包括:若P大于预设概率阈值,则判断所述当前定时任务为正常定时任务;若P小于或等于预设概率阈值,则判断所述当前定时任务为异常定时任务。
- 如权利要求11所述的基于高斯分布的定时任务异常监控方法,其特征在于,还包括:若判断所述当前定时任务为异常定时任务,则发送包含所述当前定时任务及所述当前定时任务的各个预设参数数据的预警提示信息至预设终端,以提醒运营人员及时处理异常定时任务。
- 如权利要求9所述的基于高斯分布的定时任务异常监控方法,其特征在于,所述预设参数数据包括:所述当前定时任务的当前cpu使用率与预先为所述当前定时任务分配的内存使用率的比值、当前内存使用率与磁盘I/O使用率的比值、当前执行时间与历史平均执行时间的比值、当前cpu使用比例与历史cpu使用比例的比值、当前内存使用比例与历史内存使用比例的比值中的至少一个。
- 如权利要求10所述的基于高斯分布的定时任务异常监控方法,其特征在于,所述预设参数数据包括:所述当前定时任务的当前cpu使用率与预先为所述当前定时任务分配的内存使用率的比值、当前内存使用率与磁盘I/O使用率的比值、当前执行时间与历史平均执行时间的比值、当前cpu使用比例与历史cpu使用比例的比值、当前内存使用比例与历史内存使用比例的比值中的至少一个。
- 如权利要求11所述的基于高斯分布的定时任务异常监控方法,其特征在于,所述预设参数数据包括:所述当前定时任务的当前cpu使用率与预先为所述当前定时任务分配的内存使用率的比值、当前内存使用率与磁盘I/O使用率的比值、当前执行时间与历史平均执行时间的比值、当前cpu使用比例与历史cpu使用比例的比值、当前内存使用比例与历史内存使用比例的比值中的至少一个。
- 如权利要求12所述的基于高斯分布的定时任务异常监控方法,其特征在于,所述预设参数数据包括:所述当前定时任务的当前cpu使用率与预先为所述当前定时任务分配的内存使用率的比值、当前内存使用率与磁盘I/O使用率的比值、当前执行时间与历史平均执行时间的比值、当前cpu使用比例与历史cpu使用比例的比值、当前内存使用比例与历史内存使用比例的比值中的至少一个。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有基于高斯分布的定时任务异常监控***,所述基于高斯分布的定时任务异常监控***被处理器执行时实现如下步骤:采集监控的当前定时任务的各个预设参数数据;根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值;所述概率叠加值为所述当前定时任务的各个预设参数数据在预设正常定时任务的高斯分布概率空间中的出现概率值的叠加值;基于所述概率叠加值分析监控的当前定时任务是否异常。
- 如权利要求17所述的计算机可读存储介质,其特征在于,所述根据预设计算公式计算出所述当前定时任务的各个预设参数数据的概率叠加值的步骤包括:将采集的各个预设参数数据按预设分段转换方式转换成对应的属性数值点,并将转换得到的各个属性数值点代入如下公式:P=Gauss(a1,mean(A1),mean((a1-mean(A1))^2))*Gauss(a2,mean(A2),mean((a2-mean(A2))^2))*Gauss(an,mean(An),mean((an-mean(An))^2))其中,a1至an为所述当前定时任务中第1至n个预设参数数据转换后的属性数值点,A1至An为预设归档数据库中所有正常定时 任务对应的第1至n个预设参数数据转换后的参考属性数值点的集合;Gauss(an,mean(An),mean((an-mean(An))^2))为所述当前定时任务中第n个预设参数数据转换后的属性数值点在对应的第n个参考属性数值点的集合的高斯分布概率空间中的出现概率值,P为所述当前定时任务中第1至n个预设参数数据转换后的属性数值点的出现概率值的叠加值。
- 如权利要求18所述的计算机可读存储介质,其特征在于,所述基于所述概率叠加值分析监控的当前定时任务是否异常的步骤包括:若P大于预设概率阈值,则判断所述当前定时任务为正常定时任务;若P小于或等于预设概率阈值,则判断所述当前定时任务为异常定时任务。
- 如权利要求19所述的计算机可读存储介质,其特征在于,还包括:若判断所述当前定时任务为异常定时任务,则发送包含所述当前定时任务及所述当前定时任务的各个预设参数数据的预警提示信息至预设终端,以提醒运营人员及时处理异常定时任务。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810694778.5A CN109101390B (zh) | 2018-06-29 | 2018-06-29 | 基于高斯分布的定时任务异常监控方法、电子装置及介质 |
CN201810694778.5 | 2018-06-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020000738A1 true WO2020000738A1 (zh) | 2020-01-02 |
Family
ID=64845179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/108209 WO2020000738A1 (zh) | 2018-06-29 | 2018-09-28 | 基于高斯分布的定时任务异常监控方法、电子装置及介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109101390B (zh) |
WO (1) | WO2020000738A1 (zh) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857618B (zh) * | 2019-02-02 | 2022-07-08 | 中国银行股份有限公司 | 一种监控方法、装置及*** |
CN110008082B (zh) * | 2019-03-16 | 2022-06-17 | 平安科技(深圳)有限公司 | 异常任务智能监测方法、装置、设备及存储介质 |
CN110569114B (zh) * | 2019-08-15 | 2023-03-31 | 平安普惠企业管理有限公司 | 一种业务处理方法、装置、设备及存储介质 |
CN114998839B (zh) * | 2022-07-06 | 2023-01-31 | 北京原流科技有限公司 | 一种基于层级分布的数据管理方法以及*** |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103592545A (zh) * | 2013-11-22 | 2014-02-19 | 国家电网公司 | 一种基于概率统计的变压器温升异常监测诊断方法 |
CN104423532A (zh) * | 2013-09-06 | 2015-03-18 | ***通信集团公司 | 移动终端的电源管理方法、装置及*** |
CN106383951A (zh) * | 2016-09-20 | 2017-02-08 | 北京理工大学 | 一种电力驱动交通工具的故障诊断方法和*** |
CN107103658A (zh) * | 2017-04-25 | 2017-08-29 | 哈尔滨工业大学 | 基于深度学习与高斯分布的航空发动机气路异常检测方法 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB201215649D0 (en) * | 2012-09-03 | 2012-10-17 | Isis Innovation | System monitoring |
CN104376504B (zh) * | 2014-11-06 | 2017-10-27 | 国家电网公司 | 一种基于解析法的配电***概率可靠性评估方法 |
CN105071983B (zh) * | 2015-07-16 | 2017-02-01 | 清华大学 | 一种面向云计算在线业务的异常负载检测方法 |
CN107197473B (zh) * | 2017-06-15 | 2020-05-15 | 三星电子(中国)研发中心 | 一种终端异常状态确定方法和装置 |
CN107526667B (zh) * | 2017-07-28 | 2020-04-28 | 阿里巴巴集团控股有限公司 | 一种指标异常检测方法、装置以及电子设备 |
CN107704953A (zh) * | 2017-09-20 | 2018-02-16 | 河海大学 | Ewt分位数回归森林的短期风电功率概率密度预测方法 |
-
2018
- 2018-06-29 CN CN201810694778.5A patent/CN109101390B/zh active Active
- 2018-09-28 WO PCT/CN2018/108209 patent/WO2020000738A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104423532A (zh) * | 2013-09-06 | 2015-03-18 | ***通信集团公司 | 移动终端的电源管理方法、装置及*** |
CN103592545A (zh) * | 2013-11-22 | 2014-02-19 | 国家电网公司 | 一种基于概率统计的变压器温升异常监测诊断方法 |
CN106383951A (zh) * | 2016-09-20 | 2017-02-08 | 北京理工大学 | 一种电力驱动交通工具的故障诊断方法和*** |
CN107103658A (zh) * | 2017-04-25 | 2017-08-29 | 哈尔滨工业大学 | 基于深度学习与高斯分布的航空发动机气路异常检测方法 |
Also Published As
Publication number | Publication date |
---|---|
CN109101390A (zh) | 2018-12-28 |
CN109101390B (zh) | 2021-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020000738A1 (zh) | 基于高斯分布的定时任务异常监控方法、电子装置及介质 | |
CN111835582B (zh) | 物联网巡检设备的配置方法、装置、计算机设备 | |
US9354867B2 (en) | System and method for identifying, analyzing and integrating risks associated with source code | |
CN111352921A (zh) | 基于elk的慢查询监控方法、装置、计算机设备及存储介质 | |
JP5913145B2 (ja) | ログ可視化装置及び方法及びプログラム | |
US11042525B2 (en) | Extracting and labeling custom information from log messages | |
CN109254901B (zh) | 一种指标监测方法及*** | |
CN111415107B (zh) | 配电网台区画像生成方法、装置、计算机设备和存储介质 | |
CN109670091B (zh) | 一种基于数据标准的元数据智能维护方法和装置 | |
CN113505044B (zh) | 数据库告警方法、装置、设备和存储介质 | |
CN110069925B (zh) | 软件监测方法、***及计算机可读存储介质 | |
WO2018122890A1 (ja) | ログ分析方法、システムおよびプログラム | |
CN113949652B (zh) | 基于人工智能的用户异常行为检测方法、装置及相关设备 | |
CN107094086A (zh) | 一种信息获取方法和装置 | |
CN113051308A (zh) | 告警信息处理方法、设备、存储介质及装置 | |
CN116205396A (zh) | 一种基于数据中台的数据全景监控方法及*** | |
CN113806343B (zh) | 一种车联网数据质量的评估方法和*** | |
CN113438123B (zh) | 网络流量监控方法、装置、计算机设备和存储介质 | |
CN111221890A (zh) | 通用指标类自动监控预警方法及装置 | |
CN110324588B (zh) | 基于字典结构的视频分析警告事件信息存储方法 | |
CN110850955A (zh) | 终端的位置信息处理方法、装置及计算设备、存储介质 | |
WO2016206241A1 (zh) | 数据分析方法及装置 | |
CN110473396A (zh) | 交通拥堵数据分析方法、装置、电子设备及存储介质 | |
CN115204617A (zh) | 一种电网作业计划处理方法、装置、设备及存储介质 | |
US20170337644A1 (en) | Data driven invocation of realtime wind market forecasting analytics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18924185 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29.03.2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18924185 Country of ref document: EP Kind code of ref document: A1 |