WO2018201863A1 - 一种应用程序运维方法、装置、设备以及存储介质 - Google Patents

一种应用程序运维方法、装置、设备以及存储介质 Download PDF

Info

Publication number
WO2018201863A1
WO2018201863A1 PCT/CN2018/082519 CN2018082519W WO2018201863A1 WO 2018201863 A1 WO2018201863 A1 WO 2018201863A1 CN 2018082519 W CN2018082519 W CN 2018082519W WO 2018201863 A1 WO2018201863 A1 WO 2018201863A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
processing rule
exception
preset processing
host
Prior art date
Application number
PCT/CN2018/082519
Other languages
English (en)
French (fr)
Inventor
黄伟星
谢晓华
袁楚才
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2018201863A1 publication Critical patent/WO2018201863A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Definitions

  • the present application relates to the field of computer technologies, and in particular, to an application operation and maintenance method, apparatus, device, and storage medium.
  • the embodiment of the present application provides an application program operation and maintenance method, device, device, and storage medium, which can automatically solve the phenomenon of application abnormality, shorten the time of application abnormal recovery, and improve the efficiency of operation and maintenance work.
  • an embodiment of the present application provides an application operation and maintenance method, where the method includes:
  • the result of processing the application exception is sent to the operation and maintenance personnel.
  • an embodiment of the present application provides an application operation and maintenance device, and the device includes:
  • An identification unit configured to identify an application exception caused by an application running, identifying a type of the application exception
  • An obtaining unit configured to acquire a preset processing rule corresponding to the application abnormality
  • a processing unit configured to automatically process the application exception according to the preset processing rule
  • a sending unit configured to send a result of processing the application abnormality to an operation and maintenance personnel.
  • an embodiment of the present application provides an application operation and maintenance device, where the device includes: a memory and a processor;
  • a memory for storing a program that implements application exception handling
  • a processor for running a program stored in the memory to perform the following operations:
  • the result of processing the application exception is sent to the operation and maintenance personnel.
  • the embodiment of the present application further provides a computer readable storage medium, where the one or more computer programs are stored, and the one or more computer programs may be one or more
  • the processor executes to implement the following steps:
  • the result of processing the application exception is sent to the operation and maintenance personnel.
  • the embodiment of the present application can automatically solve the phenomenon of application abnormality, shorten the time of application abnormal recovery, and improve the efficiency of operation and maintenance work.
  • FIG. 1 is a schematic flowchart of an application operation and maintenance method according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an application operation and maintenance method according to another embodiment of the present application.
  • FIG. 3 is a schematic block diagram of an application operation and maintenance apparatus according to an embodiment of the present application.
  • FIG. 4 is another schematic block diagram of an application operation and maintenance apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an application operation and maintenance device according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of an application operation and maintenance method according to an embodiment of the present application. The method includes steps S101 to S104.
  • the application may be an application APP downloaded by the user from the Internet, such as WeChat, QQ, Alipay, etc., or may be a system application existing in the system to support the development and operation of the application APP, such as Office. , SQL-server, and so on.
  • these applications are hosted on the system or the system host, and the application needs to occupy or consume the resources of the system or the host on the system during the running process, if the application occupies too many systems or hosts during the running process, The resources often cause application exceptions on the host.
  • the host has a host full volume, high CPU usage, and thread blocking, which causes the host to fail to operate normally, which in turn causes the application to fail.
  • the operation of the host can be quickly restored, so that the application can run normally.
  • the host volume full refers to the insufficient storage space of the hard disk and the disk is full.
  • the user can set the threshold of the host storage space on the preset monitoring system, if the preset monitoring is performed.
  • the system monitors that the storage space of the current host exceeds the set threshold, and determines that the host volume is full in the current host, and further determines that an application abnormality is detected in the current host, where the preset is set on the monitoring system.
  • the threshold can be set by the user and is not limited here; the high CPU usage means that the running program occupies a high proportion of CPU resources.
  • the user can set the CPU usage on the preset monitoring system.
  • the threshold of the rate if the preset monitoring system monitors that the CPU usage of the current host exceeds the set threshold, it determines that the CPU usage is high in the current host, and further determines that an application abnormality is detected in the current host, where
  • the threshold set on the preset monitoring system can be set by the user.
  • the thread blocking means that the thread pauses during the execution. When detecting whether the thread is blocked, the user can set the thread blocking occupancy value on the preset monitoring system. If the preset monitoring system monitors If the thread occupancy rate of the current host exceeds the set occupancy value, it is determined that a thread blocking occurs in the current host, and further determining that an application abnormality is detected in the current host, wherein the occupied value set on the preset monitoring system is determined. It can be set by the user and is not limited here.
  • a preset processing rule corresponding to the application abnormality is acquired, and the application abnormality is automatically processed according to an execution logic of the preset processing rule; wherein, if the application is The exception is that the host is full.
  • the preset processing rule is: identify and delete the temporary files and logs stored by the current host, or compress the temporary files and logs stored by the current host to form a compressed file, and move the compressed file to other hosts.
  • the preset processing rule is: identifying the application with the highest CPU usage rate, closing/restarting the identified application and making the current use The terminal of the application is connected to the other host; if the application is abnormally blocked by the thread, the preset processing rule is: the current host does not receive the task, and the current host is restarted after the current task is processed, and other tasks are restarted. Assign to other hosts.
  • the preset processing rule is determined by the user according to a common known application abnormality.
  • the corresponding processing rule is triggered to automatically process the abnormality of the application, but is not triggered.
  • Other processing rules will not be executed or skipped.
  • the processing result generation notification information of the preset processing rule processing application abnormality is sent to the operation and maintenance personnel, wherein the information recorded in the notification information has a type of application abnormality and a processing rule adopted for the application abnormality.
  • Content and the result of processing by the processing rule since the detailed information of the processing application exception is recorded in the notification information, the operation and maintenance personnel can timely understand the type of the application exception and the processing result of the application abnormality through the notification information,
  • the preset processing rule realizes the automatic processing of the application abnormality, which greatly improves the work efficiency of the operation and maintenance personnel; specifically, the notification information can be sent to the operation and maintenance personnel's mailbox by mail, and
  • the form of sending the notification information in the actual application is not limited herein.
  • the embodiment of the present application obtains a preset processing rule corresponding to the application abnormality by identifying the type of the application abnormality, automatically processes the application abnormality according to the preset processing rule, and processes the application.
  • the abnormal result is sent to the operation and maintenance personnel, which can automatically solve the phenomenon of application abnormality, shorten the time of application abnormal recovery, and improve the efficiency of operation and maintenance.
  • FIG. 2 is a schematic flowchart of an application operation and maintenance method according to an embodiment of the present application.
  • the method includes steps S201 to S205.
  • the application may be an application APP downloaded by the user from the Internet, such as WeChat, QQ, Alipay, etc., or may be a system application existing in the system to support the development and operation of the application APP, such as Office. , SQL-server, and so on.
  • these applications are hosted on the system or the system host, and the application needs to occupy or consume the resources of the system or the host on the system during the running process, if the application occupies too many systems or hosts during the running process, The resources often cause application exceptions on the host.
  • the host has a host full volume, high CPU usage, and thread blocking, which causes the host to fail to operate normally, which in turn causes the application to fail.
  • the operation of the host can be quickly restored, so that the application can run normally.
  • the host volume full refers to the insufficient storage space of the hard disk and the disk is full.
  • the user can set the threshold of the host storage space on the preset monitoring system, if the preset monitoring is performed.
  • the system monitors that the storage space of the current host exceeds the set threshold, and determines that the host volume is full in the current host, and further determines that an application abnormality is detected in the current host, where the preset is set on the monitoring system.
  • the threshold can be set by the user and is not limited here; the high CPU usage means that the running program occupies a high proportion of CPU resources.
  • the user can set the CPU usage on the preset monitoring system.
  • the threshold of the rate if the preset monitoring system monitors that the CPU usage of the current host exceeds the set threshold, it determines that the CPU usage is high in the current host, and further determines that an application abnormality is detected in the current host, where
  • the threshold set on the preset monitoring system can be set by the user.
  • the thread blocking means that the thread pauses during the execution. When detecting whether the thread is blocked, the user can set the thread blocking occupancy value on the preset monitoring system. If the preset monitoring system monitors If the thread occupancy rate of the current host exceeds the set occupancy value, it is determined that a thread blocking occurs in the current host, and further determining that an application abnormality is detected in the current host, wherein the occupied value set on the preset monitoring system is determined. It can be set by the user and is not limited here.
  • a processing rule corresponding to the application exception is set in advance, where each application exception corresponds to a preset processing rule, and different application exceptions correspond to different preset processing rules.
  • a processing rule corresponding to the application exception is set in the terminal in advance, where each application exception corresponds to a preset processing rule, and different application exceptions correspond to different preset processing rules.
  • the preset processing rule is used to automatically handle the application exception that occurs. For example, if the host volume is full, the CPU usage is high, or the thread is blocked, the application exception is always dependent on the manual non-analytic operation, which will affect the timeliness of the application exception and is also prone to operational errors.
  • a preset processing rule corresponding to the application abnormality is acquired, and the application abnormality is automatically processed according to an execution logic of the preset processing rule; wherein, if the application is The exception is that the host is full.
  • the preset processing rule is: identify and delete the temporary files and logs stored by the current host, or compress the temporary files and logs stored by the current host to form a compressed file, and move the compressed file to other hosts.
  • the preset processing rule is: identifying the application with the highest CPU usage rate, closing/restarting the identified application and making the current use The terminal of the application is connected to the other host; if the application is abnormally blocked by the thread, the preset processing rule is: the current host does not receive the task, and the current host is restarted after the current task is processed, and other tasks are restarted. Assign to other hosts.
  • the preset processing rule is determined by the user according to a common known application abnormality.
  • the corresponding processing rule is triggered to automatically process the abnormality of the application, but is not triggered.
  • Other processing rules will not be executed or skipped.
  • the processing result generation notification information of the preset processing rule processing application abnormality is sent to the operation and maintenance personnel, wherein the information recorded in the notification information has a type of application abnormality and a processing rule adopted for the application abnormality.
  • Content and the result of processing by the processing rule since the detailed information of the processing application exception is recorded in the notification information, the operation and maintenance personnel can timely understand the type of the application exception and the processing result of the application abnormality through the notification information,
  • the preset processing rule realizes the automatic processing of the application abnormality, which greatly improves the work efficiency of the operation and maintenance personnel; specifically, the notification information can be sent to the operation and maintenance personnel's mailbox by mail, and
  • the form of sending the notification information in the actual application is not limited herein.
  • the processing rule of the application exception is set in advance, and if the application exception occurs, the preset rule can be automatically processed to reduce the manual dependency, improve the timeliness of the application exception processing, and reduce The phenomenon of incorrect operation.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the embodiment of the present application further provides an application operation and maintenance device.
  • the device 300 includes an identification unit 301 , an obtaining unit 302 , a processing unit 303 , and a sending unit 304 .
  • the identification unit 301 is configured to identify an application abnormality caused by an application running, and identify a type of the application abnormality.
  • the application may be an application APP downloaded by the user from the Internet, such as WeChat, QQ, Alipay, etc., or may be a system application existing in the system to support the development and operation of the application APP, such as Office. , SQL-server, and so on. Because these applications are hosted on the system or the system host, and the application needs to occupy or consume the resources of the system or the host on the system during the running process, if the application occupies too many systems or hosts during the running process, The resources often cause application exceptions on the host.
  • the host has a host full volume, high CPU usage, and thread blocking, which causes the host to fail to operate normally, which in turn causes the application to fail.
  • the operation of the host can be quickly restored, so that the application can run normally.
  • the host volume full refers to the insufficient storage space of the hard disk and the disk is full.
  • the user can set the threshold of the host storage space on the preset monitoring system, if the preset monitoring is performed.
  • the system monitors that the storage space of the current host exceeds the set threshold, and determines that the host volume is full in the current host, and further determines that an application abnormality is detected in the current host, where the preset is set on the monitoring system.
  • the threshold can be set by the user and is not limited here; the high CPU usage means that the running program occupies a high proportion of CPU resources.
  • the user can set the CPU usage on the preset monitoring system.
  • the threshold of the rate if the preset monitoring system monitors that the CPU usage of the current host exceeds the set threshold, it determines that the CPU usage is high in the current host, and further determines that an application abnormality is detected in the current host, where
  • the threshold set on the preset monitoring system can be set by the user. This is not limited; thread blocking refers to the thread is suspended during execution. When detecting whether the thread is blocked, the user can set the thread blocking occupancy value on the preset monitoring system.
  • the preset monitoring system monitors the current If the thread occupancy rate of the host exceeds the set occupancy value, it is determined that the thread is blocked in the current host, and further determining that the application abnormality is detected in the current host, wherein the occupied value set on the preset monitoring system may be It is set by the user and is not limited here.
  • the obtaining unit 302 is configured to acquire a preset processing rule corresponding to the application abnormality.
  • a preset processing rule corresponding to the application abnormality is acquired, and the application abnormality is automatically processed according to an execution logic of the preset processing rule; wherein, if the application is The exception is that the host is full.
  • the preset processing rule is: identify and delete the temporary files and logs stored by the current host, or compress the temporary files and logs stored by the current host to form a compressed file, and move the compressed file to other hosts.
  • the preset processing rule is: identifying the application with the highest CPU usage rate, closing/restarting the identified application and making the current use The terminal of the application is connected to the other host; if the application is abnormally blocked by the thread, the preset processing rule is: the current host does not receive the task, and the current host is restarted after the current task is processed, and other tasks are restarted. Assign to other hosts.
  • the processing unit 303 is configured to automatically process the application exception according to the preset processing rule.
  • the preset processing rule is determined by the user according to a common known application abnormality. When an application abnormality is detected, the corresponding processing rule is triggered to automatically process the abnormality of the application, but is not triggered. Other processing rules will not be executed or skipped.
  • the sending unit 304 is configured to send a result of processing the application abnormality to an operation and maintenance personnel.
  • the processing result generation notification information of the preset processing rule processing application abnormality is sent to the operation and maintenance personnel, wherein the information recorded in the notification information has a type of application abnormality and a processing rule adopted for the application abnormality.
  • the preset processing rule realizes the automatic processing of the application abnormality, which greatly improves the work efficiency of the operation and maintenance personnel; specifically, the notification information can be sent to the operation and maintenance personnel's mailbox by mail, and The form of sending the notification information in the actual application is not limited herein.
  • the embodiment of the present application obtains a preset processing rule corresponding to the application abnormality by identifying the type of the application abnormality, automatically processes the application abnormality according to the preset processing rule, and processes the application.
  • the abnormal result is sent to the operation and maintenance personnel, which can automatically solve the phenomenon of application abnormality, shorten the time of application abnormal recovery, and improve the efficiency of operation and maintenance.
  • the embodiment of the present application further provides an application operation and maintenance device, and the device 400 includes: an identification unit 401, a setting unit 402, an obtaining unit 403, and a processing unit 404. Transmitting unit 405.
  • the identification unit 401 is configured to identify an application abnormality caused by an application running, and identify the type of the application abnormality.
  • the application may be an application APP downloaded by the user from the Internet, such as WeChat, QQ, Alipay, etc., or may be a system application existing in the system to support the development and operation of the application APP, such as Office. , SQL-server, and so on. Because these applications are hosted on the system or the system host, and the application needs to occupy or consume the resources of the system or the host on the system during the running process, if the application occupies too many systems or hosts during the running process, The resources often cause application exceptions on the host.
  • the host has a host full volume, high CPU usage, and thread blocking, which causes the host to fail to operate normally, which in turn causes the application to fail.
  • the operation of the host can be quickly restored, so that the application can run normally.
  • the host volume full refers to the insufficient storage space of the hard disk and the disk is full.
  • the user can set the threshold of the host storage space on the preset monitoring system, if the preset monitoring is performed.
  • the system monitors that the storage space of the current host exceeds the set threshold, and determines that the host volume is full in the current host, and further determines that an application abnormality is detected in the current host, where the preset is set on the monitoring system.
  • the threshold can be set by the user and is not limited here; the high CPU usage means that the running program occupies a high proportion of CPU resources.
  • the user can set the CPU usage on the preset monitoring system.
  • the threshold of the rate if the preset monitoring system monitors that the CPU usage of the current host exceeds the set threshold, it determines that the CPU usage is high in the current host, and further determines that an application abnormality is detected in the current host, where
  • the threshold set on the preset monitoring system can be set by the user. This is not limited; thread blocking refers to the thread is suspended during execution. When detecting whether the thread is blocked, the user can set the thread blocking occupancy value on the preset monitoring system.
  • the preset monitoring system monitors the current If the thread occupancy rate of the host exceeds the set occupancy value, it is determined that the thread is blocked in the current host, and further determining that the application abnormality is detected in the current host, wherein the occupied value set on the preset monitoring system may be It is set by the user and is not limited here.
  • the setting unit 402 is configured to preset a processing rule corresponding to the application exception, where each application exception corresponds to a preset processing rule, and different application exceptions correspond to different preset processing rules.
  • a processing rule corresponding to the application exception is set in the terminal in advance, where each application exception corresponds to a preset processing rule, and different application exceptions correspond to different preset processing rules.
  • the preset processing rule is used to automatically handle the application exception that occurs. For example, if the host volume is full, the CPU usage is high, or the thread is blocked, the application exception is always dependent on the manual non-analytic operation, which will affect the timeliness of the application exception and is also prone to operational errors.
  • the obtaining unit 403 is configured to acquire a preset processing rule corresponding to the application abnormality.
  • a preset processing rule corresponding to the application abnormality is acquired, and the application abnormality is automatically processed according to an execution logic of the preset processing rule; wherein, if the application is The exception is that the host is full.
  • the preset processing rule is: identify and delete the temporary files and logs stored by the current host, or compress the temporary files and logs stored by the current host to form a compressed file, and move the compressed file to other hosts.
  • the preset processing rule is: identifying the application with the highest CPU usage rate, closing/restarting the identified application and making the current use The terminal of the application is connected to the other host; if the application is abnormally blocked by the thread, the preset processing rule is: the current host does not receive the task, and the current host is restarted after the current task is processed, and other tasks are restarted. Assign to other hosts.
  • the processing unit 404 is configured to automatically process the application exception according to the preset processing rule.
  • the preset processing rule is determined by the user according to a common known application abnormality. When an application abnormality is detected, the corresponding processing rule is triggered to automatically process the abnormality of the application, but is not triggered. Other processing rules will not be executed or skipped.
  • the sending unit 405 is configured to send a result of processing the application abnormality to an operation and maintenance personnel.
  • the processing result generation notification information of the preset processing rule processing application abnormality is sent to the operation and maintenance personnel, wherein the information recorded in the notification information has a type of application abnormality and a processing rule adopted for the application abnormality.
  • the preset processing rule realizes the automatic processing of the application abnormality, which greatly improves the work efficiency of the operation and maintenance personnel; specifically, the notification information can be sent to the operation and maintenance personnel's mailbox by mail, and The form of sending the notification information in the actual application is not limited herein.
  • the processing rule of the application exception is set in advance, and if the application exception occurs, the preset rule can be automatically processed to reduce the manual dependency, improve the timeliness of the application exception processing, and reduce The phenomenon of incorrect operation.
  • the above application operating device can be implemented in the form of a computer program that can be run on a device as shown in FIG.
  • FIG. 5 is a schematic structural diagram of an application operation and maintenance device according to the present application.
  • the device 500 can include an input device 501, an output device 502, a transceiver 503, a memory 504, and a processor 505, where:
  • the input device 501 is configured to receive input data of an external access control device.
  • the input device 501 described in the embodiment of the present application may include a keyboard, a mouse, a photoelectric input device, a sound input device, a touch input device, a scanner, and the like.
  • the output device 502 is configured to output output data of the access control device to the outside.
  • the output device 502 described in this embodiment of the present application may include a display, a speaker, a printer, and the like.
  • the transceiver device 503 is configured to send data to or receive data from other devices through a communication link.
  • the transceiver 503 of the embodiment of the present application may include a transceiver device such as a radio frequency antenna.
  • the memory 504 can include a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium can store an operating system and store program instructions for implementing an application operation and maintenance method.
  • the internal memory provides an environment for the operation of program instructions in a non-volatile storage medium.
  • the processor 505 is used to provide computing and control capabilities to support the operation of the entire application operation and maintenance device. When the above program instructions are executed by the processor 505, the processor 505 can be caused to execute the above-described application operation and maintenance method.
  • the processor 505 is configured to run a program for implementing an application operation and maintenance method stored in the memory 504 to perform the following operations:
  • the result of processing the application exception is sent to the operation and maintenance personnel.
  • the processor 505 also performs the following operations:
  • a processing rule corresponding to the application exception is set in advance, wherein each application exception corresponds to a preset processing rule, and different application exceptions correspond to different preset processing rules.
  • the preset processing rule is:
  • Temporary files and logs stored by the current host are compressed to form a compressed file, and the compressed file is moved to other hosts, and temporary files and logs stored on the current host are deleted.
  • the preset processing rule is:
  • the preset processing rule is:
  • the current host no longer receives the task, restarts the current host after the current task is processed, and assigns other tasks to other hosts.
  • the embodiment of the application operation and maintenance device shown in FIG. 5 does not constitute a limitation on the specific configuration of the application operation and maintenance device.
  • the application operation and maintenance device may include a comparison diagram. Show more or fewer parts, or combine some parts, or different parts.
  • the application operation and maintenance device may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are consistent with the embodiment shown in FIG. 5, and details are not described herein again. .
  • the application provides a computer readable storage medium storing one or more computer programs executable by one or more processors to implement the application described above Operation and maintenance method.
  • the foregoing storage medium of the present application includes: a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), and the like, which can store a program code.
  • the units in all the embodiments of the present application may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
  • a general-purpose integrated circuit such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
  • the steps in the application operation and maintenance method of the embodiment of the present application may be sequentially adjusted, merged, and deleted according to actual needs.
  • the units in the application operation and maintenance apparatus of the embodiment of the present application may be combined, divided, and deleted according to actual needs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种应用程序运维方法、装置、设备以及存储介质,其中所述方法包括:若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型(S101);获取与所述应用异常相对应的预设处理规则(S102);根据所述预设处理规则自动处理所述应用异常(S103);将处理所述应用异常的结果发送至运维人员(S104)。上述方法可以自动解决出现的应用异常的现象,并缩短应用异常恢复的时间,提高运维工作的效率。

