[go: up one dir, main page]

CN118733391A - Process monitoring method, process monitoring device, computing device and computer readable storage medium - Google Patents

Process monitoring method, process monitoring device, computing device and computer readable storage medium Download PDF

Info

Publication number
CN118733391A
CN118733391A CN202410911511.2A CN202410911511A CN118733391A CN 118733391 A CN118733391 A CN 118733391A CN 202410911511 A CN202410911511 A CN 202410911511A CN 118733391 A CN118733391 A CN 118733391A
Authority
CN
China
Prior art keywords
target process
time
target
monitoring
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410911511.2A
Other languages
Chinese (zh)
Inventor
陈衡岳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BMW Brilliance Automotive Ltd
Original Assignee
BMW Brilliance Automotive Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BMW Brilliance Automotive Ltd filed Critical BMW Brilliance Automotive Ltd
Priority to CN202410911511.2A priority Critical patent/CN118733391A/en
Publication of CN118733391A publication Critical patent/CN118733391A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information

Landscapes

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

Abstract

The embodiment of the specification provides a process monitoring method, a process monitoring device, a computing device and a computer readable storage medium, wherein the process monitoring method comprises the following steps: acquiring the starting time of a target process; judging whether the target process runs overtime or not based on the starting time; if yes, identifying the target process as a temporary process or a long-acting process; under the condition that the target process is a temporary process, determining that the target process is abnormal in operation; and under the condition that the target process is a long-acting process, inquiring the update time of the process log of the target process, and determining whether the target process is abnormal in operation or not based on the update time. The automatic process monitoring is realized, the timeliness of the process monitoring is improved, the more refined monitoring is realized, the possibility of misjudgment is reduced, and the effectiveness and the accuracy of the process monitoring are improved.

Description

进程监控方法、进程监控装置、计算设备及计算机可读存储 介质Process monitoring method, process monitoring device, computing device and computer-readable storage medium

技术领域Technical Field

本说明书实施例涉及软件系统管理的技术领域,特别涉及一种进程监控方法、进程监控装置、计算设备及计算机可读存储介质。The embodiments of this specification relate to the technical field of software system management, and in particular to a process monitoring method, a process monitoring device, a computing device, and a computer-readable storage medium.

背景技术Background Art

随着自动化软件系统的发展,通过多个自动化软件系统构架生产系统,多个系统都有各自的软件方案,安装在不同的服务器或工作站上,运行于多种系统之上并且具有不同的接口和中间件。这种多样性带来了先进的自动化生产能力,但同时也给生产系统的运行维护工作提出了更高的要求。With the development of automation software systems, production systems are constructed through multiple automation software systems. Multiple systems have their own software solutions, installed on different servers or workstations, running on multiple systems and with different interfaces and middleware. This diversity brings advanced automation production capabilities, but also puts higher requirements on the operation and maintenance of production systems.

目前,交互进程作为生产系统中的核心组件,它们负责不同自动化软件系统、服务乃至硬件设备之间的信息交换与协调,确保了数据的流畅传递与指令的准确执行。At present, interactive processes are the core components of production systems. They are responsible for information exchange and coordination between different automation software systems, services and even hardware devices, ensuring the smooth transmission of data and accurate execution of instructions.

然而,因为网络问题或者端问题导致通信中断时,交互进程会发生运行异常,处于一种僵死状态,这样的僵死状态因为其不再运行,从而较难被快速发现,导致整体生产系统发生异常,带来巨大风险。因此,亟需一种自动、即时、有效的进程监控方法。However, when communication is interrupted due to network or terminal problems, the interactive process will run abnormally and be in a dead state. This dead state is difficult to be discovered quickly because it is no longer running, causing the entire production system to become abnormal, bringing huge risks. Therefore, an automatic, instant, and effective process monitoring method is urgently needed.

发明内容Summary of the invention

有鉴于此,本说明书实施例提供了一种进程监控方法。本说明书一个或者多个实施例同时涉及一种进程监控装置,一种计算设备,一种计算机可读存储介质以及一种计算机程序产品,以解决现有技术中存在的技术缺陷。In view of this, an embodiment of the present specification provides a process monitoring method. One or more embodiments of the present specification also relate to a process monitoring device, a computing device, a computer-readable storage medium and a computer program product to solve the technical defects existing in the prior art.

根据本说明书实施例的第一方面,提供了一种进程监控方法,包括:According to a first aspect of an embodiment of this specification, a process monitoring method is provided, including:

获取目标进程的启动时间;Get the start time of the target process;

基于启动时间,判断目标进程是否运行超时;Based on the startup time, determine whether the target process has timed out;

若是,识别目标进程为临时进程或者长效进程;If yes, identify the target process as a temporary process or a long-term process;

在目标进程为临时进程的情况下,确定目标进程发生运行异常;When the target process is a temporary process, determining that the target process has an abnormal operation;

在目标进程为长效进程的情况下,查询目标进程的进程日志的更新时间,并基于更新时间,确定目标进程是否发生运行异常。In the case where the target process is a long-term process, the update time of the process log of the target process is queried, and based on the update time, it is determined whether the target process has an operational abnormality.

根据本说明书实施例的第二方面,提供了一种进程监控装置,包括:According to a second aspect of an embodiment of this specification, a process monitoring device is provided, including:

第一获取模块,被配置为获取目标进程的启动时间;A first acquisition module is configured to acquire the start time of the target process;

运行超时判断模块,被配置为基于启动时间,判断目标进程是否运行超时;The operation timeout judgment module is configured to judge whether the target process has timed out based on the startup time;

分类识别模块,被配置为若是,识别目标进程为临时进程或者长效进程;A classification identification module is configured to identify the target process as a temporary process or a long-term process;

第一确定模块,被配置为在目标进程为临时进程的情况下,确定目标进程发生运行异常;A first determination module is configured to determine that a target process has an abnormal operation when the target process is a temporary process;

第二确定模块,被配置为在目标进程为长效进程的情况下,查询目标进程的进程日志的更新时间,并基于更新时间,确定目标进程是否发生运行异常。The second determination module is configured to query the update time of the process log of the target process when the target process is a long-term process, and determine whether the target process has an abnormal operation based on the update time.

根据本说明书实施例的第三方面,提供了一种计算设备,包括:According to a third aspect of an embodiment of this specification, a computing device is provided, including:

存储器和处理器;Memory and processor;

所述存储器用于存储计算机程序/指令,所述处理器用于执行所述计算机程序/指令,该计算机程序/指令被处理器执行时实现上述进程监控方法的步骤。The memory is used to store computer programs/instructions, and the processor is used to execute the computer programs/instructions. When the computer programs/instructions are executed by the processor, the steps of the above-mentioned process monitoring method are implemented.

根据本说明书实施例的第四方面,提供了一种计算机可读存储介质,其存储有计算机程序/指令,该计算机程序/指令被处理器执行时实现上述进程监控方法的步骤。According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program/instruction, and when the computer program/instruction is executed by a processor, the steps of the above-mentioned process monitoring method are implemented.

根据本说明书实施例的第五方面,提供了一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述进程监控方法的步骤。According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program/instruction, which implements the steps of the above-mentioned process monitoring method when executed by a processor.

本说明书一个实施例中,获取目标进程的启动时间;基于启动时间,判断目标进程是否运行超时;若是,识别目标进程为临时进程或者长效进程;在目标进程为临时进程的情况下,确定目标进程发生运行异常;在目标进程为长效进程的情况下,查询目标进程的进程日志的更新时间,并基于更新时间,确定目标进程是否发生运行异常。整个进程监控遵循特定的监控规则,实现了自动化的进程监控。通过监控目标进程的启动时间和进程日志的更新时间,识别出目标交互进程是否异常运行,提升了进程监控的时效性。通过区分临时进程和长效进程,实现了更加精细化的监控,减少了误判的可能性,提高了进程监控的有效性和准确性。In one embodiment of the present specification, the start time of the target process is obtained; based on the start time, it is determined whether the target process has timed out; if so, the target process is identified as a temporary process or a long-term process; if the target process is a temporary process, it is determined that the target process has an abnormal operation; if the target process is a long-term process, the update time of the process log of the target process is queried, and based on the update time, it is determined whether the target process has an abnormal operation. The entire process monitoring follows specific monitoring rules to achieve automated process monitoring. By monitoring the start time of the target process and the update time of the process log, it is identified whether the target interactive process is running abnormally, thereby improving the timeliness of process monitoring. By distinguishing between temporary processes and long-term processes, more refined monitoring is achieved, the possibility of misjudgment is reduced, and the effectiveness and accuracy of process monitoring are improved.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本说明书一个实施例提供的一种进程监控方法的流程图;FIG1 is a flow chart of a process monitoring method provided by one embodiment of the present specification;

图2是本说明书一个实施例提供的一种进程监控方法的流程示意图;FIG2 is a flow chart of a process monitoring method provided by an embodiment of the present specification;

图3是本说明书一个实施例提供的一种应用于整车和动力总成生产系统的进程监控方法的处理过程流程图;FIG3 is a process flow chart of a process monitoring method applied to a vehicle and powertrain production system provided by an embodiment of this specification;

图4是本说明书一个实施例提供的一种进程监控装置的结构示意图;FIG4 is a schematic diagram of the structure of a process monitoring device provided by an embodiment of the present specification;

图5是本说明书一个实施例提供的一种计算设备的结构框图。FIG. 5 is a structural block diagram of a computing device provided by an embodiment of the present specification.

具体实施方式DETAILED DESCRIPTION

在下面的描述中阐述了很多具体细节以便于充分理解本说明书。但是本说明书能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本说明书内涵的情况下做类似推广,因此本说明书不受下面公开的具体实施的限制。Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

在本说明书一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本说明书一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

应当理解,尽管在本说明书一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

此外,需要说明的是,本说明书一个或多个实施例所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

首先,对本说明书一个或多个实施例涉及的名词术语进行解释。First, the terms involved in one or more embodiments of this specification are explained.

生产系统:大规模生产作业的信息技术系统,涵盖生产控制及产品质量管理两大核心板块。具体实例包括但不限于零件铸造、机械加工、装配流程的控制系统,以及对应的质量监管系统,应用于从零部件生产到成品组装的全链条。随着生产基地的拓展、新型产品线的引入,以及信息技术与数据分析技术的深度融合,这类系统的种类和复杂度正在快速增长。这些系统协同运行,共同支撑着现代化、智能化、高效低耗的生产运作。Production system: Information technology system for large-scale production operations, covering two core areas: production control and product quality management. Specific examples include, but are not limited to, control systems for parts casting, machining, and assembly processes, as well as corresponding quality control systems, which are applied to the entire chain from parts production to finished product assembly. With the expansion of production bases, the introduction of new product lines, and the deep integration of information technology and data analysis technology, the types and complexity of such systems are growing rapidly. These systems work together to support modern, intelligent, efficient and low-cost production operations.

生产系统稳定性管理:基于前述生产系统在先进生产中的核心作用,系统稳定性成为决定生产效能的关键因素。因此,对于生产系统,不论是管理流程、技术标准制定、软件开发,还是运维实践,都必须遵循严格的规范,确保系统的高度稳定性和可靠性。Production system stability management: Based on the core role of the aforementioned production system in advanced production, system stability has become a key factor in determining production efficiency. Therefore, for the production system, whether it is management process, technical standard formulation, software development, or operation and maintenance practice, strict specifications must be followed to ensure the high stability and reliability of the system.

软件系统:特指在软件系统环境下运行的各种应用程序,软件系统包括但不限于:Linux系统各类嵌入式软件系统如实时软件系统(Real Time Operating System,简称RTOS)、Vx Works等。Software system: specifically refers to various application programs running in a software system environment. Software systems include but are not limited to: Linux systems, various embedded software systems such as real-time software systems (Real Time Operating System, referred to as RTOS), Vx Works, etc.

交互进程:在多个自动化软件系统中,交互进程作为生产系统中的核心组件,它们负责不同系统、服务乃至硬件设备之间的信息交换与协调,确保了数据的流畅传递与指令的准确执行。Interactive processes: In multiple automated software systems, interactive processes are core components of production systems. They are responsible for information exchange and coordination between different systems, services, and even hardware devices, ensuring smooth data transmission and accurate execution of instructions.

进程僵死:由于网络通信故障或端系统异常,可能导致交互进程进入僵死状态。这时,交互进程既无法继续执行预定逻辑,也不再更新日志记录,而是维持在一个固定的交互环节停滞不前,同时占用的系统资源未能得到释放。尽管从系统管理层面看该交互进程依然存在,但实际上已失去功能。Process deadlock: Due to network communication failure or end system abnormality, the interactive process may enter a dead state. At this time, the interactive process can neither continue to execute the predetermined logic nor update the log record, but remains stagnant at a fixed interactive link, and the occupied system resources cannot be released. Although the interactive process still exists from the system management level, it has actually lost its function.

目前,一旦复杂的生产系统中出现故障,轻则影响自动化生产能力,重则影响整个生产或者生产系统自身安全。所以确保生产系统中各自动化软件系统都能够稳定地运行,就成为一项极富挑战性的任务。At present, once a failure occurs in a complex production system, it may affect the automated production capacity at the least, or even affect the safety of the entire production or the production system itself. Therefore, ensuring that all automated software systems in the production system can run stably has become a very challenging task.

交互进程僵死时,从软件系统层面很难发现这类问题。处于僵死状态的进程与其他正常进程一样被软件系统调用、管理。同时也保持其自身已经分配的资源(如CPU、内存等)。从外部较难发现交互进程处于僵死状态这种情况。而且僵死状态也可能不同,有的是陷入逻辑死循环、有的是卡在某个逻辑环境不再继续执行后续任务。When the interactive process is dead, it is difficult to find such problems from the software system level. The process in a dead state is called and managed by the software system like other normal processes. At the same time, it also maintains its own allocated resources (such as CPU, memory, etc.). It is difficult to find that the interactive process is in a dead state from the outside. Moreover, the dead state may be different. Some are trapped in a logical dead loop, and some are stuck in a certain logical environment and no longer continue to execute subsequent tasks.

但是,进程僵死会给生产带来非常严重的后果。例如交互进程僵死,不再与生产线上可编程逻辑控制器(Programmable Logic Controller,简称PLC)进行交互,那么生产线上的机器设备就会因为没有输入而停止工作,从而导致严重的停产事故。这类停产问题通常的解决路径是:当生产线停产以后,人为将事故现象报送给运维人员,运维人员根据事故现象逐个检查交互进程,从而定位到处于僵死状态的交互进程。重启或者进行一些技术操作来恢复故障。However, process deadlock can have very serious consequences for production. For example, if the interactive process is dead and no longer interacts with the Programmable Logic Controller (PLC) on the production line, the machines and equipment on the production line will stop working due to lack of input, resulting in a serious production stoppage accident. The usual solution to this type of production stoppage problem is: after the production line stops, the accident phenomenon is reported to the operation and maintenance personnel, who check the interactive processes one by one according to the accident phenomenon to locate the interactive process in a dead state. Restart or perform some technical operations to restore the fault.

然而,这种解决路径耗时较长,影响较为严重,因此,亟需一种自动、即时、有效的进程监控方法。However, this solution is time-consuming and has serious impacts. Therefore, an automatic, immediate and effective process monitoring method is urgently needed.

基于此。在本说明书中提供了一种进程监控方法,本说明书同时涉及一种进程监控装置,一种计算设备,一种计算机可读存储介质以及一种计算机程序产品,在下面的实施例中逐一进行详细说明。Based on this, a process monitoring method is provided in this specification, and this specification also relates to a process monitoring device, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.

参见图1,图1示出了本说明书一个实施例提供的一种进程监控方法的流程图,包括如下具体步骤:Referring to FIG. 1 , FIG. 1 shows a flow chart of a process monitoring method provided by an embodiment of the present specification, including the following specific steps:

步骤102:获取目标进程的启动时间。Step 102: Get the start time of the target process.

本说明书实施例应用于生产系统中的进程监控功能单元,生产系统包括多个自动化软件系统和/或多个端,该进程监控功能单元可以为集成在自动化软件系统内部的组件,也可以为独立于自动化软件系统的在独立部署的服务运行,进程监控功能单元跨系统地收集和分析各自动化软件系统及端上的进程状态信息,实现对生产系统中交互进程的统一监控。The embodiments of this specification are applied to a process monitoring functional unit in a production system, which includes multiple automation software systems and/or multiple terminals. The process monitoring functional unit can be a component integrated within the automation software system, or can be an independently deployed service running independently of the automation software system. The process monitoring functional unit collects and analyzes process status information on each automation software system and terminal across systems to achieve unified monitoring of interactive processes in the production system.

目标进程为当前进程监控过程中被监控的交互进程。目标进程可以为随机选择的,也可以按照其优先级选择,以确保对系统中最为关键或风险较高的目标进程被优先监控。在此不作限定。例如,在一个汽车生产系统中,负责控制喷漆机器人的交互进程为目标进程,其是否运行异常直接影响到汽车喷漆的质量与生产进度。The target process is the interactive process being monitored during the current process monitoring process. The target process can be randomly selected or selected according to its priority to ensure that the most critical or high-risk target process in the system is monitored first. This is not limited here. For example, in an automobile production system, the interactive process responsible for controlling the painting robot is the target process. Whether it runs abnormally directly affects the quality and production progress of automobile painting.

目标进程的启动时间为目标进程被软件系统启动并开始执行的时间戳,启动时间包括但不限于:启动日期和启动时刻。软件系统通过记录目标进程的启动时间,在步骤104中初步判断目标进程是否出现运行超时,作为判断目标进程是否处于僵死状态的一个基础指标。例如,负责控制喷漆机器人的目标进程的启动时间为2024-06-218:00:00。The start time of the target process is the timestamp when the target process is started by the software system and begins to execute. The start time includes but is not limited to: the start date and the start time. The software system records the start time of the target process and preliminarily determines whether the target process has a running timeout in step 104 as a basic indicator for determining whether the target process is in a zombie state. For example, the start time of the target process responsible for controlling the painting robot is 2024-06-218:00:00.