Description

一种应用程序运维方法、装置、设备以及存储介质
本申请要求于2017年5月5日提交中国专利局、申请号为CN 201710313797.4、申请名称为“一种应用程序运维方法、装置以及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种应用程序运维方法、装置、设备以及存储介质。
背景技术
目前,在后端服务的应用运维过程中,经常存在重复出现的应用异常现象,诸如主机卷满、CPU使用率过高等等,而现有的处理这些应用异常的现象的方式一般是固定不变的,并且现有的应用异常处理方式中一般依赖人工进行无分析操作以恢复应用正常,但是依赖人工进行恢复的方式容易出现操作失误,且依赖人工进行运维的方式效率不高,影响了应用异常恢复时效。
发明内容
本申请实施例提供一种应用程序运维方法、装、设备以及存储介质,可以自动解决出现的应用异常的现象,并缩短应用异常恢复的时间,提高运维工作的效率。
一方面,本申请实施例提供了一种应用程序运维方法,该方法包括:
若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
获取与所述应用异常相对应的预设处理规则;
根据所述预设处理规则自动处理所述应用异常;
将处理所述应用异常的结果发送至运维人员。
另一方面,本申请实施例提供了一种应用程序运维装置,该装置包括:
识别单元,用于若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
获取单元,用于获取与所述应用异常相对应的预设处理规则;
处理单元,用于根据所述预设处理规则自动处理所述应用异常;
发送单元,用于将处理所述应用异常的结果发送至运维人员。
又一方面,本申请实施例提供了一种应用程序运维设备,所述设备包括:存储器以及处理器;
存储器,用于存储实现应用异常处理的程序;
处理器,用于运行所述存储器中存储的程序,以执行以下操作:
若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
获取与所述应用异常相对应的预设处理规则;
根据所述预设处理规则自动处理所述应用异常;
将处理所述应用异常的结果发送至运维人员。
再一方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现如下步骤:
若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
获取与所述应用异常相对应的预设处理规则;
根据所述预设处理规则自动处理所述应用异常;
将处理所述应用异常的结果发送至运维人员。
本申请实施例可以自动解决出现的应用异常的现象,并缩短应用异常恢复的时间,提高运维工作的效率。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种应用程序运维方法的示意流程图。
图2是本申请另一实施例提供的一种应用程序运维方法的示意流程图。
图3是本申请实施例提供的一种应用程序运维装置的示意性框图。
图4是本申请实施例提供的一种应用程序运维装置的另一示意性框图。
图5是本申请实施例提供的一种应用程序运维设备的结构组成示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
请参阅图1,图1是本申请实施例提供的一种应用程序运维方法的示意流程图。该方法包括步骤S101~S104。
S101,若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型。
在本申请实施例中,应用程序可以是用户从互联网上下载的应用APP,比如微信、QQ、支付宝等等,也可以是系统中存在的以支持应用APP开发和运行的系统应用程序,比如Office、SQL-server等等。由于这些应用程序是寄宿于系统或者系统主机上运行的,并且应用程序在运行过程中需要占用或者消耗系统或者系统上主机的资源,因此,若应用程序在运行过程中占用了过多系统或主机的资源,则往往会导致主机出现应用异常,例如主机出现主机卷满、CPU使用率高以及线程阻塞等异常,导致主机不能正常运转,反过来又导致应用程序不能正常运行。此时,通过判断主机上发生的应用异常类型,并基于异常类型采取相应的处理手段,可以快速恢复主机的运转,从而使得应用程序可以正常运行。
需要说明的是,主机卷满指的是硬盘存储空间不足、磁盘已满,在检测是 否出现主机卷满时,用户可以在预先设置的监控系统上设置主机存储空间的阈值,如果预先设置的监控系统监控到当前主机的存储空间超过所设置的阈值,则判断在当前主机中出现主机卷满,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的阈值可以由用户自行设置,在此不作限定;CPU使用率高指的是运行的程序占用CPU资源比例高,在检测是否出现CPU使用率高时,用户可以在预先设置的监控系统上设置CPU使用率的阈值,如果预先设置的监控系统监控到当前主机的CPU使用率超过所设置的阈值,则判断在当前主机中CPU使用率高,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的阈值可以由用户自行设置,在此不作限定;线程阻塞指的是线程在执行过程中暂停运行,在检测是否出现线程阻塞时,用户可以在预先设置的监控系统上设置线程阻塞的占用值,如果预先设置的监控系统监控到当前主机中线程占用率超过所设置的占用值,则判断在当前主机中出现线程阻塞,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的占用值可以由用户自行设置,在此不作限定。
S102,获取与所述应用异常相对应的预设处理规则。
在本申请实施例中,若检测到应用异常,获取与所述应用异常相对应的预设处理规则,根据预设处理规则的执行逻辑自动对所述应用异常进行处理;其中,若所述应用异常为主机卷满,所述预设处理规则为:识别并删除当前主机存储的临时文件以及日志,或者将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志;若所述应用异常为CPU使用率高所述预设处理规则为:识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主机;若所述应用异常为线程阻塞,所述预设处理规则为:使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至其它主机。
S103,根据所述预设处理规则自动处理所述应用异常。
在本申请实施例中,由于所述预设处理规则由用户根据常见的已知应用异常进行制定,当检测到应用异常时,触发相应的处理规则针对该应用异常自动进行处理,而未被触发的其它处理规则将不会执行或者被跳过执行。
S104,将处理所述应用异常的结果发送至运维人员。
在本申请实施例中,将预设处理规则处理应用异常的处理结果生成通知信息发送给运维人员,其中该通知信息中记录的信息有应用异常的类型、针对该应用异常采用的处理规则的内容以及通过该处理规则进行处理之后的结果;由于在通知信息中记录了处理应用异常的详细信息,因此运维人员可以通过该通知信息及时了解到应用异常的类型以及应用异常的处理结果,通过预设的处理规则实现了自动处理应用异常的现象,在很大程度上提高了运维人员的工作效率;具体地,该通知信息可以通过邮件的形式发送至运维人员的邮箱中,另外,在实际应用中所述通知信息的发送形式在此不作限定。
由以上可见,本申请实施例通过识别所述应用异常的类型,获取与所述应用异常相对应的预设处理规则,根据所述预设处理规则自动处理所述应用异常,将处理所述应用异常的结果发送至运维人员,可以自动解决出现的应用异常的现象,并缩短应用异常恢复的时间,提高运维工作的效率。
请参阅图2,图2是本申请实施例提供的一种应用程序运维方法的示意流程图。该方法包括步骤S201~S205。
S201,若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型。
在本申请实施例中,应用程序可以是用户从互联网上下载的应用APP,比如微信、QQ、支付宝等等,也可以是系统中存在的以支持应用APP开发和运行的系统应用程序,比如Office、SQL-server等等。由于这些应用程序是寄宿于系统或者系统主机上运行的,并且应用程序在运行过程中需要占用或者消耗系统或者系统上主机的资源,因此,若应用程序在运行过程中占用了过多系统或主机的资源,则往往会导致主机出现应用异常,例如主机出现主机卷满、CPU使用率高以及线程阻塞等异常,导致主机不能正常运转,反过来又导致应用程序不能正常运行。此时,通过判断主机上发生的应用异常类型,并基于异常类型采取相应的处理手段,可以快速恢复主机的运转,从而使得应用程序可以正常运行。
需要说明的是,主机卷满指的是硬盘存储空间不足、磁盘已满,在检测是否出现主机卷满时,用户可以在预先设置的监控系统上设置主机存储空间的阈值,如果预先设置的监控系统监控到当前主机的存储空间超过所设置的阈值, 则判断在当前主机中出现主机卷满,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的阈值可以由用户自行设置,在此不作限定;CPU使用率高指的是运行的程序占用CPU资源比例高,在检测是否出现CPU使用率高时,用户可以在预先设置的监控系统上设置CPU使用率的阈值,如果预先设置的监控系统监控到当前主机的CPU使用率超过所设置的阈值,则判断在当前主机中CPU使用率高,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的阈值可以由用户自行设置,在此不作限定;线程阻塞指的是线程在执行过程中暂停运行,在检测是否出现线程阻塞时,用户可以在预先设置的监控系统上设置线程阻塞的占用值,如果预先设置的监控系统监控到当前主机中线程占用率超过所设置的占用值,则判断在当前主机中出现线程阻塞,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的占用值可以由用户自行设置,在此不作限定。
S202,预先设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则。
在本申请实施例中,预先在终端中设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则,所述预设处理规则用于自动处理出现的应用异常。例如,主机卷满、CPU使用率高或者线程阻塞等应用异常,若总是依赖于人工的无分析操作进行处理,会影响应用异常的时效性,并且也容易出现操作错误的现象。
S203,获取与所述应用异常相对应的预设处理规则。
在本申请实施例中,若检测到应用异常,获取与所述应用异常相对应的预设处理规则,根据预设处理规则的执行逻辑自动对所述应用异常进行处理;其中,若所述应用异常为主机卷满,所述预设处理规则为:识别并删除当前主机存储的临时文件以及日志,或者将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志;若所述应用异常为CPU使用率高所述预设处理规则为:识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主机;若所述应用异常为线程阻塞,所述预设处理规则为:使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至 其它主机。
S204,根据所述预设处理规则自动处理所述应用异常。
在本申请实施例中,由于所述预设处理规则由用户根据常见的已知应用异常进行制定,当检测到应用异常时,触发相应的处理规则针对该应用异常自动进行处理,而未被触发的其它处理规则将不会执行或者被跳过执行。
S205,将处理所述应用异常的结果发送至运维人员。
在本申请实施例中,将预设处理规则处理应用异常的处理结果生成通知信息发送给运维人员,其中该通知信息中记录的信息有应用异常的类型、针对该应用异常采用的处理规则的内容以及通过该处理规则进行处理之后的结果;由于在通知信息中记录了处理应用异常的详细信息,因此运维人员可以通过该通知信息及时了解到应用异常的类型以及应用异常的处理结果,通过预设的处理规则实现了自动处理应用异常的现象,在很大程度上提高了运维人员的工作效率;具体地,该通知信息可以通过邮件的形式发送至运维人员的邮箱中,另外,在实际应用中所述通知信息的发送形式在此不作限定。
由以上可见,本申请实施例通过预先设置应用异常的处理规则,若应用异常发生时,可以通过所设置的预设规则进行自动处理,减少人工的依赖,提高应用异常处理的时效性,并减少操作错误的现象。
本领域普通技术人员可以理解实现上述实施例方法中的全部或者部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
请参阅图3,对应上述一种应用程序运维方法,本申请实施例还提出一种应用程序运维装置,该装置300包括:识别单元301、获取单元302、处理单元303、发送单元304。
其中,所述识别单元301,用于若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型。在本申请实施例中,应用程序可以是用户从互联网上下载的应用APP,比如微信、QQ、支付宝等等,也可以是系统中存在的以支持应用APP开发和运行的系统应用程序,比如Office、SQL-server等等。由于这些应用程序是寄宿于系统或者系统主机上运行的,并且应用程序在运行过程 中需要占用或者消耗系统或者系统上主机的资源,因此,若应用程序在运行过程中占用了过多系统或主机的资源,则往往会导致主机出现应用异常,例如主机出现主机卷满、CPU使用率高以及线程阻塞等异常,导致主机不能正常运转,反过来又导致应用程序不能正常运行。此时,通过判断主机上发生的应用异常类型,并基于异常类型采取相应的处理手段,可以快速恢复主机的运转,从而使得应用程序可以正常运行。
需要说明的是,主机卷满指的是硬盘存储空间不足、磁盘已满,在检测是否出现主机卷满时,用户可以在预先设置的监控系统上设置主机存储空间的阈值,如果预先设置的监控系统监控到当前主机的存储空间超过所设置的阈值,则判断在当前主机中出现主机卷满,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的阈值可以由用户自行设置,在此不作限定;CPU使用率高指的是运行的程序占用CPU资源比例高,在检测是否出现CPU使用率高时,用户可以在预先设置的监控系统上设置CPU使用率的阈值,如果预先设置的监控系统监控到当前主机的CPU使用率超过所设置的阈值,则判断在当前主机中CPU使用率高,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的阈值可以由用户自行设置,在此不作限定;线程阻塞指的是线程在执行过程中暂停运行,在检测是否出现线程阻塞时,用户可以在预先设置的监控系统上设置线程阻塞的占用值,如果预先设置的监控系统监控到当前主机中线程占用率超过所设置的占用值,则判断在当前主机中出现线程阻塞,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的占用值可以由用户自行设置,在此不作限定。
所述获取单元302,用于获取与所述应用异常相对应的预设处理规则。在本申请实施例中,若检测到应用异常,获取与所述应用异常相对应的预设处理规则,根据预设处理规则的执行逻辑自动对所述应用异常进行处理;其中,若所述应用异常为主机卷满,所述预设处理规则为:识别并删除当前主机存储的临时文件以及日志,或者将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志;若所述应用异常为CPU使用率高所述预设处理规则为:识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主 机;若所述应用异常为线程阻塞,所述预设处理规则为:使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至其它主机。
所述处理单元303,用于根据所述预设处理规则自动处理所述应用异常。在本申请实施例中,由于所述预设处理规则由用户根据常见的已知应用异常进行制定,当检测到应用异常时,触发相应的处理规则针对该应用异常自动进行处理,而未被触发的其它处理规则将不会执行或者被跳过执行。
所述发送单元304,用于将处理所述应用异常的结果发送至运维人员。在本申请实施例中,将预设处理规则处理应用异常的处理结果生成通知信息发送给运维人员,其中该通知信息中记录的信息有应用异常的类型、针对该应用异常采用的处理规则的内容以及通过该处理规则进行处理之后的结果;由于在通知信息中记录了处理应用异常的详细信息,因此运维人员可以通过该通知信息及时了解到应用异常的类型以及应用异常的处理结果,通过预设的处理规则实现了自动处理应用异常的现象,在很大程度上提高了运维人员的工作效率;具体地,该通知信息可以通过邮件的形式发送至运维人员的邮箱中,另外,在实际应用中所述通知信息的发送形式在此不作限定。
由以上可见,本申请实施例通过识别所述应用异常的类型,获取与所述应用异常相对应的预设处理规则,根据所述预设处理规则自动处理所述应用异常,将处理所述应用异常的结果发送至运维人员,可以自动解决出现的应用异常的现象,并缩短应用异常恢复的时间,提高运维工作的效率。
请参阅图4,对应上述一种应用程序运维方法,本申请实施例还提出一种应用程序运维装置,该装置400包括:识别单元401、设置单元402、获取单元403、处理单元404、发送单元405。
其中,所述识别单元401,用于若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型。在本申请实施例中,应用程序可以是用户从互联网上下载的应用APP,比如微信、QQ、支付宝等等,也可以是系统中存在的以支持应用APP开发和运行的系统应用程序,比如Office、SQL-server等等。由于这些应用程序是寄宿于系统或者系统主机上运行的,并且应用程序在运行过程中需要占用或者消耗系统或者系统上主机的资源,因此,若应用程序在运行过程中占用了过多系统或主机的资源,则往往会导致主机出现应用异常,例如主 机出现主机卷满、CPU使用率高以及线程阻塞等异常,导致主机不能正常运转,反过来又导致应用程序不能正常运行。此时,通过判断主机上发生的应用异常类型,并基于异常类型采取相应的处理手段,可以快速恢复主机的运转,从而使得应用程序可以正常运行。
需要说明的是,主机卷满指的是硬盘存储空间不足、磁盘已满,在检测是否出现主机卷满时,用户可以在预先设置的监控系统上设置主机存储空间的阈值,如果预先设置的监控系统监控到当前主机的存储空间超过所设置的阈值,则判断在当前主机中出现主机卷满,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的阈值可以由用户自行设置,在此不作限定;CPU使用率高指的是运行的程序占用CPU资源比例高,在检测是否出现CPU使用率高时,用户可以在预先设置的监控系统上设置CPU使用率的阈值,如果预先设置的监控系统监控到当前主机的CPU使用率超过所设置的阈值,则判断在当前主机中CPU使用率高,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的阈值可以由用户自行设置,在此不作限定;线程阻塞指的是线程在执行过程中暂停运行,在检测是否出现线程阻塞时,用户可以在预先设置的监控系统上设置线程阻塞的占用值,如果预先设置的监控系统监控到当前主机中线程占用率超过所设置的占用值,则判断在当前主机中出现线程阻塞,并进一步可判定在当前主机中检测到应用异常,其中,在预先设置的监控系统上所设置的占用值可以由用户自行设置,在此不作限定。
所述设置单元402,用于预先设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则。在本申请实施例中,预先在终端中设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则,所述预设处理规则用于自动处理出现的应用异常。例如,主机卷满、CPU使用率高或者线程阻塞等应用异常,若总是依赖于人工的无分析操作进行处理,会影响应用异常的时效性,并且也容易出现操作错误的现象。
所述获取单元403,用于获取与所述应用异常相对应的预设处理规则。在本申请实施例中,若检测到应用异常,获取与所述应用异常相对应的预设处理规则,根据预设处理规则的执行逻辑自动对所述应用异常进行处理;其中,若所 述应用异常为主机卷满,所述预设处理规则为:识别并删除当前主机存储的临时文件以及日志,或者将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志;若所述应用异常为CPU使用率高所述预设处理规则为:识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主机;若所述应用异常为线程阻塞,所述预设处理规则为:使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至其它主机。
所述处理单元404,用于根据所述预设处理规则自动处理所述应用异常。在本申请实施例中,由于所述预设处理规则由用户根据常见的已知应用异常进行制定,当检测到应用异常时,触发相应的处理规则针对该应用异常自动进行处理,而未被触发的其它处理规则将不会执行或者被跳过执行。
所述发送单元405,用于将处理所述应用异常的结果发送至运维人员。在本申请实施例中,将预设处理规则处理应用异常的处理结果生成通知信息发送给运维人员,其中该通知信息中记录的信息有应用异常的类型、针对该应用异常采用的处理规则的内容以及通过该处理规则进行处理之后的结果;由于在通知信息中记录了处理应用异常的详细信息,因此运维人员可以通过该通知信息及时了解到应用异常的类型以及应用异常的处理结果,通过预设的处理规则实现了自动处理应用异常的现象,在很大程度上提高了运维人员的工作效率;具体地,该通知信息可以通过邮件的形式发送至运维人员的邮箱中,另外,在实际应用中所述通知信息的发送形式在此不作限定。
由以上可见,本申请实施例通过预先设置应用异常的处理规则,若应用异常发生时,可以通过所设置的预设规则进行自动处理,减少人工的依赖,提高应用异常处理的时效性,并减少操作错误的现象。
上述应用程序运维装置可以实现为一种计算机程序的形式,计算机程序可以在如图5所示的设备上运行。
图5为本申请一种应用程序运维设备的结构组成示意图。如图5所示,该设备500可包括:输入装置501、输出装置502、收发装置503、存储器504以及处理器505,其中:
所述输入装置501,用于接收外部访问控制设备的输入数据。具体实现中, 本申请实施例所述的输入装置501可包括键盘、鼠标、光电输入装置、声音输入装置、触摸式输入装置、扫描仪等。
所述输出装置502,用于对外输出访问控制设备的输出数据。具体实现中,本申请实施例所述的输出装置502可包括显示器、扬声器、打印机等。
所述收发装置503,用于通过通信链路向其他设备发送数据或者从其他设备接收数据。具体实现中,本申请实施例的收发装置503可包括射频天线等收发器件。
所述存储器504,可以包括非易失性存储介质和内存储器。非易失性存储介质可存储操作系统和存储用于实现应用程序运维方法的程序指令。内存储器为非易失性存储介质中的程序指令的运行提供环境。处理器505用于提供计算和控制能力,支撑整个应用程序运维设备的运行。上述程序指令被处理器505执行时,可使得处理器505执行上述应用程序运维方法。
具体地,所述处理器505,用于运行所述存储器504中存储的实现应用程序运维方法的程序,以执行如下操作:
若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
获取与所述应用异常相对应的预设处理规则;
根据所述预设处理规则自动处理所述应用异常;
将处理所述应用异常的结果发送至运维人员。
在一个实施例中,所述处理器505还执行如下操作:
预先设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则。
在一个实施例中,若所述应用异常为主机卷满,所述预设处理规则为:
识别并删除当前主机存储的临时文件以及日志,或者
将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志。
在一个实施例中,若所述应用异常为CPU使用率高,所述预设处理规则为:
识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主机。
在一个实施例中,若所述应用异常为线程阻塞,所述预设处理规则为:
使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并 将其它任务分配至其它主机。
本领域技术人员可以理解,图5中示出的应用程序运维设备的实施例并不构成对应用程序运维设备具体构成的限定,在其他实施例中,应用程序运维设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,应用程序运维设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图5所示实施例一致,在此不再赘述。
本申请提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现上述应用程序运维方法。
本申请前述的存储介质包括:磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等各种可以存储程序代码的介质。
本申请所有实施例中的单元可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。
本申请实施例应用程序运维方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请实施例应用程序运维装置中的单元可以根据实际需要进行合并、划分和删减。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种应用程序运维方法,其特征在于,所述方法包括:
    若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
    获取与所述应用异常相对应的预设处理规则;
    根据所述预设处理规则自动处理所述应用异常;
    将处理所述应用异常的结果发送至运维人员。
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    预先设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则。
  3. 如权利要求1所述的方法,其特征在于,若所述应用异常为主机卷满,所述预设处理规则为:
    识别并删除当前主机存储的临时文件以及日志,或者
    将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志。
  4. 如权利要求1所述的方法,其特征在于,若所述应用异常为CPU使用率高,所述预设处理规则为:
    识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主机。
  5. 如权利要求1所述的方法,其特征在于,若所述应用异常为线程阻塞,所述预设处理规则为:
    使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至其它主机。
  6. 一种应用程序运维装置,其特征在于,所述装置包括:
    识别单元,用于若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
    获取单元,用于获取与所述应用异常相对应的预设处理规则;
    处理单元,用于根据所述预设处理规则自动处理所述应用异常;
    发送单元,用于将处理所述应用异常的结果发送至运维人员。
  7. 如权利要求6所述的装置,其特征在于,所述装置还包括:
    设置单元,用于预先设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则。
  8. 如权利要求6所述的装置,其特征在于,若所述应用异常为主机卷满,所述预设处理规则为:
    识别并删除当前主机存储的临时文件以及日志,或者
    将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志。
  9. 如权利要求6所述的装置,其特征在于,若所述应用异常为CPU使用率高,所述预设处理规则为:
    识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主机;
    若所述应用异常为线程阻塞,所述预设处理规则为:
    使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至其它主机。
  10. 如权利要求6所述的装置,其特征在于,若所述应用异常为线程阻塞,所述预设处理规则为:
    使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至其它主机。
  11. 一种应用程序运维设备,其特征在于,所述设备包括:存储器以及处理器;
    存储器,用于存储实现应用异常处理的程序;
    处理器,用于运行所述存储器中存储的程序,以执行以下操作:
    若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
    获取与所述应用异常相对应的预设处理规则;
    根据所述预设处理规则自动处理所述应用异常;
    将处理所述应用异常的结果发送至运维人员。
  12. 如权利要求11所述的设备,其特征在于,所述处理器还执行以下操作:
    预先设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则。
  13. 如权利要求11所述的设备,其特征在于,若所述应用异常为主机卷满, 所述预设处理规则为:
    识别并删除当前主机存储的临时文件以及日志,或者
    将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志。
  14. 如权利要求11所述的设备,其特征在于,若所述应用异常为CPU使用率高,所述预设处理规则为:
    识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主机。
  15. 如权利要求11所述的设备,其特征在于,若所述应用异常为线程阻塞,所述预设处理规则为:
    使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至其它主机。
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者一个以上计算机程序,所述一个或者一个以上计算机程序可被一个或者一个以上的处理器执行,以实现如下步骤:
    若检测到由应用程序运行所引起的应用异常,识别所述应用异常的类型;
    获取与所述应用异常相对应的预设处理规则;
    根据所述预设处理规则自动处理所述应用异常;
    将处理所述应用异常的结果发送至运维人员。
  17. 如权利要求16所述的计算机可读存储介质,其特征在于,所述步骤还包括:
    预先设置与所述应用异常相对应的处理规则,其中,每一个应用异常对应一种预设处理规则,不同的应用异常对应不同的预设处理规则。
  18. 如权利16所述的计算机可读存储介质,其特征在于,若所述应用异常为主机卷满,所述预设处理规则为:
    识别并删除当前主机存储的临时文件以及日志,或者
    将当前主机存储的临时文件以及日志进行压缩形成压缩文件,并将压缩文件移动至其它主机,并删除当前主机上存储的临时文件和日志。
  19. 如权利16所述的计算机可读存储介质,其特征在于,若所述应用异常为CPU使用率高,所述预设处理规则为:
    识别CUP使用率最高的应用,关闭/重启所识别的应用并使当前使用该应用的终端连接至其它主机。
  20. 如权利16所述的计算机可读存储介质,其特征在于,若所述应用异常为线程阻塞,所述预设处理规则为:
    使当前主机不再接收任务,待当前任务被处理完成后再重启当前主机,并将其它任务分配至其它主机。