获取目标进程的启动时间,具体地:基于目标进程的进程标识,获取目标进程的启动时间。进一步地,一种可选的方式为:从生产系统的日志中,基于目标进程的进程标识,获取目标进程的启动时间,另一种可选的方式为:通过命令行工具,基于目标进程的进程标识,获取目标进程的启动时间,例如,在Linux系统中,使用ps命令配合-o start选项来获取进程的启动时间:ps-o|start-p%V(%PROG_ID%V|awk‘{if(NR==2){print$0}}’。Get the start time of the target process, specifically: get the start time of the target process based on the process ID of the target process. Further, an optional way is: get the start time of the target process based on the process ID of the target process from the log of the production system, another optional way is: get the start time of the target process based on the process ID of the target process through a command line tool, for example, in a Linux system, use the ps command with the -o start option to get the start time of the process: ps -o | start -p %V(%PROG_ID %V | awk '{if(NR==2){print$0}}'.

示例性地,在一个汽车生产系统中,内置有一个进程监控功能单元。当前处于对控制组装机器人的交互进程的监控中,通过命令行工具,基于该目标进程的进程标识“Assembly_Li ne”,获取目标进程的启动时间:2024-06-218:00:00。For example, in an automobile production system, a process monitoring functional unit is built in. Currently, the interactive process of controlling the assembly robot is being monitored. Through the command line tool, based on the process identifier "Assembly_Line" of the target process, the start time of the target process is obtained: 2024-06-218:00:00.

通过获取目标进程的启动时间,为后续判断目标进程是否超时提供了时间数据支持。By obtaining the start time of the target process, time data support is provided for subsequent judgment of whether the target process has timed out.

步骤104:基于启动时间,判断目标进程是否运行超时。Step 104: Based on the start time, determine whether the target process has timed out.

需要说明的是,将生产系统各自动化软件系统之间进行交互的交互进程划分为临时进程和长效进程,临时进程只在短时间内运行,一旦交互完成该进程停止运行,长效进程需要长时间运行。基于启动时间进行目标进程是否运行超时判断,不能直接用于判断目标进程是否运行异常,只是作为一个参考标准。It should be noted that the interactive processes between the automation software systems of the production system are divided into temporary processes and long-term processes. Temporary processes only run for a short time and stop running once the interaction is completed. Long-term processes need to run for a long time. Judging whether the target process has timed out based on the start time cannot be directly used to judge whether the target process is running abnormally, but only as a reference standard.

基于启动时间,判断目标进程是否运行超时,一种可选的方式为:基于启动时间,进行固定阈值超时判断,确定目标进程是否运行超时,例如,根据进程的预期运行时间和/或生产要求,预设一个合理的超时时间阈值。另一种可选的方式为:基于启动时间,进行动态阈值超时判断,确定目标进程是否运行超时,具体地,根据历史运行数据、系统负载情况,甚至外部环境因素(如网络状况)动态调整超时阈值。例如,使用机器学习算法分析进程的历史运行时长,动态设定一个超时时间阈值,或者,根据生产系统当前的资源使用情况(如CPU负载、内存使用率),动态设定一个超时时间阈值。Based on the startup time, it is determined whether the target process has timed out. One optional method is to perform a fixed threshold timeout judgment based on the startup time to determine whether the target process has timed out. For example, a reasonable timeout threshold is preset based on the expected running time of the process and/or production requirements. Another optional method is to perform a dynamic threshold timeout judgment based on the startup time to determine whether the target process has timed out. Specifically, the timeout threshold is dynamically adjusted based on historical running data, system load, and even external environmental factors (such as network conditions). For example, a machine learning algorithm is used to analyze the historical running time of the process and dynamically set a timeout threshold, or a timeout threshold is dynamically set based on the current resource usage of the production system (such as CPU load, memory usage).

示例性地,基于启动时间2024-06-218:00:00,进行固定阈值超时判断,确定该目标进程是否运行超时。Exemplarily, based on the start time 2024-06-218:00:00, a fixed threshold timeout judgment is performed to determine whether the target process has timed out.

基于启动时间,判断目标进程是否运行超时,完成了初步的进程运行时长判断,提升了进程监控的时效性,为后续更加精细化的监控提供了支持。Based on the startup time, it determines whether the target process has timed out, completes the preliminary judgment of the process running time, improves the timeliness of process monitoring, and provides support for subsequent more refined monitoring.

步骤106:若是,识别目标进程为临时进程或者长效进程。Step 106: If yes, identify the target process as a temporary process or a long-term process.

临时进程为在自动化软件系统中为完成短期任务而创建的进程,一旦该短期任务完成或达到预设条件,临时进程便会自动停止运行。临时进程的特点是生命周期较短,通常不会长期驻留在系统中,目的是高效利用系统资源,避免不必要的资源占用。例如,在汽车生产系统中,一个临时进程是负责对某一特定批次汽车进行特殊配置调整的控制进程,一旦该批次车辆的配置调整完毕,该进程即刻结束运行。A temporary process is a process created in an automated software system to complete a short-term task. Once the short-term task is completed or the preset conditions are met, the temporary process will automatically stop running. Temporary processes are characterized by a short life cycle and usually do not stay in the system for a long time. The purpose is to efficiently utilize system resources and avoid unnecessary resource occupation. For example, in an automobile production system, a temporary process is a control process responsible for making special configuration adjustments to a specific batch of vehicles. Once the configuration adjustment of the batch of vehicles is completed, the process will immediately end.

长效进程为在自动化软件系统中为完成长期任务而创建的进程,在自动化软件系统中持续扮演系统核心功能支撑的角色,除非遇到特定异常或手动停止,否则会一直保持运行状态。长效进程的特点是生命周期较长,会长期驻留在系统中,目的是确保其长期运行的可靠性和效率。例如,在汽车生产系统中,负责持续补充零件的交互进程为一个长效进程,它需要持续不断地运行,以确保生产线的顺畅运行。A long-term process is a process created in an automated software system to complete a long-term task. It continuously plays the role of supporting the core functions of the system in the automated software system and will remain in operation unless it encounters a specific exception or is manually stopped. Long-term processes are characterized by a long life cycle and will remain in the system for a long time to ensure their long-term reliability and efficiency. For example, in an automobile production system, the interactive process responsible for the continuous replenishment of parts is a long-term process that needs to run continuously to ensure the smooth operation of the production line.

识别目标进程为临时进程或者长效进程,一种可选的方式为:基于目标进程的进程类型标识,识别目标进程为临时进程或者长效进程,另一种可选的方式为:根据系统资源分配与依赖关系,识别目标进程为临时进程或者长效进程,例如,根据目标进程对系统资源(如CP U、内存)的占用模式,以及它与其他系统组件的依赖关系。One optional way to identify a target process as a temporary process or a long-term process is to identify the target process as a temporary process or a long-term process based on a process type identifier of the target process. Another optional way is to identify the target process as a temporary process or a long-term process based on system resource allocation and dependencies, for example, based on the target process's occupation pattern of system resources (such as CPU, memory), and its dependencies with other system components.

示例性地,基于该目标进程的进程类型标识“IF_REF_LOG”,识别目标进程为临时进程或者长效进程。Exemplarily, based on the process type identifier "IF_REF_LOG" of the target process, it is identified that the target process is a temporary process or a long-term process.

若是,识别目标进程为临时进程或者长效进程,对目标进程进行区分,为后续更加精细化的监控提供了支持。If so, identify the target process as a temporary process or a long-term process, distinguish the target process, and provide support for subsequent more refined monitoring.

步骤108:在目标进程为临时进程的情况下,确定目标进程发生运行异常。Step 108: When the target process is a temporary process, it is determined that an operation abnormality occurs in the target process.

需要说明的是,临时进程的生命周期较短,如果运行超时,可以直接认定目标进程发生运行异常。It should be noted that the life cycle of a temporary process is short. If the process times out, it can be directly determined that the target process has an abnormal operation.

步骤110:在目标进程为长效进程的情况下,查询目标进程的进程日志的更新时间,并基于更新时间,确定目标进程是否发生运行异常。Step 110: When the target process is a long-term process, query the update time of the process log of the target process, and determine whether the target process has an abnormal operation based on the update time.

目标进程的进程日志为记录有目标进程的运行情况的文件,记录了目标进程在运行期间的关键事件、状态变化、错误信息、警告等信息。进程日志记录的信息包括但不限于:启动时间、终止时间、执行过程中的关键步骤、资源使用情况(如CPU、内存、磁盘I/O)。日志的格式可以是纯文本、JSON、XML等多种形式。例如,在汽车生产系统中,控制焊接机器人的长效进程的进程日志中记录有:启动时间、终止时间、使用的焊接参数、是否成功完成焊接以及任何焊接失败。The process log of the target process is a file that records the operation of the target process, including key events, state changes, error messages, warnings, and other information during the operation of the target process. The information recorded in the process log includes, but is not limited to: start time, end time, key steps in the execution process, and resource usage (such as CPU, memory, and disk I/O). The log format can be plain text, JSON, XML, and other forms. For example, in an automobile production system, the process log of a long-term process that controls a welding robot records: start time, end time, welding parameters used, whether welding was successfully completed, and any welding failures.

进程日志的更新时间为进程日志中记录的最后一条信息的时间戳,它标志着目标进程最近一次活动或状态变化的时刻。如果一个长效进程的进程日志长时间没有更新,这意味着该长效进程已经停止处理新的任务,该长效进程处于僵死状态。例如,负责持续补充零件的交互进程为一个长效进程的进程日志中最后一条信息的时间戳为2024-06-217:13:00。The update time of the process log is the timestamp of the last message recorded in the process log, which marks the moment of the target process's most recent activity or state change. If the process log of a long-term process has not been updated for a long time, it means that the long-term process has stopped processing new tasks and is in a dead state. For example, the last message in the process log of the interactive process responsible for continuous replenishment of parts is timestamp 2024-06-217:13:00.

基于更新时间,确定目标进程是否发生运行异常,一种可选的方式为:基于更新时间,进行固定阈值超时判断,确定目标进程是否发生运行异常,例如,根据长效进程的进程特征和/或生产要求,预设一个合理的超时时间阈值。另一种可选的方式为:基于更新时间,进行动态阈值超时判断,确定目标进程是否发生运行异常,具体地,根据历史运行数据、系统负载情况,甚至外部环境因素(如网络状况)动态调整超时阈值。例如,使用机器学习算法分析长效进程的历史运行时长,动态设定一个超时时间阈值,或者,根据生产系统当前的资源使用情况(如CPU负载、内存使用率),动态设定一个超时时间阈值。Based on the update time, determine whether the target process has an abnormal operation. One optional method is: based on the update time, perform a fixed threshold timeout judgment to determine whether the target process has an abnormal operation. For example, preset a reasonable timeout threshold based on the process characteristics and/or production requirements of the long-term process. Another optional method is: based on the update time, perform a dynamic threshold timeout judgment to determine whether the target process has an abnormal operation. Specifically, dynamically adjust the timeout threshold based on historical operation data, system load, and even external environmental factors (such as network conditions). For example, use a machine learning algorithm to analyze the historical running time of a long-term process and dynamically set a timeout threshold, or dynamically set a timeout threshold based on the current resource usage of the production system (such as CPU load, memory usage).

示例性地,在该目标进程为长效进程的情况下,查询该目标进程的进程日志的更新时间2024-06-217:13:00,基于更新时间,确定该目标进程发生运行异常。Exemplarily, when the target process is a long-term process, the update time 2024-06-217:13:00 of the process log of the target process is queried, and based on the update time, it is determined that the target process has an operational abnormality.

本说明书实施例中,整个进程监控遵循特定的监控规则,实现了自动化的进程监控。通过监控目标进程的启动时间和进程日志的更新时间,识别出目标交互进程是否异常运行,提升了进程监控的时效性。通过区分临时进程和长效进程,实现了更加精细化的监控,减少了误判的可能性,提高了进程监控的有效性和准确性。In the embodiments of this specification, the entire process monitoring follows specific monitoring rules to achieve automated process monitoring. By monitoring the start time of the target process and the update time of the process log, it is possible to identify whether the target interactive process is running abnormally, thereby improving the timeliness of process monitoring. By distinguishing between temporary processes and long-term processes, more refined monitoring is achieved, reducing the possibility of misjudgment and improving the effectiveness and accuracy of process monitoring.

在本说明书一种可选实施例中,在步骤104之前,还包括如下具体步骤:In an optional embodiment of the present specification, before step 104, the following specific steps are also included:

获取目标进程的预设运行时长;Get the preset running time of the target process;

对应地,步骤104包括如下具体步骤:Correspondingly, step 104 includes the following specific steps:

基于启动时间和当前时间,确定目标进程的运行时长;Determine the running time of the target process based on the start time and the current time;

比对运行时长和预设运行时长,判断目标进程是否运行超时。Compare the running time with the preset running time to determine whether the target process has timed out.

目标进程的预设运行时长为预先设定的针对目标进程的运行时长阈值,一旦超过该阈值,即可认定目标进程运行超时。目标进程的预设运行时长根据目标进程的预期运行时间和/或生产要求来设定。例如,设定目标进程的预设运行时长RUNNING_TIME为3000ms。The preset running time of the target process is a preset running time threshold for the target process. Once the threshold is exceeded, the target process is deemed to have timed out. The preset running time of the target process is set according to the expected running time of the target process and/or production requirements. For example, the preset running time RUNNING_TIME of the target process is set to 3000ms.

当前时间为在当前进程监控过程的即时时间戳,代表监控操作实际发生的确切时刻,是衡量目标进程是否运行超时的一个动态参照点。例如,当前时间为2024-06-218:00:05。The current time is the instant timestamp of the current process monitoring process, which represents the exact moment when the monitoring operation actually occurs and is a dynamic reference point for measuring whether the target process has timed out. For example, the current time is 2024-06-218:00:05.

目标进程的运行时长为从目标进程启动到当前时间的持续时间段,是评估目标进程是否运行超时的直接依据,如果运行时长大于预设运行时长,则确定目标进程已经超时,需要更加精细化的监控,确定目标进程是否发生运行异常。The running time of the target process is the duration from the start of the target process to the current time. It is the direct basis for evaluating whether the target process has timed out. If the running time is greater than the preset running time, it is determined that the target process has timed out. More refined monitoring is required to determine whether the target process has run abnormally.

基于启动时间和当前时间,确定目标进程的运行时长,一种可选的命令行如下:echo$(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%PS_START_TIME%V)%’+%s)))。Based on the start time and the current time, determine the running length of the target process. An optional command line is as follows: echo $(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%PS_START_TIME%V)%’+%s))).

比对运行时长和预设运行时长,一种可选的命令行如下:PS_RUN_SEC>RUNNING_TIME?。To compare the running time with the expected running time, an optional command line is as follows: PS_RUN_SEC>RUNNING_TIME?.

示例性地,获取该目标进程的预设运行时长(3000ms),基于启动时间2024-06-218:00:00和当前时间2024-06-218:00:05,确定目标进程的运行时长5000ms,运行时长大于预设运行时长,判断该目标进程运行超时。Exemplarily, the preset running time (3000ms) of the target process is obtained, and based on the start time 2024-06-218:00:00 and the current time 2024-06-218:00:05, the running time of the target process is determined to be 5000ms. The running time is greater than the preset running time, and it is determined that the target process has timed out.

本说明书实施例中,采用固定阈值的方式,完成了更为准确的初步的进程运行时长判断,进一步提升了进程监控的时效性,为后续更加精细化的监控提供了支持。In the embodiments of this specification, a fixed threshold method is used to complete a more accurate preliminary judgment of the process running time, further improve the timeliness of process monitoring, and provide support for subsequent more refined monitoring.

在本说明书一种可选实施例中,在步骤106之前,还包括如下具体步骤:In an optional embodiment of the present specification, before step 106, the following specific steps are also included:

获取目标进程的进程类型标识;Get the process type identifier of the target process;

对应地,步骤106包括如下具体步骤:Correspondingly, step 106 includes the following specific steps:

若是,基于进程类型标识,识别目标进程为临时进程或者长效进程。If so, based on the process type identifier, identify the target process as a temporary process or a long-term process.

目标进程的进程类型标识为用于区分目标进程的进程类型的标签符号,包括:临时进程的进程类型标识或者长效进程的进程类型标识。由于长效进程需要查询进程日志,所以进程类型标识也可以为是否需要查询进程日志的标识。例如,临时进程的进程类型标识为“IF_R EF_LOG=0”,表征不需要查询进程日志,长效进程的进程类型标识为“IF_REF_LOG=1”,表征需要查询进程日志。The process type identifier of the target process is a label symbol used to distinguish the process type of the target process, including: a process type identifier of a temporary process or a process type identifier of a long-term process. Since a long-term process needs to query the process log, the process type identifier can also be an identifier of whether the process log needs to be queried. For example, the process type identifier of a temporary process is "IF_REF_LOG=0", indicating that the process log does not need to be queried, and the process type identifier of a long-term process is "IF_REF_LOG=1", indicating that the process log needs to be queried.

基于进程类型标识,识别目标进程为临时进程或者长效进程,一种可选的命令行如下:I F_REF_LOG=1?。Based on the process type identifier, the target process is identified as a temporary process or a long-term process. An optional command line is as follows: IF_REF_LOG=1?.

示例性地,获取该目标进程的进程类型标识“IF_REF_LOG=1”,基于该进程类型标识,识别该目标进程为长效进程。Exemplarily, the process type identifier "IF_REF_LOG=1" of the target process is obtained, and based on the process type identifier, the target process is identified as a long-term process.

本说明书实施例中,基于进程类型标识对目标进程进行更准确区分,为后续更加精细化的监控提供了支持。In the embodiments of this specification, the target process is more accurately distinguished based on the process type identifier, providing support for subsequent more refined monitoring.

在本说明书一种可选实施例中,在步骤110中基于更新时间,确定目标进程是否发生运行异常之前,还包括如下具体步骤:In an optional embodiment of the present specification, before determining whether the target process has an abnormal operation based on the update time in step 110, the following specific steps are also included:

获取目标进程的进程日志的预设停止更新时长;Get the preset stop update duration of the process log of the target process;

对应地,基于更新时间,确定目标进程是否发生运行异常,包括如下具体步骤:Correspondingly, based on the update time, determining whether the target process has an abnormal operation includes the following specific steps:

基于更新时间和当前时间,确定进程日志的停止更新时长;Based on the update time and current time, determine the duration for which the process log will stop updating;

比对停止更新时长和预设停止更新时长;Compare the stop update duration with the preset stop update duration;

在停止更新时长大于预设停止更新时长的情况下,确定目标进程发生运行异常。When the stop-update time is longer than the preset stop-update time, it is determined that the target process runs abnormally.

目标进程的进程日志的预设停止更新时长为预先设定的针对目标进程的进程日志的停止更新时长阈值,一旦超过该阈值,即可认定该长效进程发生运行异常。目标进程的进程日志的预设停止更新时长根据长效进程的进程特征和/或生产要求。例如,设定目标进程的进程日志的预设停止更新时长LOG_STOP_TIME为120000ms。The preset stop update time of the process log of the target process is a preset stop update time threshold for the process log of the target process. Once the threshold is exceeded, it can be determined that the long-term process has an abnormal operation. The preset stop update time of the process log of the target process is based on the process characteristics and/or production requirements of the long-term process. For example, the preset stop update time of the process log of the target process LOG_STOP_TIME is set to 120000ms.

当前时间为在当前进程监控过程的即时时间戳,代表监控操作实际发生的确切时刻,是衡量目标进程是否运行超时的一个动态参照点。例如,当前时间为2024-06-218:33:00。The current time is the instant timestamp of the current process monitoring process, which represents the exact moment when the monitoring operation actually occurs and is a dynamic reference point for measuring whether the target process has timed out. For example, the current time is 2024-06-218:33:00.

进程日志的停止更新时长为从进程日志的更新时间到当前时间的持续时间段,是评估长效进程是否发生运行异常的直接依据,如果停止更新时长大于预设停止更新时长,则确定目标进程发生运行异常。The stop update duration of the process log is the duration from the update time of the process log to the current time. It is the direct basis for evaluating whether a long-term process has an abnormal operation. If the stop update duration is greater than the preset stop update duration, it is determined that the target process has an abnormal operation.

获取目标进程的进程日志的预设停止更新时长,一种可选的命令行如下:echo$(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%PS_START_TIME%V)%’+%s)))。Get the preset stop update time of the process log of the target process. An optional command line is as follows: echo $(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%PS_START_TIME%V)%’+%s))).

基于更新时间和当前时间,确定进程日志的停止更新时长,一种可选的命令行如下:ec ho$(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%LOG_STILL_TIME%V)%’+%s)))。Based on the update time and the current time, determine the duration for which the process log will stop updating. An optional command line is as follows: echo $(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%LOG_STILL_TIME%V)%’+%s))).

比对停止更新时长和预设停止更新时长,一种可选的命令行如下:LOG_STILL_SEC>L OG_STOP_TIME?。Compare the stop update time with the preset stop update time. An optional command line is as follows: LOG_STILL_SEC>LOG_STOP_TIME?.

示例性地,获取该目标进程的进程日志的预设停止更新时长(120000ms),基于更新时间2024-06-217:13:00和当前时间2024-06-218:00:05,确定进程日志的停止更新时长282500ms,比对停止更新时长和预设停止更新时长,停止更新时长大于预设停止更新时长,确定该目标进程发生运行异常。Exemplarily, the preset stop update duration (120000ms) of the process log of the target process is obtained, and based on the update time 2024-06-217:13:00 and the current time 2024-06-218:00:05, the stop update duration of the process log is determined to be 282500ms, and the stop update duration is compared with the preset stop update duration. If the stop update duration is greater than the preset stop update duration, it is determined that the target process has an abnormal operation.

本说明书实施例中,采用固定阈值的方式,完成了更为准确的精细化的监控,进一步减少了误判的可能性,进一步提高了进程监控的有效性和准确性。In the embodiments of this specification, a fixed threshold method is adopted to achieve more accurate and refined monitoring, further reduce the possibility of misjudgment, and further improve the effectiveness and accuracy of process monitoring.

在本说明书一种可选实施例中,在停止更新时长大于预设停止更新时长的情况下,确定目标进程发生运行异常之后,还包括如下具体步骤:In an optional embodiment of the present specification, when the stop update time is longer than the preset stop update time, after determining that the target process has run abnormally, the following specific steps are also included:

停止运行目标进程,并记录目标进程的运行信息;Stop the target process and record the running information of the target process;

将运行信息反馈至前端。Feedback operation information to the front end.

本说明书实施例中,在停止更新时长大于预设停止更新时长的情况下,确定目标进程发生运行异常之后,需要自动反馈监控结果,让前端及时进行处理,及时避免整体生产系统发生异常,消除风险。In the embodiment of this specification, when the stop update time is longer than the preset stop update time, after determining that the target process has an abnormal operation, it is necessary to automatically feedback the monitoring results so that the front end can process it in time to avoid abnormalities in the overall production system and eliminate risks.

目标进程的运行信息为在当前进程监控过程中收集的目标进程的运行情况信息,包括但不限于:目标进程的正常运行信息和目标进程的异常运行信息。例如,在汽车生产系统中,一个负责监控焊接机器人的长效进程的运行信息包含:启动时间为2024-06-218:00:00,运行时长累计达到30小时,平均CPU占用率为15%,内存使用峰值为2GB,在2024-06-2210:15:00记录到一次与PLC通信失败的错误日志,以及在2024-06-2211:00:00发现进程最后一次成功执行焊接任务的记录。The operation information of the target process is the operation status information of the target process collected during the current process monitoring process, including but not limited to: normal operation information of the target process and abnormal operation information of the target process. For example, in the automobile production system, the operation information of a long-term process responsible for monitoring the welding robot includes: the start time is 2024-06-21 8:00:00, the cumulative running time reaches 30 hours, the average CPU occupancy rate is 15%, the peak memory usage is 2GB, an error log of a failed communication with the PLC is recorded at 2024-06-22 10:15:00, and the record of the last successful execution of the welding task by the process is found at 2024-06-22 11:00:00.

前端为生产系统中进程监控功能单元的前端,可以是监控仪表板、Web界面或任何图形用户界面,显示目标进程的运行信息,使运维人员或管理人员能够直观地查看进程监控结果并及时进行处理。The front end is the front end of the process monitoring functional unit in the production system, which can be a monitoring dashboard, a web interface or any graphical user interface, which displays the running information of the target process, so that the operation and maintenance personnel or management personnel can intuitively view the process monitoring results and handle them in time.

将运行信息反馈至前端,一种可选的方式为:通过邮件形式,将运行信息反馈至前端,另一种可选的方式为:通过即时消息形式,将运行信息反馈至前端,再一种可选的方式为:通过图表形式,将运行信息反馈至前端。Feedback of the operation information to the front end: one optional way is to feed back the operation information to the front end via email, another optional way is to feed back the operation information to the front end via instant messaging, and yet another optional way is to feed back the operation information to the front end via charts.

示例性地,停止运行该目标进程,并记录该目标进程的异常运行信息,通过邮件形式,将异常运行信息反馈至前端的运维人员。Exemplarily, the target process is stopped, and abnormal operation information of the target process is recorded, and the abnormal operation information is fed back to the front-end operation and maintenance personnel in the form of emails.

本说明书实施例中,通过交互形式,在长效进程发生运行异常的时候,及时反馈运行信息至前端,提升了异常响应速度与系统安全性。In the embodiments of this specification, when a long-term process has an operational abnormality, operational information is fed back to the front end in a timely manner through an interactive form, thereby improving the abnormal response speed and system security.

在本说明书一种可选实施例中,在步骤108之后,还包括如下具体步骤:In an optional embodiment of the present specification, after step 108, the following specific steps are also included:

停止运行目标进程,并记录目标进程的运行信息;Stop the target process and record the running information of the target process;

将运行信息反馈至前端。Feedback operation information to the front end.

本说明书实施例中,在目标进程为临时进程的情况下,确定目标进程发生运行异常之后,需要自动反馈监控结果,让前端及时进行处理,及时避免整体生产系统发生异常,消除风险。In the embodiment of this specification, when the target process is a temporary process, after determining that the target process has an abnormal operation, it is necessary to automatically feedback the monitoring results so that the front end can process it in time to avoid abnormalities in the overall production system and eliminate risks.

具体内容参见上述实施例,在此不再赘述。Please refer to the above embodiments for the specific details, which will not be described again here.

本说明书实施例中,通过交互形式,在临时进程发生运行异常的时候,及时反馈运行信息至前端,提升了异常响应速度与系统安全性。In the embodiments of this specification, when a temporary process runs abnormally, operation information is fed back to the front end in a timely manner through an interactive form, thereby improving the abnormal response speed and system security.

在本说明书一种可选实施例中,在步骤110中查询目标进程的进程日志的更新时间之后,还包括如下具体步骤:In an optional embodiment of the present specification, after querying the update time of the process log of the target process in step 110, the following specific steps are also included:

若未查询到,停止运行目标进程,并记录目标进程的运行信息;If the target process is not found, stop running the target process and record the running information of the target process;

将运行信息反馈至前端。Feedback operation information to the front end.

本说明书实施例中,如果未查询目标进程的进程日志的更新时间,表征可以将长效进程视为临时进程处理,即直接确定发生运行异常,如上述实施例所示,在目标进程为临时进程的情况下,确定目标进程发生运行异常之后,需要自动反馈监控结果,让前端及时进行处理,及时避免整体生产系统发生异常,消除风险。In the embodiments of this specification, if the update time of the process log of the target process is not queried, it is characterized that the long-term process can be treated as a temporary process, that is, it is directly determined that an operation abnormality has occurred. As shown in the above embodiment, when the target process is a temporary process, after determining that an operation abnormality has occurred in the target process, it is necessary to automatically feedback the monitoring results so that the front end can process it in a timely manner, avoid abnormalities in the overall production system in a timely manner, and eliminate risks.