PCT/CN2018/082519 2017-05-05 2018-04-10 一种应用程序运维方法、装置、设备以及存储介质 WO2018201863A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710313797.4 2017-05-05
CN201710313797.4A CN108255664A (zh) 2017-05-05 2017-05-05 一种应用程序运维方法、装置以及设备

Publications (1)

Publication Number Publication Date
WO2018201863A1 true WO2018201863A1 (zh) 2018-11-08

Family

ID=62721733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082519 WO2018201863A1 (zh) 2017-05-05 2018-04-10 一种应用程序运维方法、装置、设备以及存储介质

Country Status (2)

Country Link
CN (1) CN108255664A (zh)
WO (1) WO2018201863A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1528471A2 (en) * 2003-10-31 2005-05-04 Sun Microsystems, Inc. Method and architecture for automated fault diagnosis and correction in a computer system
CN104932963A (zh) * 2015-05-29 2015-09-23 广东欧珀移动通信有限公司 管理终端的方法及装置
CN105162632A (zh) * 2015-09-15 2015-12-16 浪潮集团有限公司 一种服务器集群故障自动处理系统
CN105262616A (zh) * 2015-09-21 2016-01-20 浪潮集团有限公司 一种基于故障知识库的自动化故障处理系统及方法
CN105591816A (zh) * 2015-12-10 2016-05-18 北京合力思腾科技股份有限公司 It运维服务器的运行状态检测方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8074116B2 (en) * 2009-05-06 2011-12-06 Microsoft Corporation Exception raised notification
CN105955869A (zh) * 2016-05-12 2016-09-21 捷开通讯科技(上海)有限公司 电子装置异常应用程序监控及处理系统与方法
CN106445830A (zh) * 2016-11-29 2017-02-22 努比亚技术有限公司 应用程序运行环境检测方法及移动终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1528471A2 (en) * 2003-10-31 2005-05-04 Sun Microsystems, Inc. Method and architecture for automated fault diagnosis and correction in a computer system
CN104932963A (zh) * 2015-05-29 2015-09-23 广东欧珀移动通信有限公司 管理终端的方法及装置
CN105162632A (zh) * 2015-09-15 2015-12-16 浪潮集团有限公司 一种服务器集群故障自动处理系统
CN105262616A (zh) * 2015-09-21 2016-01-20 浪潮集团有限公司 一种基于故障知识库的自动化故障处理系统及方法
CN105591816A (zh) * 2015-12-10 2016-05-18 北京合力思腾科技股份有限公司 It运维服务器的运行状态检测方法