具体内容参见上述实施例,在此不再赘述。Please refer to the above embodiments for the specific details, which will not be described again here.

本说明书实施例中,通过交互形式,在未查询到查询长效进程的进程日志的更新时间的时候,及时反馈运行信息至前端,提升了异常响应速度与系统安全性。In the embodiment of the present specification, through the interactive form, when the update time of the process log of the long-term process is not queried, the operation information is promptly fed back to the front end, thereby improving the abnormal response speed and system security.

在本说明书一种可选实施例中,在步骤102之前,还包括如下具体步骤:In an optional embodiment of the present specification, before step 102, the following specific steps are also included:

获取预设的多个待监控进程的配置信息;Obtain configuration information of multiple preset processes to be monitored;

将多个待监控进程的配置信息存入监控进程集合;Storing configuration information of multiple processes to be monitored into a monitoring process set;

判断监控进程集合是否为空;Determine whether the monitoring process set is empty;

若否,从监控进程集合中,获取目标进程的配置信息,并删除监控进程集合中目标进程的配置信息;If not, obtain the configuration information of the target process from the monitoring process set, and delete the configuration information of the target process in the monitoring process set;

解析配置信息,获得目标进程的进程标识和配置参数,其中,配置参数包括预设运行时长、进程类型标识和目标进程的进程日志的预设停止更新时长中至少一项;Parsing the configuration information to obtain a process identifier and configuration parameters of the target process, wherein the configuration parameters include at least one of a preset running time, a process type identifier, and a preset stop updating time of the process log of the target process;

将进程标识放入进程监控队列。Put the process ID into the process monitoring queue.

需要说明的是,进程监控依据进程监控队列实现,例如,job,crontab等。预先将多个待监控进程放入进程监控队列,需要获取预设的多个待监控进程的配置信息,进而在队列执行过程中,逐个完成对进程的监控。It should be noted that process monitoring is implemented based on process monitoring queues, such as job, crontab, etc. Multiple processes to be monitored are put into the process monitoring queue in advance, and the configuration information of the preset multiple processes to be monitored needs to be obtained, and then the processes are monitored one by one during the queue execution process.

待监控进程为需要被监控的交互进程。例如,在汽车生产系统中,待监控进程包括负责喷漆机器人控制的进程、零件补充的长效进程、以及特定批次汽车配置调整的临时进程。这些进程的稳定运行直接关系到生产效率和产品质量。The processes to be monitored are interactive processes that need to be monitored. For example, in an automobile production system, the processes to be monitored include the process responsible for controlling the painting robot, the long-term process for parts replenishment, and the temporary process for adjusting the configuration of a specific batch of cars. The stable operation of these processes is directly related to production efficiency and product quality.

待监控进程的配置信息为待监控进程的预设参数和特性描述,用于指导进程监控功能单元执行进程监控。待监控进程的配置信息包括但不限于:待监控进程的配置信息索引、待监控进程的描述信息、待监控进程的配置信息的有效标识、待监控进程的进程标识、待监控进程的预设运行时长,待监控进程的进程类型标识、待监控进程的进程日志标识、待监控进程的进程日志的预设停止更新时长。The configuration information of the process to be monitored is the preset parameters and characteristic description of the process to be monitored, which is used to guide the process monitoring functional unit to perform process monitoring. The configuration information of the process to be monitored includes but is not limited to: the configuration information index of the process to be monitored, the description information of the process to be monitored, the valid identifier of the configuration information of the process to be monitored, the process identifier of the process to be monitored, the preset running time of the process to be monitored, the process type identifier of the process to be monitored, the process log identifier of the process to be monitored, and the preset stop updating time of the process log of the process to be monitored.

目标进程的配置信息目标进程的预设参数和特性描述,用于指导进程监控功能单元对目标进程执行进程监控。目标进程的配置信息包括但不限于:目标进程的配置信息索引、目标进程的描述信息、目标进程的配置信息的有效标识、目标进程的进程标识、目标进程的预设运行时长,目标进程的进程类型标识、目标进程的进程日志标识、目标进程的进程日志的预设停止更新时长。Configuration information of the target process The preset parameters and characteristic description of the target process are used to guide the process monitoring function unit to perform process monitoring on the target process. The configuration information of the target process includes but is not limited to: the configuration information index of the target process, the description information of the target process, the valid identifier of the configuration information of the target process, the process identifier of the target process, the preset running time of the target process, the process type identifier of the target process, the process log identifier of the target process, and the preset stop updating time of the process log of the target process.

监控进程集合为用于存储待监控进程的配置信息的存储结构,这个集合包含了系统中所有待监控进程的配置信息,确保进程监控功能单元能够有组织、有计划地对这些进程进行监控和管理。一旦该集合为空,认定完成对待监控进程的监控,结束监控。The monitoring process set is a storage structure for storing the configuration information of the process to be monitored. This set contains the configuration information of all the processes to be monitored in the system, ensuring that the process monitoring functional unit can monitor and manage these processes in an organized and planned manner. Once the set is empty, it is considered that the monitoring of the process to be monitored is completed and the monitoring ends.

配置参数为针对交互进程设置的预定义变量和阈值。这些参数根据进程的特征、预期行为以及生产要求预先设定,确保监控策略既精准又适应性强。配置参数的核心作用在于为进程监控功能单元提供决策依据,使其能够自动判断进程是否运行正常,何时触发异常警报,以及如何应对不同类型的异常情况。通过灵活配置这些参数,进程监控功能单元能够更好地适应多样化的生产环境和不断变化的生产需求,提高监控效率和准确性。配置参数包括预设运行时长、进程类型标识和目标进程的进程日志的预设停止更新时长中至少一项。Configuration parameters are predefined variables and thresholds set for interactive processes. These parameters are pre-set according to the characteristics of the process, expected behavior, and production requirements to ensure that the monitoring strategy is both accurate and adaptable. The core role of configuration parameters is to provide decision-making basis for the process monitoring functional unit, so that it can automatically determine whether the process is running normally, when to trigger abnormal alarms, and how to deal with different types of abnormal situations. By flexibly configuring these parameters, the process monitoring functional unit can better adapt to diverse production environments and changing production needs, and improve monitoring efficiency and accuracy. Configuration parameters include at least one of the preset running time, process type identification, and preset stop update time of the process log of the target process.

以临时进程和长效进程为例,表1示出了一种待监控进程的配置信息:Taking temporary processes and long-term processes as examples, Table 1 shows configuration information of a process to be monitored:

表1Table 1

将多个待监控进程的配置信息存入监控进程集合,一种可选的命令行如下:SelectMON_PROG,RUNNING_TIME,IF_REF_LOG,LOG_FILE,LOG_STOP_TIMEfromoc_prog_kill_tw hereif_valid=1orderbypk_id。The configuration information of multiple processes to be monitored is stored in the monitoring process set. An optional command line is as follows: SelectMON_PROG,RUNNING_TIME,IF_REF_LOG,LOG_FILE,LOG_STOP_TIMEfromoc_prog_kill_tw hereif_valid=1orderbypk_id.

将进程标识放入进程监控队列,一种可选的命令行如下:ps-if|grep%V(%MON_PROG%V)%|grep-vgrep|awk‘{print$2}’。Put the process ID into the process monitoring queue. An optional command line is as follows: ps-if|grep %V(%MON_PROG%V)%|grep-vgrep|awk ‘{print$2}’.

示例性地,获取预设的1000个待监控进程的配置信息(待监控进程的配置信息索引、待监控进程的描述信息、待监控进程的配置信息的有效标识、待监控进程的进程标识、待监控进程的预设运行时长,待监控进程的进程类型标识、待监控进程的进程日志标识、待监控进程的进程日志的预设停止更新时长),将1000个待监控进程的配置信息存入监控进程集合,判断监控进程集合是否为空,若否,从监控进程集合中,获取控制组装机器人的交互进程这一目标进程的配置信息(目标进程的配置信息索引、目标进程的描述信息、目标进程的配置信息的有效标识、目标进程的进程标识、目标进程的预设运行时长,目标进程的进程类型标识、目标进程的进程日志标识、目标进程的进程日志的预设停止更新时长),并删除监控进程集合中该目标进程的配置信息,解析配置信息,获得该目标进程的进程标识、预设运行时长、进程类型标识和该目标进程的进程日志的预设停止更新时长,将该目标进程的进程标识放入进程监控队列。Exemplarily, obtain the configuration information of 1000 preset processes to be monitored (configuration information index of the process to be monitored, description information of the process to be monitored, valid identifier of the configuration information of the process to be monitored, process identifier of the process to be monitored, preset running time of the process to be monitored, process type identifier of the process to be monitored, process log identifier of the process to be monitored, preset stop updating time of the process log of the process to be monitored), store the configuration information of the 1000 processes to be monitored into the monitoring process set, determine whether the monitoring process set is empty, and if not, obtain the interactive process of controlling the assembly robot from the monitoring process set. The configuration information of the process (configuration information index of the target process, description information of the target process, valid identifier of the configuration information of the target process, process identifier of the target process, preset running time of the target process, process type identifier of the target process, process log identifier of the target process, preset stop updating time of the process log of the target process), and delete the configuration information of the target process in the monitoring process set, parse the configuration information, obtain the process identifier of the target process, preset running time, process type identifier and preset stop updating time of the process log of the target process, and put the process identifier of the target process into the process monitoring queue.

本说明书实施例中,通过预设配置和有序监控队列,实现了自动化、高效地管理与监控各类交互进程,确保及时发现并处理异常,提升了生产系统的稳定性和运维效率。In the embodiments of this specification, through preset configurations and orderly monitoring queues, automatic and efficient management and monitoring of various interactive processes are achieved, ensuring timely detection and handling of anomalies, thereby improving the stability and operation and maintenance efficiency of the production system.

在本说明书一种可选实施例中,在将进程标识放入进程监控队列之后,还包括如下具体步骤:In an optional embodiment of the present specification, after the process identifier is placed into the process monitoring queue, the following specific steps are also included:

从进程监控队列中,查询是否记录有目标进程的进程标识;From the process monitoring queue, check whether the process ID of the target process is recorded;

获取目标进程的启动时间,包括如下具体步骤:Obtaining the start time of the target process includes the following specific steps:

若是,获取目标进程的启动时间。If yes, get the start time of the target process.

需要说明的是,在步骤102之前,需要从进程监控队列中,查询是否记录有目标进程的进程标识,如果未记录,则表征目标进程没有运行,无需进行监控,只有目标进程运行的情况下,才触发执行步骤102-110。It should be noted that before step 102, it is necessary to query whether the process ID of the target process is recorded in the process monitoring queue. If not, it indicates that the target process is not running and does not need to be monitored. Only when the target process is running will steps 102-110 be triggered.

本说明书实施例中,通过检查进程监控队列中进程标识的存在性,有效避免了对未运行的目标进程的无效监控,优化了系统资源利用,提高了监控过程的针对性和效率。In the embodiments of the present specification, by checking the existence of the process identifier in the process monitoring queue, invalid monitoring of the target process that is not running is effectively avoided, the utilization of system resources is optimized, and the pertinence and efficiency of the monitoring process are improved.

在本说明书一种可选实施例中,在从进程监控队列中,查询是否记录有目标进程的进程标识之后,还包括如下具体步骤:In an optional embodiment of the present specification, after querying whether the process identifier of the target process is recorded in the process monitoring queue, the following specific steps are also included:

若否,更新目标进程,返回执行判断监控进程集合是否为空的步骤。If not, update the target process and return to the step of determining whether the monitored process set is empty.

需要说明的是,本说明书实施例是在查询进程监控队列中未记录有目标进程的进程标识的情况下的处理,更新目标进程,并返回执行判断监控进程集合是否为空,循环完成所有待监控进程的进程监控。It should be noted that the embodiment of this specification is for processing when the process ID of the target process is not recorded in the query process monitoring queue, the target process is updated, and the execution is returned to determine whether the monitoring process set is empty, and the process monitoring of all processes to be monitored is completed in a loop.

本说明书实施例中,通过检查进程监控队列中进程标识的存在性,有效避免了对未运行的目标进程的无效监控,同时循环执行对所有待监控进程的进程监控,优化了系统资源利用,提高了监控过程的针对性和效率。In the embodiments of the present specification, by checking the existence of the process identifier in the process monitoring queue, invalid monitoring of the target process that is not running is effectively avoided. At the same time, process monitoring of all processes to be monitored is executed cyclically, thereby optimizing system resource utilization and improving the pertinence and efficiency of the monitoring process.

在本说明书一种可选实施例中,在步骤104之后,还包括如下具体步骤:In an optional embodiment of the present specification, after step 104, the following specific steps are also included:

若否,更新目标进程,返回执行判断监控进程集合是否为空的步骤。If not, update the target process and return to the step of determining whether the monitored process set is empty.

需要说明的是,在步骤104之后,如果判断目标进程未运行超时,更新目标进程,并返回执行判断监控进程集合是否为空,循环完成所有待监控进程的进程监控。It should be noted that after step 104, if it is determined that the target process has not timed out, the target process is updated, and the process returns to determine whether the monitored process set is empty, and the process monitoring of all processes to be monitored is completed in a loop.

本说明书实施例的具体内容参见上述说明书实施例,在此不再赘述。For the specific contents of the embodiments of this specification, please refer to the above embodiments of the specification, which will not be repeated here.

本说明书实施例中,在判断目标进程未运行超时之后,循环执行对所有待监控进程的进程监控,提升了进程监控的自动化程度,进而提升了进程监控的时效性。In the embodiment of the present specification, after determining that the target process has not timed out, process monitoring of all processes to be monitored is executed cyclically, thereby improving the automation level of process monitoring and further improving the timeliness of process monitoring.

在本说明书一种可选实施例中,步骤110中基于更新时间,确定目标进程是否发生运行异常,包括如下具体步骤:In an optional embodiment of the present specification, determining whether a target process has an abnormal operation based on the update time in step 110 includes the following specific steps:

基于更新时间和当前时间,确定进程日志的停止更新时长;Based on the update time and current time, determine the duration for which the process log will stop updating;

比对停止更新时长和预设停止更新时长;Compare the stop update duration with the preset stop update duration;

在停止更新时长不大于预设停止更新时长的情况下,更新目标进程,返回执行判断监控进程集合是否为空的步骤。When the stop updating time is not greater than the preset stop updating time, the target process is updated, and the process returns to the step of determining whether the monitoring process set is empty.

需要说明的是,在步骤110中,在停止更新时长不大于预设停止更新时长的情况下,确定目标进程未发生运行异常,更新目标进程,并返回执行判断监控进程集合是否为空,循环完成所有待监控进程的进程监控。It should be noted that in step 110, when the stop update time is not greater than the preset stop update time, it is determined that the target process has no operating abnormality, the target process is updated, and the execution is returned to determine whether the monitored process set is empty, and the process monitoring of all processes to be monitored is completed in a loop.

本说明书实施例的具体内容参见上述说明书实施例,在此不再赘述。For the specific contents of the embodiments of this specification, please refer to the above embodiments of the specification, which will not be repeated here.

本说明书实施例中,在确定目标进程未发生运行异常之后,循环执行对所有待监控进程的进程监控,提升了进程监控的自动化程度,进而提升了进程监控的时效性。In the embodiment of the present specification, after determining that the target process has not run abnormally, the process monitoring of all processes to be monitored is executed cyclically, thereby improving the automation level of the process monitoring and further improving the timeliness of the process monitoring.

图2示出了本说明书一个实施例提供的一种进程监控方法的流程示意图,如图2所示:FIG. 2 shows a schematic flow chart of a process monitoring method provided by an embodiment of the present specification, as shown in FIG. 2 :

开始;start;

采集必要信息(如当前时间)CUR_TIME_F1,DATE_STR;Collect necessary information (such as current time) CUR_TIME_F1, DATE_STR;

读取预设的多个待监控进程的配置信息,并将多个待监控进程的配置信息存入监控进程集合:Select MON_PROG,RUNNING_TIME,IF_REF_LOG,LOG_FILE,LOG_STOP_TIME from oc_prog_kill_t where if_valid=1order by pk_id;Read the configuration information of multiple preset processes to be monitored, and store the configuration information of multiple processes to be monitored into the monitoring process set: Select MON_PROG,RUNNING_TIME,IF_REF_LOG,LOG_FILE,LOG_STOP_TIME from oc_prog_kill_t where if_valid=1order by pk_id;

判断监控进程集合是否为空;Determine whether the monitoring process set is empty;

若是,结束;If so, end;

若否,从监控进程集合中,获取目标进程的配置信息,将目标进程的配置信息放入变量C中,并删除监控进程集合中目标进程的配置信息;If not, obtain the configuration information of the target process from the monitoring process set, put the configuration information of the target process into variable C, and delete the configuration information of the target process in the monitoring process set;

从变量C中解析配置信息,获得目标进程的进程标识、预设运行时长、进程类型标识和目标进程的进程日志的预设停止更新时长:MON_PROG,RUNNING_TIME,IF_REF_LOG,LOG_FILE,LOG_STOP_TIME;Parse the configuration information from variable C to obtain the process ID, preset running time, process type ID, and preset stop update time of the process log of the target process: MON_PROG, RUNNING_TIME, IF_REF_LOG, LOG_FILE, LOG_STOP_TIME;

执行指令,获取目标进程的进程标识,将进程标识放入进程监控队列:ps-if|grep%V(%MON_PROG%V)%|grep-v grep|awk‘{print$2}’;Execute the command to obtain the process ID of the target process and put the process ID into the process monitoring queue: ps-if|grep %V(%MON_PROG%V)%|grep-v grep|awk'{print$2}';

从进程监控队列中,查询是否记录有目标进程的进程标识;From the process monitoring queue, check whether the process ID of the target process is recorded;

没有记录,目标进程没有运行,返回执行判断监控进程集合是否为空的步骤;There is no record, the target process is not running, and the process returns to the step of determining whether the monitored process set is empty;

记录有,获取目标进程的启动时间,并将启动时间放入变量PS_START_TIME:ps-o|start-p%V(%PROG_ID%V|awk‘{if(NR==2){print$0}}’;Records are, get the start time of the target process, and put the start time into the variable PS_START_TIME: ps -o | start -p %V (%PROG_ID %V | awk '{if (NR == 2) {print $0}}';

将启动时间转换为绝对值,并基于启动时间和当前时间,确定目标进程的运行时长:ec ho$(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%PS_START_TIME%V)%’+%s)));Convert the start time to an absolute value and, based on the start time and the current time, determine how long the target process has been running: echo $(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%PS_START_TIME%V)%’+%s)));

比对运行时长和预设运行时长:PS_RUN_SEC>RUNNING_TIME?;Compare the running time with the preset running time: PS_RUN_SEC>RUNNING_TIME?;

若小于,返回执行判断监控进程集合是否为空的步骤;If it is less, return to the step of determining whether the monitoring process set is empty;

若大于,基于进程类型标识,识别目标进程为临时进程或者长效进程:IF_REF_LOG=1?;If it is greater, based on the process type identifier, identify the target process as a temporary process or a long-term process: IF_REF_LOG = 1?;

若为临时进程,停止运行目标进程:Kill-9%(%PROG_ID%V)%;If it is a temporary process, stop running the target process: Kill-9%(%PROG_ID%V)%;

记录目标进程的异常运行信息;Record abnormal operation information of the target process;

将异常运行信息以邮件形式发给前端运维人员,返回执行判断监控进程集合是否为空的步骤;Send the abnormal operation information to the front-end operation and maintenance personnel in the form of an email, and return to execute the step of determining whether the monitoring process set is empty;

若为长效进程,查询目标进程的进程日志的更新时间,并放入变量LOG_STILL_TIME:stat%V{%FILE_LOG%V}%|grep^Modify|awk‘{printsubstr{$0,9,19}}’;If it is a long-term process, query the update time of the process log of the target process and put it into the variable LOG_STILL_TIME: stat %V{%FILE_LOG%V}%|grep^Modify|awk'{printsubstr{$0,9,19}}';

判断变量LOG_STILL_TIME是否为空;Determine whether the variable LOG_STILL_TIME is empty;

若为空,进程日志不存在,视为不参考进程日志,停止运行目标进程:Kill-9%(%PRO G_ID%V)%;If it is empty, the process log does not exist, it is regarded as not referring to the process log, and the target process is stopped: Kill-9%(%PRO G_ID%V)%;

记录目标进程的异常运行信息;Record abnormal operation information of the target process;

将异常运行信息以邮件形式发给前端运维人员,返回执行判断监控进程集合是否为空的步骤;Send the abnormal operation information to the front-end operation and maintenance personnel in the form of an email, and return to execute the step of determining whether the monitoring process set is empty;

若不为空,基于更新时间和当前时间,确定进程日志的停止更新时长,并保存到变量L OG_STILL_SEC中:echo$(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%LOG_STILL_TIME%V)%’+%s)));If it is not empty, based on the update time and current time, determine the duration of stopping updating of the process log and save it to the variable LOG_STILL_SEC: echo $(($(date+%s-d“%V(CUR_TIME_F1%V)%”)-$(date-d‘%V(%LOG_STILL_TIME%V)%’+%s)));

比对停止更新时长和预设停止更新时长:LOG_STILL_SEC>LOG_STOP_TIME?;Compare the stop update duration with the preset stop update duration: LOG_STILL_SEC>LOG_STOP_TIME?;

若小于,返回执行判断监控进程集合是否为空的步骤;If it is less, return to the step of determining whether the monitoring process set is empty;

若大于,停止运行目标进程:Kill-9%(%PROG_ID%V)%;If it is greater, stop running the target process: Kill-9%(%PROG_ID%V)%;

记录目标进程的异常运行信息;Record abnormal operation information of the target process;

将异常运行信息以邮件形式发给前端运维人员,返回执行判断监控进程集合是否为空的步骤。The abnormal operation information is sent to the front-end operation and maintenance personnel in the form of an email, and the step of determining whether the monitoring process set is empty is returned.

下述结合附图3,以本说明书提供的进程监控方法在整车和动力总成生产系统的应用为例,对所述进程监控方法进行进一步说明。其中,图3示出了本说明书一个实施例提供的一种应用于整车和动力总成生产系统的进程监控方法的处理过程流程图,包括如下具体步骤:The following is a further description of the process monitoring method provided in this specification, taking the application of the process monitoring method in a complete vehicle and powertrain production system as an example in conjunction with FIG3. Among them, FIG3 shows a processing flow chart of a process monitoring method applied to a complete vehicle and powertrain production system provided by an embodiment of this specification, including the following specific steps:

步骤302:获取整车和动力总成生产系统中多个待监控进程预设的配置信息。Step 302: Obtain preset configuration information of multiple processes to be monitored in the vehicle and powertrain production system.