Also Published As

Publication number Publication date
CN108255664A (zh) 2018-07-06

Similar Documents

Publication Publication Date Title
CN106844090B (zh) 基于压缩比历史的数据复制
US10095598B2 (en) Transaction server performance monitoring using component performance data
US11544137B2 (en) Data processing platform monitoring
US9471386B2 (en) Allocating resources to tasks in a build process
US20180131583A1 (en) Automatic provisioning of cloud services
US9684534B2 (en) Monitoring and modifying allocated computing resources
US20170091013A1 (en) Pcie error reporting and throttling
US10248547B2 (en) Coverage of call graphs based on paths and sequences
WO2019075774A1 (zh) 设备参数配置方法、装置、计算机设备和存储介质
WO2020232871A1 (zh) 一种微服务依赖分析方法及装置
WO2016078323A1 (zh) 检测恶意软件的方法及装置
WO2019034095A1 (zh) 软件处理方法、装置、电子设备及计算机可读存储介质
JP2017215966A (ja) 記憶デバイスにおける性能変動を制限するための技術
TWI518680B (zh) 維護電腦系統之檔案系統的方法
US20130054868A1 (en) Image storage optimization in virtual environments
US10762207B2 (en) Method and device for scanning virus
JP5014179B2 (ja) Os優先度変更装置及びos優先度変更プログラム
US9374703B2 (en) Customizable serviceability mechanism
WO2018201863A1 (zh) 一种应用程序运维方法、装置、设备以及存储介质
US9658894B2 (en) Automatically and dynamically reclaiming resources during virtual machine decommission
JP5606261B2 (ja) デバッグシステムおよびデバッグシステムのトレースデータ取得方法
US10893090B2 (en) Monitoring a process on an IoT device
US10979502B2 (en) Method, device and computer program product for parallel migration of data
US20180123866A1 (en) Method and apparatus for determining event level of monitoring result
US10664342B2 (en) Leak protection of executables with debug information

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: 18794345

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 18/02/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18794345

Country of ref document: EP

Kind code of ref document: A1