步骤304:将多个待监控进程的配置信息存入监控进程集合。Step 304: Store the configuration information of the multiple processes to be monitored into the monitoring process set.

步骤306:判断监控进程集合是否为空。Step 306: Determine whether the monitoring process set is empty.

步骤308:若否,从监控进程集合中,获取目标进程的配置信息,并删除监控进程集合中目标进程的配置信息。Step 308: If not, obtain the configuration information of the target process from the monitoring process set, and delete the configuration information of the target process in the monitoring process set.

步骤310:解析配置信息,获得目标进程的进程标识和配置参数。Step 310: Parse the configuration information to obtain the process identifier and configuration parameters of the target process.

步骤312:将进程标识放入进程监控队列。Step 312: Put the process ID into the process monitoring queue.

步骤314:从进程监控队列中,查询是否记录有目标进程的进程标识。Step 314: Query the process monitoring queue to see whether the process ID of the target process is recorded.

步骤316:若否,更新目标进程,返回执行判断监控进程集合是否为空的步骤。Step 316: If not, update the target process and return to the step of determining whether the monitoring process set is empty.

步骤318:若是,获取目标进程的启动时间。Step 318: If yes, obtain the start time of the target process.

步骤320:基于启动时间和当前时间,确定目标进程的运行时长,比对运行时长和预设运行时长,判断目标进程是否运行超时。Step 320: Based on the start time and the current time, determine the running time of the target process, compare the running time with the preset running time, and determine whether the target process has timed out.

步骤322:若否,更新目标进程,返回执行判断监控进程集合是否为空的步骤。Step 322: If not, update the target process and return to the step of determining whether the monitoring process set is empty.

步骤324:若是,基于进程类型标识,识别目标进程为临时进程或者长效进程。Step 324: If yes, identify the target process as a temporary process or a long-term process based on the process type identifier.

步骤326:在目标进程为临时进程的情况下,确定目标进程发生运行异常,停止运行目标进程,并记录目标进程的运行信息,将运行信息反馈至前端。Step 326: When the target process is a temporary process, determine that the target process has an operational abnormality, stop the target process, record the operational information of the target process, and feed the operational information back to the front end.

步骤328:在目标进程为长效进程的情况下,查询目标进程的进程日志的更新时间。Step 328: When the target process is a long-term process, query the update time of the process log of the target process.

步骤330:基于更新时间和当前时间,确定进程日志的停止更新时长。Step 330: Based on the update time and the current time, determine the duration for stopping updating of the process log.

步骤332:比对停止更新时长和预设停止更新时长。Step 332: Compare the stop-update duration with the preset stop-update duration.

步骤334:在停止更新时长不大于预设停止更新时长的情况下,更新目标进程,返回执行判断监控进程集合是否为空的步骤。Step 334: When the stop-update duration is not greater than the preset stop-update duration, the target process is updated, and the process returns to the step of determining whether the monitoring process set is empty.

步骤336:在停止更新时长大于预设停止更新时长的情况下,确定目标进程发生运行异常,停止运行目标进程,并记录目标进程的运行信息,将运行信息反馈至前端。Step 336: When the stop-update duration is longer than the preset stop-update duration, it is determined that the target process has an operational abnormality, the target process is stopped, and the operational information of the target process is recorded and fed back to the front end.

本说明书实施例中,针对整车和动力总成生产系统中的交互进程进行监控,整个进程监控遵循特定的监控规则,实现了自动化的进程监控。通过监控目标进程的启动时间和进程日志的更新时间,识别出目标交互进程是否异常运行,提升了进程监控的时效性。通过区分临时进程和长效进程,实现了更加精细化的监控,减少了误判的可能性,提高了进程监控的有效性和准确性。In the embodiments of this specification, the interactive processes in the vehicle and powertrain production system are monitored, and the entire process monitoring follows specific monitoring rules to achieve automated process monitoring. By monitoring the start time of the target process and the update time of the process log, it is possible to identify whether the target interactive process is running abnormally, thereby improving the timeliness of process monitoring. By distinguishing between temporary processes and long-term processes, more refined monitoring is achieved, reducing the possibility of misjudgment and improving the effectiveness and accuracy of process monitoring.

与上述方法实施例相对应,本说明书还提供了进程监控装置实施例,图4示出了本说明书一个实施例提供的一种进程监控装置的结构示意图。如图4所示,该装置包括:Corresponding to the above method embodiment, this specification also provides a process monitoring device embodiment. FIG4 shows a schematic diagram of the structure of a process monitoring device provided by an embodiment of this specification. As shown in FIG4, the device includes:

第一获取模块402,被配置为获取目标进程的启动时间;A first acquisition module 402 is configured to acquire the start time of the target process;

运行超时判断模块404,被配置为基于启动时间,判断目标进程是否运行超时;The operation timeout determination module 404 is configured to determine whether the target process has timed out based on the start time;

分类识别模块406,被配置为若是,识别目标进程为临时进程或者长效进程;The classification identification module 406 is configured to, if yes, identify the target process as a temporary process or a long-term process;

第一确定模块408,被配置为在目标进程为临时进程的情况下,确定目标进程发生运行异常;The first determination module 408 is configured to determine that the target process has an abnormal operation when the target process is a temporary process;

第二确定模块410,被配置为在目标进程为长效进程的情况下,查询目标进程的进程日志的更新时间,并基于更新时间,确定目标进程是否发生运行异常。The second determination module 410 is configured to query the update time of the process log of the target process when the target process is a long-term process, and determine whether the target process has an operational abnormality based on the update time.

可选地,该装置还包括:Optionally, the device further comprises:

第二获取模块,被配置为获取目标进程的预设运行时长;A second acquisition module is configured to acquire a preset running time of a target process;

对应地,运行超时判断模块404被进一步配置为:Correspondingly, the operation timeout determination module 404 is further configured as follows:

基于启动时间和当前时间,确定目标进程的运行时长;比对运行时长和预设运行时长,判断目标进程是否运行超时。Based on the start time and the current time, determine the running time of the target process; compare the running time with the preset running time to determine whether the target process has timed out.

可选地,该装置还包括:Optionally, the device further comprises:

第三获取模块,被配置为获取目标进程的进程类型标识;A third acquisition module is configured to obtain a process type identifier of a target process;

对应地,分类识别模块406被进一步配置为:Correspondingly, the classification identification module 406 is further configured to:

若是,基于进程类型标识,识别目标进程为临时进程或者长效进程。If so, based on the process type identifier, identify the target process as a temporary process or a long-term process.

可选地,该装置还包括:Optionally, the device further comprises:

第四获取模块,被配置为获取目标进程的进程日志的预设停止更新时长;A fourth acquisition module is configured to acquire a preset stop update duration of a process log of a target process;

对应地,第二确定模块410被进一步配置为:Correspondingly, the second determining module 410 is further configured to:

基于更新时间和当前时间,确定进程日志的停止更新时长;比对停止更新时长和预设停止更新时长;在停止更新时长大于预设停止更新时长的情况下,确定目标进程发生运行异常。Based on the update time and the current time, determine the stop update duration of the process log; compare the stop update duration with the preset stop update duration; when the stop update duration is greater than the preset stop update duration, determine that the target process has an abnormal operation.

可选地,该装置还包括:Optionally, the device further comprises:

第一反馈模块,被配置为停止运行目标进程,并记录目标进程的运行信息;将运行信息反馈至前端。The first feedback module is configured to stop the target process and record the running information of the target process; and feed back the running information to the front end.

可选地,该装置还包括:Optionally, the device further comprises:

第二反馈模块,被配置为停止运行目标进程,并记录目标进程的运行信息;将运行信息反馈至前端。The second feedback module is configured to stop the target process and record the running information of the target process; and feed back the running information to the front end.

可选地,该装置还包括:Optionally, the device further comprises:

第三反馈模块,被配置为若未查询到,停止运行目标进程,并记录目标进程的运行信息;将运行信息反馈至前端。The third feedback module is configured to stop running the target process if the query is not found, and record the running information of the target process; and feed back the running information to the front end.

可选地,该装置还包括:Optionally, the device further comprises:

配置模块,被配置为获取预设的多个待监控进程的配置信息;将多个待监控进程的配置信息存入监控进程集合;判断监控进程集合是否为空;若否,从监控进程集合中,获取目标进程的配置信息,并删除监控进程集合中目标进程的配置信息;解析配置信息,获得目标进程的进程标识和配置参数,其中,配置参数包括预设运行时长、进程类型标识和目标进程的进程日志的预设停止更新时长中至少一项;将进程标识放入进程监控队列。The configuration module is configured to obtain configuration information of multiple preset processes to be monitored; store the configuration information of multiple processes to be monitored into a monitoring process set; determine whether the monitoring process set is empty; if not, obtain the configuration information of the target process from the monitoring process set, and delete the configuration information of the target process in the monitoring process set; parse the configuration information to obtain the process identifier and configuration parameters of the target process, wherein the configuration parameters include at least one of a preset running time, a process type identifier, and a preset stop update time of the process log of the target process; and put the process identifier into a process monitoring queue.

可选地,该装置还包括:Optionally, the device further comprises:

查询模块,被配置为从进程监控队列中,查询是否记录有目标进程的进程标识;The query module is configured to query whether the process identifier of the target process is recorded in the process monitoring queue;

对应地,第一获取模块402被进一步配置为:Correspondingly, the first acquisition module 402 is further configured to:

若是,获取目标进程的启动时间。If yes, get the start time of the target process.

可选地,该装置还包括:Optionally, the device further comprises:

第一返回模块,被配置为若否,更新目标进程,返回执行判断监控进程集合是否为空的步骤。The first return module is configured to update the target process and return to execute the step of determining whether the monitoring process set is empty.

可选地,该装置还包括:Optionally, the device further comprises:

第二返回模块,被配置为若否,更新目标进程,返回执行判断监控进程集合是否为空的步骤。The second return module is configured to update the target process if not, and return to execute the step of determining whether the monitoring process set is empty.

可选地,第二确定模块410被进一步配置为:Optionally, the second determining module 410 is further configured to:

基于更新时间和当前时间,确定进程日志的停止更新时长;比对停止更新时长和预设停止更新时长;在停止更新时长不大于预设停止更新时长的情况下,更新目标进程,返回执行判断监控进程集合是否为空的步骤。Based on the update time and the current time, determine the stop update duration of the process log; compare the stop update duration with the preset stop update duration; if the stop update duration is not greater than the preset stop update duration, update the target process and return to execute the step of determining whether the monitoring process set is empty.

本说明书实施例中,整个进程监控遵循特定的监控规则,实现了自动化的进程监控。通过监控目标进程的启动时间和进程日志的更新时间,识别出目标交互进程是否异常运行,提升了进程监控的时效性。通过区分临时进程和长效进程,实现了更加精细化的监控,减少了误判的可能性,提高了进程监控的有效性和准确性。In the embodiments of this specification, the entire process monitoring follows specific monitoring rules to achieve automated process monitoring. By monitoring the start time of the target process and the update time of the process log, it is possible to identify whether the target interactive process is running abnormally, thereby improving the timeliness of process monitoring. By distinguishing between temporary processes and long-term processes, more refined monitoring is achieved, reducing the possibility of misjudgment and improving the effectiveness and accuracy of process monitoring.

上述为本实施例的一种进程监控装置的示意性方案。需要说明的是,该进程监控装置的技术方案与上述的进程监控方法的技术方案属于同一构思,进程监控装置的技术方案未详细描述的细节内容,均可以参见上述进程监控方法的技术方案的描述。The above is a schematic scheme of a process monitoring device of this embodiment. It should be noted that the technical scheme of the process monitoring device and the technical scheme of the process monitoring method described above are of the same concept, and the details not described in detail in the technical scheme of the process monitoring device can be referred to the description of the technical scheme of the process monitoring method described above.

图5示出了本说明书一个实施例提供的一种计算设备的结构框图。该计算设备500的部件包括但不限于存储器510和处理器520。处理器520与存储器510通过总线530相连接,数据库550用于保存数据。Fig. 5 shows a block diagram of a computing device provided in one embodiment of the present specification. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.

计算设备500还包括接入设备540,接入设备540使得计算设备500能够经由一个或多个网络560通信。这些网络的示例包括公用交换电话网(Public Switched TelephoneNetwor k,简称PSTN)、局域网(Local Area Network,简称LAN)、广域网(Wide Area Network,简称WAN)、个域网(Personal Area Network,简称PAN)或诸如因特网的通信网络的组合。接入设备540可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(Netw orkInterface Controller,简称NIC))中的一个或多个,诸如IEEE802.11无线局域网(Wireless Local Area Network,简称WLAN)无线接口、全球微波互联接入(Worldwide Interoperability for Microwave Access,简称Wi-MAX)接口、以太网接口、通用串行总线(Universal Serial Bus,简称USB)接口、蜂窝网络接口、蓝牙接口、近场通信(Near Field Communication,简称NFC)。The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a Network Interface Controller (NIC)) of wired or wireless, such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, and a Near Field Communication (NFC).

在本说明书的一个实施例中,计算设备500的上述部件以及图5中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图5所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of the present specification, the above components of the computing device 500 and other components not shown in FIG. 5 may also be connected to each other, for example, through a bus. It should be understood that the computing device structure block diagram shown in FIG. 5 is only for illustrative purposes and is not intended to limit the scope of the present specification. Those skilled in the art may add or replace other components as needed.

计算设备500可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或个人计算机(Personal Computer,简称PC)的静止计算设备。计算设备500还可以是移动式或静止式的服务器。The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 500 may also be a mobile or stationary server.

其中,处理器520用于执行如下计算机程序/指令,该计算机程序/指令被处理器执行时实现上述进程监控方法的步骤。The processor 520 is used to execute the following computer program/instructions, which implement the steps of the above-mentioned process monitoring method when executed by the processor.

上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的进程监控方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述进程监控方法的技术方案的描述。The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the process monitoring method described above are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the process monitoring method described above.

本说明书一实施例还提供一种计算机可读存储介质,其存储有计算机程序/指令,该计算机程序/指令被处理器执行时实现上述进程监控方法的步骤。An embodiment of the present specification also provides a computer-readable storage medium storing a computer program/instruction, which implements the steps of the above-mentioned process monitoring method when executed by a processor.

上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的进程监控方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述进程监控方法的技术方案的描述。The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the process monitoring method described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the process monitoring method described above.

本说明书一实施例还提供一种计算机程序产品,包括计算机程序/指令,该计算机程序/指令被处理器执行时实现上述进程监控方法的步骤。An embodiment of the present specification also provides a computer program product, including a computer program/instruction, which implements the steps of the above-mentioned process monitoring method when executed by a processor.

上述为本实施例的一种计算机程序产品的示意性方案。需要说明的是,该计算机程序产品的技术方案与上述的进程监控方法的技术方案属于同一构思,计算机程序产品的技术方案未详细描述的细节内容,均可以参见上述进程监控方法的技术方案的描述。The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the process monitoring method described above are of the same concept, and the details not described in detail in the technical scheme of the computer program product can be found in the description of the technical scheme of the process monitoring method described above.

上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memor y,简称RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据专利实践的要求进行适当的增减,例如在某些地区,根据专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本说明书实施例并不受所描述的动作顺序的限制,因为依据本说明书实施例,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本说明书实施例所必须的。It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

以上公开的本说明书优选实施例只是用于帮助阐述本说明书。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本说明书实施例的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本说明书实施例的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本说明书。本说明书仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can understand and use this specification well. This specification is only limited by the claims and their full scope and equivalents.

Claims (16)

1. A process monitoring method, comprising:
Acquiring the starting time of a target process;
judging whether the target process runs overtime or not based on the starting time;
if yes, identifying the target process as a temporary process or a long-acting process;
Determining that the target process is abnormal in operation under the condition that the target process is a temporary process;
And under the condition that the target process is a long-acting process, inquiring the update time of a process log of the target process, and determining whether the target process is abnormal in operation or not based on the update time.
2. The method of claim 1, further comprising, prior to said determining whether said target process is running over time based on said start-up time:
Acquiring a preset running time of the target process;
the step of judging whether the target process runs overtime based on the starting time comprises the following steps:
determining the running time of the target process based on the starting time and the current time;
Comparing the operation time length with the preset operation time length, and judging whether the target process is overtime.
3. The method of claim 1, further comprising, prior to said if, identifying the target process as a temporary process or a long-acting process:
acquiring a process type identifier of a target process;
if yes, identifying the target process as a temporary process or a long-acting process, including:
If yes, based on the process type identification, identifying the target process as a temporary process or a long-acting process.
4. The method of claim 1, wherein prior to the determining whether the target process is experiencing an operational anomaly based on the update time, further comprising:
acquiring a preset stop updating time length of a process log of the target process;
The determining whether the target process has abnormal operation based on the update time comprises the following steps:
Determining the update stopping time length of the process log based on the update time and the current time;
Comparing the stop updating time length with the preset stop updating time length;
And determining that the target process is abnormal in operation under the condition that the update stopping time is longer than the preset update stopping time.
5. The method according to claim 4, wherein, in the case where the update stop time period is longer than the preset update stop time period, after determining that the target process has an abnormal operation, further comprising:
stopping running the target process and recording the running information of the target process;
And feeding back the operation information to the front end.
6. The method of claim 1, wherein, in the case where the target process is a temporary process, after determining that the target process has an abnormal operation, further comprising:
stopping running the target process and recording the running information of the target process;
And feeding back the operation information to the front end.
7. The method of claim 1, further comprising, after the querying the update time of the process log of the target process:
if not, stopping running the target process, and recording the running information of the target process;
And feeding back the operation information to the front end.
8. The method of claim 1, further comprising, prior to the start time of the acquisition target process:
Acquiring preset configuration information of a plurality of processes to be monitored;
storing configuration information of the multiple processes to be monitored into a monitoring process set;
judging whether the monitoring process set is empty or not;
If not, acquiring the configuration information of the target process from the monitoring process set, and deleting the configuration information of the target process in the monitoring process set;
Analyzing the configuration information to obtain a process identifier and a configuration parameter of the target process, wherein the configuration parameter comprises at least one of a preset operation duration, a process type identifier and a preset stop update duration of a process log of the target process;
And placing the process identifier into a process monitoring queue.
9. The method of claim 8, further comprising, after said placing said process identification in a process monitor queue:
Inquiring whether a process identifier of a target process is recorded from a process monitoring queue;
The obtaining the starting time of the target process includes:
if yes, acquiring the starting time of the target process.
10. The method of claim 9, further comprising, after querying the slave process monitor queue for a process identifier of a target process recorded therein:
if not, updating the target process, and returning to execute the step of judging whether the monitoring process set is empty.
11. The method of claim 8, further comprising, after said determining whether said target process is running over time based on said start-up time:
if not, updating the target process, and returning to execute the step of judging whether the monitoring process set is empty.
12. The method of claim 8, wherein the determining whether the target process is experiencing an operational anomaly based on the update time comprises:
Determining the update stopping time length of the process log based on the update time and the current time;
Comparing the stop updating time length with the preset stop updating time length;
And under the condition that the stop updating time is not longer than the preset stop updating time, updating the target process, and returning to execute the step of judging whether the monitoring process set is empty.
13. A process monitoring device, comprising:
the first acquisition module is configured to acquire the starting time of the target process;
an operation timeout judging module configured to judge whether the target process is operation timeout based on the start-up time;
the classification identification module is configured to identify the target process as a temporary process or a long-acting process if the target process is a temporary process or a long-acting process;
The first determining module is configured to determine that the target process is abnormal in operation when the target process is a temporary process;
And the second determining module is configured to query the update time of the process log of the target process and determine whether the target process is abnormal in operation or not based on the update time when the target process is a long-acting process.
14. A computing device, comprising:
A memory and a processor;
The memory is adapted to store a computer program/instruction, the processor being adapted to execute the computer program/instruction, which when executed by the processor performs the steps of the method of any of claims 1 to 12.
15. A computer-readable storage medium, characterized in that it stores a computer program/instruction which, when executed by a processor, implements the steps of the method of any one of claims 1 to 12.
16. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of any of claims 1 to 12.
CN202410911511.2A 2024-07-09 2024-07-09 Process monitoring method, process monitoring device, computing device and computer readable storage medium Pending CN118733391A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410911511.2A CN118733391A (en) 2024-07-09 2024-07-09 Process monitoring method, process monitoring device, computing device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410911511.2A CN118733391A (en) 2024-07-09 2024-07-09 Process monitoring method, process monitoring device, computing device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN118733391A true CN118733391A (en) 2024-10-01

Family

ID=92851067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410911511.2A Pending CN118733391A (en) 2024-07-09 2024-07-09 Process monitoring method, process monitoring device, computing device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN118733391A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119449806A (en) * 2024-11-18 2025-02-14 中移动信息技术有限公司 Network request method, device, equipment, storage medium and product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119449806A (en) * 2024-11-18 2025-02-14 中移动信息技术有限公司 Network request method, device, equipment, storage medium and product
CN119449806B (en) * 2024-11-18 2025-11-21 中移动信息技术有限公司 Network request method, device, equipment, storage medium and product

Similar Documents

Publication Publication Date Title
CN118092404B (en) Method and system for preventive maintenance of PLC (programmable logic controller) network based on artificial intelligence
US9253054B2 (en) Remote industrial monitoring and analytics using a cloud infrastructure
CN112380089A (en) Data center monitoring and early warning method and system
EP1906328A1 (en) Conditional download of data from embedded historians
CN113516244A (en) Intelligent operation and maintenance method and device, electronic equipment and storage medium
CN111431754A (en) Fault analysis method and system for power distribution and utilization communication network
CN113760634B (en) A data processing method and device
CN116583860A (en) Equipment maintenance method and computer equipment
CN114995348A (en) Variable frequency transmission full life cycle management method
EP3767416A1 (en) Embedded historians with data aggregator
CN118733391A (en) Process monitoring method, process monitoring device, computing device and computer readable storage medium
CN113064890A (en) Quality evaluation method, device, server and medium for operator data
CN114157577B (en) Comprehensive management analysis system of Internet of things
CN115934252A (en) Method and system for realizing full-automatic load balancing consumption message based on Kafka
CN111130867B (en) Intelligent household equipment alarm method and device based on Internet of things
CN112910733A (en) Full link monitoring system and method based on big data
CN115206031A (en) Hotel equipment fault processing method, electronic equipment and storable medium
CN120216243A (en) Automatic fault detection, diagnosis and processing method, device and terminal based on data platform
CN115222181A (en) Robot operation state monitoring system and method
CN119960396A (en) Automation equipment scheduling optimization system based on the Internet of Things
CN111143154A (en) Wharf operating system operation monitoring method and device, server and storage medium
CN115890026B (en) Laser cutting monitoring method, device and computer-readable storage medium
CN113595837B (en) Communication protocol management method, device, electronic device and storage medium
TWM644734U (en) Intelligent digital control set-top box
CN114741226A (en) Fault processing method, system, computer device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination