技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种服务异常监测方法、装置、电子设备及可读存储介质。The present application relates to the field of computer technology, and in particular to a service anomaly monitoring method, device, electronic equipment and readable storage medium.
背景技术Background technique
现有技术中,车载系统逐渐成为汽车领域必备的主流,车载系统能够凭借着强大的数据处理能力和丰富的应用生态,能够为驾驶员提供多种功能服务,例如导航、娱乐、通信等。Among the existing technologies, vehicle-mounted systems have gradually become a must-have mainstream in the automotive field. Vehicle-mounted systems can rely on their powerful data processing capabilities and rich application ecology to provide drivers with a variety of functional services, such as navigation, entertainment, communications, etc.
然而,由于车载环境复杂、资源有限等因素,车载环境存在诸多不确定性,例如车辆行驶过程中出现震动、电磁干扰、处理器或内存等资源的有限性,导致车载系统的核心服务可能会在运行时发生异常,轻则引发车辆系统的稳定性下降,重则引发系统故障,在驾驶员使用车辆时给驾驶员带来不便,甚至对驾驶安全构成威胁。However, due to factors such as the complexity of the vehicle environment and limited resources, there are many uncertainties in the vehicle environment, such as vibration, electromagnetic interference, and limited resources such as processors or memory during vehicle driving. As a result, the core services of the vehicle system may fail. Abnormalities during operation may cause a decrease in the stability of the vehicle system, or cause a system failure at worst, causing inconvenience to the driver when using the vehicle, and even posing a threat to driving safety.
发明内容Contents of the invention
有鉴于此,本申请实施例提供了一种服务异常监测方法、装置、电子设备及可读存储介质,以解决现有技术中车载系统的核心服务在运行时发生异常的问题。In view of this, embodiments of the present application provide a service anomaly monitoring method, device, electronic device, and readable storage medium to solve the problem in the prior art that the core service of the vehicle system is abnormal during operation.
本申请实施例的第一方面,提供了一种服务异常监测方法,应用于车辆系统的各服务,包括:The first aspect of the embodiment of this application provides a service anomaly monitoring method, which is applied to various services of the vehicle system, including:
将处于初始化阶段的各服务作为目标监控服务;Use each service in the initialization stage as a target monitoring service;
基于目标监控服务,调用对应的服务监视器,服务监视器用于定期获取同步锁;Based on the target monitoring service, call the corresponding service monitor, which is used to obtain synchronization locks regularly;
判断每一预设时间间隔内服务监视器是否获取到同步锁;Determine whether the service monitor obtains the synchronization lock within each preset time interval;
若否,判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据。If not, determine that the execution status of the target monitoring service is abnormal, restart the target monitoring service and record the abnormal data.
本申请实施例的第二方面,提供了一种服务异常监测装置,应用于车辆系统的各服务,包括:The second aspect of the embodiment of the present application provides a service anomaly monitoring device, which is applied to various services of the vehicle system, including:
第一处理模块,被配置为将处于初始化阶段的各服务作为目标监控服务;The first processing module is configured to use each service in the initialization stage as a target monitoring service;
第二处理模块,被配置为基于目标监控服务,调用对应的服务监视器,服务监视器用于定期获取同步锁;The second processing module is configured to call the corresponding service monitor based on the target monitoring service. The service monitor is used to obtain synchronization locks regularly;
判断模块,被配置为判断每一预设时间间隔内服务监视器是否获取到同步锁;A judgment module configured to judge whether the service monitor obtains the synchronization lock within each preset time interval;
第三处理模块,被配置为若否,判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据。The third processing module is configured to determine if the execution status of the target monitoring service is abnormal, restart the target monitoring service, and record abnormal data.
本申请实施例的第三方面,提供了一种电子设备,包括存储器、处理器以及存储在存储器中并且可在处理器上运行的计算机程序,该处理器执行计算机程序时实现上述方法的步骤。A third aspect of the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above method are implemented.
本申请实施例的第四方面,提供了一种可读存储介质,该可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述方法的步骤。A fourth aspect of the embodiments of the present application provides a readable storage medium that stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
本申请实施例与现有技术相比存在的有益效果是:将处于初始化阶段的各服务作为目标监控服务,根据目标监控服务,调用目标监控服对应的服务监视器,判断每一预设时间间隔内服务监视器是否获取到同步锁,若否,判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据,其中,服务监视器用于定期获取同步锁,从而能够实时监测各服务的执行状态以判断是否出现异常,当目标监控服务出现异常时能够及时获取异常错误信息,同时也能够让异常状态的服务自动重启,以及时恢复对应服务的功能,提高车辆系统的稳定性和用户的安全体验。Compared with the existing technology, the beneficial effects of the embodiments of the present application are: each service in the initialization stage is used as a target monitoring service, and according to the target monitoring service, the service monitor corresponding to the target monitoring service is called to determine each preset time interval. Whether the internal service monitor has acquired the synchronization lock. If not, determine that the execution status of the target monitoring service is an abnormal state, restart the target monitoring service and record the abnormal data. Among them, the service monitor is used to acquire the synchronization lock regularly, so as to monitor each service in real time. The execution status is used to determine whether an abnormality has occurred. When the target monitoring service is abnormal, the abnormal error information can be obtained in time. It can also automatically restart the service in the abnormal state, restore the function of the corresponding service in a timely manner, and improve the stability of the vehicle system and users. safety experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是本申请实施例的一种应用场景的场景示意图;Figure 1 is a schematic diagram of an application scenario according to the embodiment of the present application;
图2是本申请实施例提供的一种服务异常监测方法的流程示意图;Figure 2 is a schematic flow chart of a service anomaly monitoring method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种服务异常监测方法的流程示意图;Figure 3 is a schematic flow chart of another service anomaly monitoring method provided by an embodiment of the present application;
图4是本申请实施例提供的一种服务异常监测装置的示意图;Figure 4 is a schematic diagram of a service anomaly monitoring device provided by an embodiment of the present application;
图5是本申请实施例提供的电子设备的示意图。Figure 5 is a schematic diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures and technologies are provided to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
下面将结合附图详细说明根据本申请实施例的一种服务异常监测方法和装置。A service anomaly monitoring method and device according to embodiments of the present application will be described in detail below with reference to the accompanying drawings.
图1是本申请实施例的一种应用场景的场景示意图。该应用场景可以包括第一终端设备101、第二终端设备102和第三终端设备103、服务器104以及网络105。Figure 1 is a schematic diagram of an application scenario according to an embodiment of the present application. The application scenario may include the first terminal device 101, the second terminal device 102 and the third terminal device 103, the server 104 and the network 105.
第一终端设备101、第二终端设备102和第三终端设备103可以是硬件,也可以是软件。当第一终端设备101、第二终端设备102和第三终端设备103为硬件时,其可以是具有显示屏且支持与服务器104通信的各种电子设备,包括但不限于车载电脑、智能手机、平板电脑、膝上型便携计算机和台式计算机等;当第一终端设备101、第二终端设备102和第三终端设备103为软件时,其可以安装在如上所述的电子设备中。第一终端设备101、第二终端设备102和第三终端设备103可以实现为多个软件或软件模块,也可以实现为单个软件或软件模块,本申请实施例对此不作限制。进一步地,第一终端设备101、第二终端设备102和第三终端设备103上可以安装有各种应用,例如数据处理应用、即时通信工具、社交平台软件、搜索类应用、购物类应用等。The first terminal device 101, the second terminal device 102 and the third terminal device 103 may be hardware or software. When the first terminal device 101 , the second terminal device 102 and the third terminal device 103 are hardware, they may be various electronic devices having a display screen and supporting communication with the server 104 , including but not limited to vehicle-mounted computers, smart phones, Tablet computers, laptop computers, desktop computers, etc.; when the first terminal device 101, the second terminal device 102 and the third terminal device 103 are software, they can be installed in the electronic device as described above. The first terminal device 101, the second terminal device 102 and the third terminal device 103 may be implemented as multiple software or software modules, or may be implemented as a single software or software module, which is not limited in the embodiment of the present application. Further, various applications may be installed on the first terminal device 101, the second terminal device 102 and the third terminal device 103, such as data processing applications, instant messaging tools, social platform software, search applications, shopping applications, etc.
服务器104可以是提供各种服务的服务器,例如,对与其建立通信连接的终端设备发送的请求进行接收的后台服务器,该后台服务器可以对终端设备发送的请求进行接收和分析等处理,并生成处理结果。服务器104可以是一台服务器,也可以是由若干台服务器组成的服务器集群,或者还可以是一个云计算服务中心,本申请实施例对此不作限制。The server 104 may be a server that provides various services, for example, a backend server that receives requests sent by terminal devices with which a communication connection is established. The backend server may receive and analyze requests sent by the terminal devices, and generate processing. result. The server 104 may be one server, a server cluster composed of several servers, or a cloud computing service center, which is not limited in the embodiment of the present application.
需要说明的是,服务器104可以是硬件,也可以是软件。当服务器104为硬件时,其可以是为第一终端设备101、第二终端设备102和第三终端设备103提供各种服务的各种电子设备。当服务器104为软件时,其可以是为第一终端设备101、第二终端设备102和第三终端设备103提供各种服务的多个软件或软件模块,也可以是为第一终端设备101、第二终端设备102和第三终端设备103提供各种服务的单个软件或软件模块,本申请实施例对此不作限制。It should be noted that the server 104 may be hardware or software. When the server 104 is hardware, it may be various electronic devices that provide various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103. When the server 104 is software, it may be multiple software or software modules that provide various services for the first terminal device 101, the second terminal device 102, and the third terminal device 103, or it may be a software module for the first terminal device 101, the second terminal device 102, and the third terminal device 103. The second terminal device 102 and the third terminal device 103 provide individual software or software modules for various services, which are not limited in this embodiment of the present application.
网络105可以是采用同轴电缆、双绞线和光纤连接的有线网络,也可以是无需布线就能实现各种通信设备互联的无线网络,例如,蓝牙(Bluetooth)、近场通信(Near FieldCommunication,NFC)、红外(Infrared)等,本申请实施例对此不作限制。The network 105 can be a wired network connected by coaxial cables, twisted pairs and optical fibers, or a wireless network that can interconnect various communication devices without wiring, such as Bluetooth, Near Field Communication, NFC), infrared (Infrared), etc., the embodiments of the present application do not limit this.
需要说明的是,第一终端设备101、第二终端设备102和第三终端设备103、服务器104以及网络105的具体类型、数量和组合可以根据应用场景的实际需求进行调整,本申请实施例对此不作限制。It should be noted that the specific types, quantities and combinations of the first terminal device 101, the second terminal device 102 and the third terminal device 103, the server 104 and the network 105 can be adjusted according to the actual needs of the application scenario. The embodiments of this application are This is not a restriction.
图2是本申请实施例提供的一种服务异常监测方法的流程示意图。如图2所示,应用于车辆系统的各服务,该服务异常监测方法包括以下步骤:Figure 2 is a schematic flowchart of a service anomaly monitoring method provided by an embodiment of the present application. As shown in Figure 2, applied to each service of the vehicle system, the service anomaly monitoring method includes the following steps:
S201,将处于初始化阶段的各服务作为目标监控服务;S201, use each service in the initialization stage as a target monitoring service;
S202,基于目标监控服务,调用对应的服务监视器;S202, based on the target monitoring service, call the corresponding service monitor;
S203,判断每一预设时间间隔内服务监视器是否获取到同步锁;S203, determine whether the service monitor obtains the synchronization lock within each preset time interval;
S204,若否,判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据。S204, if not, determine that the execution state of the target monitoring service is an abnormal state, restart the target monitoring service and record the abnormal data.
其中,服务监视器用于定期获取同步锁。Among them, the service monitor is used to obtain synchronization locks periodically.
S205,若是,判定目标监控服务的执行状态为正常状态;S205, if yes, determine that the execution status of the target monitoring service is normal;
执行判断每一预设时间间隔内服务监视器是否获取到同步锁的步骤。Execute the step of determining whether the service monitor obtains the synchronization lock within each preset time interval.
图2的服务异常监测方法可以由图1的第一终端设备、第二终端设备或第三终端设备执行,终端设备中运行有车辆系统的各服务,出现异常状况时通过服务器将异常数据发送至目标设备端或向目标终端发送异常提示。The service abnormality monitoring method in Figure 2 can be executed by the first terminal device, the second terminal device or the third terminal device in Figure 1. Each service of the vehicle system is run in the terminal device. When an abnormal situation occurs, the abnormal data is sent to the server through the server. The target device or sends an exception prompt to the target terminal.
本申请一示例性实施例中,对车辆系统的各服务进行监测以确定是否存在异常,最好能够在车辆系统的各服务开始执行时就进行监测,即在各服务的初始化阶段对各服务进行异常监测,从而能够保证车辆系统的各服务在运行期间能够及时监测到异常的出现,便于处理异常。In an exemplary embodiment of the present application, each service of the vehicle system is monitored to determine whether there is an abnormality. It is best to monitor each service of the vehicle system when it starts to be executed, that is, each service is monitored during the initialization phase of each service. Abnormal monitoring can ensure that each service of the vehicle system can detect the occurrence of exceptions in time during operation, so as to facilitate the handling of exceptions.
将处于初始化阶段的各服务作为需要监控的目标监控服务,对目标监控服务调用对应的服务监视器,服务监视器的作用是定期获取同步锁,若服务监视器在当前周期(周期时间与预设时间间隔相同)能够成功获取到同步所,则判定目标监控服务的执行状态时正常状态,若服务监视器在当前周期未能获取到同步锁,判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据,异常数据可以用来分析本次异常出现,便于收集数据,从而作出相应的改进。Treat each service in the initialization phase as the target monitoring service that needs to be monitored, and call the corresponding service monitor for the target monitoring service. The function of the service monitor is to obtain synchronization locks regularly. If the service monitor is in the current cycle (cycle time and preset If the synchronization lock can be obtained successfully (with the same time interval), the execution status of the target monitoring service is determined to be normal. If the service monitor fails to obtain the synchronization lock in the current cycle, the execution status of the target monitoring service is determined to be abnormal and the target is restarted. Monitor the service and record abnormal data. The abnormal data can be used to analyze the occurrence of this abnormality to facilitate data collection and make corresponding improvements.
服务监视器定期获取同步锁,定期的时间与预设时间间隔一致,在每一预设时间间隔内服务监视器尝试获取同步锁,若是服务监视器在预设时间间隔内成功获取到了同步锁,判定该预设时间间隔内目标监控服务的执行状态为正常状态,将服务监视器转为休眠模式,直至休眠时长满足一个预设时间间隔,判断服务监视器是否成功获取到同步锁。其中,同步锁可能是一个用于控制对共享资源访问的锁,也可能是用于协调多个线程之间操作的锁。The service monitor acquires the synchronization lock periodically, and the periodic time is consistent with the preset time interval. In each preset time interval, the service monitor attempts to acquire the synchronization lock. If the service monitor successfully acquires the synchronization lock within the preset time interval, Determine that the execution status of the target monitoring service within the preset time interval is normal, turn the service monitor into sleep mode until the sleep duration meets a preset time interval, and determine whether the service monitor successfully obtains the synchronization lock. Among them, the synchronization lock may be a lock used to control access to shared resources, or it may be a lock used to coordinate operations between multiple threads.
其中,需要注意的是,在执行“判断每一预设时间间隔内服务监视器是否获取到同步锁”的步骤时,需要考虑到系统的性能和效率,如果预设时间间隔过短或者过长,均可能会对系统性能产生负面影响。在实际应用时,需要根据实际情况对预设时间间隔进行合理的设置和调整。Among them, it should be noted that when performing the step of "determining whether the service monitor obtains the synchronization lock within each preset time interval", the performance and efficiency of the system need to be considered. If the preset time interval is too short or too long, , may have a negative impact on system performance. In actual application, the preset time interval needs to be reasonably set and adjusted according to the actual situation.
本申请一示例性实施例中,以将启动引导服务作为目标监控服务,车辆系统为安卓系统的环境为例,进行示例性说明:In an exemplary embodiment of this application, an exemplary explanation is given by taking an environment in which the startup guidance service is used as the target monitoring service and the vehicle system is an Android system as an example:
将服务监视器(SystemServiceMonitor)的启动放在车载系统服务(SystemServer)服务的启动引导服务(StartBootstrapService)中,在设计服务监视器时设计一个无限循环的线程,可以使服务监视器定期的获取同步锁,具体一种实现服务监视器的方法可如下:Place the startup of the service monitor (SystemServiceMonitor) in the startup boot service (StartBootstrapService) of the vehicle system service (SystemServer) service. When designing the service monitor, design an infinite loop thread to enable the service monitor to obtain synchronization locks regularly. , a specific method to implement a service monitor can be as follows:
@Override@Override
public void run(){public void run(){
boolean waitedHalf=false;boolean waitedHalf=false;
while(true){while(true){
final List<HandlerChecker>blockedCheckers;final List<HandlerChecker>blockedCheckers;
final String subject;final String subject;
final boolean allowRestart;final boolean allowRestart;
int debuggerWasConnected=0;int debuggerWasConnected=0;
synchronized(lock){}synchronized(lock){}
其中,while(true)标志着该线程能够无限循环;Among them, while(true) indicates that the thread can loop infinitely;
final List<HandlerChecker>blockedCheckers意为声明了一个名为“blockedCheckers”的final列表,列表的元素类型是HandlerChecker,其中,final表示该变量一旦赋值后不能被修改;final List<HandlerChecker>blockedCheckers means declaring a final list named "blockedCheckers". The element type of the list is HandlerChecker, where final means that the variable cannot be modified once assigned;
final boolean allowRestart表示定义一个具有布尔值的变量,其中,布尔值为true或false,并将该变量声明为final;final boolean allowRestart means defining a variable with a Boolean value, where the Boolean value is true or false, and declaring the variable as final;
int debuggerWasConnected=0表示定义了一个名为debuggerWasConnected的整型变量,并将其初始化为0,即是否获取到同步锁;int debuggerWasConnected=0 means that an integer variable named debuggerWasConnected is defined and initialized to 0, that is, whether the synchronization lock is obtained;
synchronized(lock)用于获取同步锁的具体内容,其中,synchronized用于控制多个线程对共享资源的访问,通过使用synchronized能够避免多个线程同时访问同一代码块,以在有多个服务监视器的时候不会重复获取同一服务的同步锁,lock表示同步锁。synchronized(lock) is used to obtain the specific content of the synchronization lock. Among them, synchronized is used to control multiple threads' access to shared resources. By using synchronized, it can avoid multiple threads accessing the same code block at the same time, so as to avoid multiple service monitors. The synchronization lock of the same service will not be obtained repeatedly, and lock means synchronization lock.
根据本申请实施例提供的技术方案,能够通过服务监视器实时监测对应服务的执行状态,具体监测方式为定期判断服务监视器能否获取到同步锁,若未获取到,判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据,从而能够在当前服务出现异常时及时且准确的知晓异常,便于处理异常,能够自行兜底当前服务出现的异常,提高车辆系统的稳定性和用户驾驶车辆时的安全体验。同时,在目标监控服务的执行状态为正常状态时,能够根据预设时间间隔无限循环的获取同步锁,从而实现对目标监控服务的实时监控及检测,提升用户使用车辆时的安全性。According to the technical solution provided by the embodiment of this application, the execution status of the corresponding service can be monitored in real time through the service monitor. The specific monitoring method is to regularly determine whether the service monitor can obtain the synchronization lock. If it does not obtain it, determine the execution of the target monitoring service. If the status is an abnormal state, restart the target monitoring service and record the abnormal data, so that when the current service is abnormal, it can know the abnormality in a timely and accurate manner, which is convenient for handling the abnormality. It can self-report the abnormality of the current service and improve the stability of the vehicle system and users. A safe experience while driving a vehicle. At the same time, when the execution status of the target monitoring service is normal, the synchronization lock can be obtained in an infinite loop according to the preset time interval, thereby realizing real-time monitoring and detection of the target monitoring service and improving the safety of users when using the vehicle.
在一些实施例中,基于目标监控服务,调用对应的服务监视器,包括:In some embodiments, based on the target monitoring service, the corresponding service monitor is called, including:
接收监控指令,确定监控指令对应的目标监控服务;Receive monitoring instructions and determine the target monitoring service corresponding to the monitoring instructions;
基于已确定的目标监控服务,通过监视器接口调用对应的服务监视器。Based on the determined target monitoring service, call the corresponding service monitor through the monitor interface.
接收监控指令,监控指令包括系统监控指令及自定义监控指令,其中,系统监控指令为预先设置的系统最核心部分的服务,系统监控指令是用户无法更改的,但开发人员能够通过OTA升级等方式对所有车辆同时进行增加目标监控服务、删除目标监控服务或更改目标监控服务,自定义监控服务是在可监控的服务上为用户提供一个能够自选目标监控服务的方式,以便于用户监控想要监控的目标监控服务。Receive monitoring instructions. Monitoring instructions include system monitoring instructions and custom monitoring instructions. Among them, system monitoring instructions are preset services for the core part of the system. System monitoring instructions cannot be changed by users, but developers can upgrade through OTA. Add target monitoring services, delete target monitoring services, or change target monitoring services for all vehicles at the same time. Custom monitoring services provide users with a way to select target monitoring services on monitorable services, so that users can monitor what they want to monitor. target monitoring service.
其中,系统监控指令是已封装好的监控指令,在对应的目标监控服务启动时自动调用服务监视器对目标监控服务进行监控。自定义监控指令可以记录来自于车端显示屏幕或终端设备的显示屏幕发送的监控指令,以保证系统中保存的自定义监控指令对应的目标监控服务是最新的目标监控服务。Among them, the system monitoring instructions are encapsulated monitoring instructions. When the corresponding target monitoring service is started, the service monitor is automatically called to monitor the target monitoring service. Custom monitoring instructions can record monitoring instructions sent from the vehicle display screen or the display screen of the terminal device to ensure that the target monitoring service corresponding to the custom monitoring instruction saved in the system is the latest target monitoring service.
检测到车载系统开始运行,接收监控指令,根据监控指令确定目标监控服务,根据已确定的目标监控服务,通过监视器接口调用与目标监控服务对应的服务监视器,其中,监视器接口以是一个标准的API,也可以是基于特定框架提供的插件接口,通过监视器接口调用到监视器服务后,开始对目标监控服务进行监控,判断该服务是否出现异常状态。It is detected that the vehicle system starts to run, receives the monitoring instruction, determines the target monitoring service according to the monitoring instruction, and calls the service monitor corresponding to the target monitoring service through the monitor interface according to the determined target monitoring service, where the monitor interface is a The standard API can also be based on the plug-in interface provided by a specific framework. After calling the monitor service through the monitor interface, it starts to monitor the target monitoring service to determine whether the service is in an abnormal state.
在服务监视器对目标监控服务执行监控的过程中,服务监视器能够根据预设的规则和参数来执行监控任务。例如,它可以定期检查目标服务的CPU使用率、内存占用情况、网络流量等指标,并将这些数据反馈给系统管理员或日志文件,当目标监控服务出现异常或故障时,服务监视器也可以触发警报或重启,以保证目标监控服务的稳定性和可用性,从而保证车载系统的稳定性。In the process of the service monitor monitoring the target monitoring service, the service monitor can perform monitoring tasks according to preset rules and parameters. For example, it can regularly check the CPU usage, memory usage, network traffic and other indicators of the target service, and feed these data back to the system administrator or log files. When the target monitoring service has an abnormality or failure, the service monitor can also Trigger an alarm or restart to ensure the stability and availability of the target monitoring service, thereby ensuring the stability of the on-board system.
本申请一示例性实施例中,根据服务监视器设计一个addMonitor()方法供目标监控服务调用,将addMonitor()方法视为监视器接口,当目标监控服务通过监视器接口调用服务监视器之后,触发服务监视器开始无限循环的根据目标监控服务定期获取同步锁。In an exemplary embodiment of this application, an addMonitor() method is designed based on the service monitor for the target monitoring service to call. The addMonitor() method is regarded as a monitor interface. When the target monitoring service calls the service monitor through the monitor interface, Trigger the service monitor to start an infinite loop to periodically acquire synchronization locks based on the target monitoring service.
根据本申请实施例提供的技术方案,能够根据监视器接口调用对应的服务监视器,以实现对目标监控服务的实时监控和预警,从而更好地管理车载系统的运行状态,并及时发现和解决异常。According to the technical solutions provided by the embodiments of this application, the corresponding service monitor can be called according to the monitor interface to realize real-time monitoring and early warning of the target monitoring service, thereby better managing the operating status of the vehicle system and timely discovering and solving problems. abnormal.
在一些实施例中,记录异常数据,包括:In some embodiments, abnormal data is logged, including:
获取异常堆栈信息及对应的内存信息,作为异常数据;Obtain exception stack information and corresponding memory information as exception data;
将异常数据写入日志并发送至目标设备端。Write abnormal data to the log and send it to the target device.
当服务监视器未获取到同步锁,当前服务的执行状态判定为异常状态时,获取本次异常相关的异常堆栈信息和内存信息,异常堆栈信息和内存信息能够帮助开发人员更好地理解本次异常发生的上下文和原因。When the service monitor does not obtain the synchronization lock and the execution status of the current service is determined to be abnormal, obtain the exception stack information and memory information related to this exception. The exception stack information and memory information can help developers better understand this exception. The context and reason why the exception occurred.
其中,在获取异常堆栈信息和内存信息时,可以使用Java的异常处理机制(例如try-catch块)来捕获异常,并使用Java的StackTrace元素获取异常堆栈信息。同时,我们还可以使用Java的Instrumentation工具来获取内存信息,如堆内存使用情况、线程数等。Among them, when obtaining exception stack information and memory information, you can use Java's exception handling mechanism (such as try-catch block) to capture exceptions, and use Java's StackTrace element to obtain exception stack information. At the same time, we can also use Java's Instrumentation tool to obtain memory information, such as heap memory usage, number of threads, etc.
获取到异常堆栈信息和内存信息后,将其写入日志,形成日志文件,以便后续的分析和处理,可以使用Java的日志框架(如Log4j、Logback等)来记录这些异常数据,在异常状态的日志中,可以记录异常发生的时间、目标监控服务名称、异常类型、异常堆栈信息以及内存信息等。After obtaining the exception stack information and memory information, write it to the log to form a log file for subsequent analysis and processing. You can use Java's log framework (such as Log4j, Logback, etc.) to record these abnormal data. In the abnormal state, In the log, you can record the time when the exception occurred, the name of the target monitoring service, the exception type, exception stack information, and memory information.
其中,在当前目标监控服务没有发生异常的时,将获取到的同步锁依次写入日志,并记录每次同步锁的获取时间段,以作为车载系统的数据分析来源。Among them, when there is no abnormality in the current target monitoring service, the obtained synchronization locks are written to the log in sequence, and the acquisition time period of each synchronization lock is recorded as a source of data analysis for the vehicle-mounted system.
除了将异常数据写入日志外,还需要将异常数据发送至目标设备端,以为开发人员提供异常数据的具体情况,在将异常数据发送至目标设备端时,可以使用网络协议(如TCP/IP、UDP等)将异常数据发送至指定的设备或服务器,在此基础上,也可以使用加密算法对数据进行加密,或使用数据校验和来检查数据的完整性等方式保证异常数据的安全性和可靠性。In addition to writing abnormal data to the log, the abnormal data also needs to be sent to the target device to provide developers with the specific circumstances of the abnormal data. When sending abnormal data to the target device, you can use network protocols (such as TCP/IP , UDP, etc.) to send abnormal data to the designated device or server. On this basis, you can also use encryption algorithms to encrypt the data, or use data checksums to check the integrity of the data to ensure the security of the abnormal data. and reliability.
根据本申请实施例提供的技术方案,能够在当前目标监控服务的执行状态变为异常状态时,可以有效的记录并处理异常数据,从而更好的对目标监控服务的执行状态进行监控,及时发现和解决异常。According to the technical solutions provided by the embodiments of this application, when the current execution status of the target monitoring service changes to an abnormal status, abnormal data can be effectively recorded and processed, thereby better monitoring the execution status of the target monitoring service and timely discovery. and resolve exceptions.
在一些实施例中,判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据,包括:In some embodiments, determining that the execution status of the target monitoring service is an abnormal state, restarting the target monitoring service and recording abnormal data includes:
记录发生异常状态对应预设时间间隔的起止时间,作为异常时间段;Record the start and end time corresponding to the preset time interval when the abnormal state occurs, as the abnormal time period;
当检测到异常时间段为非连续的异常时间段,重启目标监控服务所在的线程;When it is detected that the abnormal time period is a non-continuous abnormal time period, restart the thread where the target monitoring service is located;
当检测到存在至少两个连续的异常时间段,发送异常提示至目标终端,基于异常提示对应的提示反馈执行相应的操作。When it is detected that there are at least two consecutive abnormal time periods, an abnormality prompt is sent to the target terminal, and corresponding operations are performed based on prompt feedback corresponding to the abnormal prompt.
记录发生异常状态对应预设时间间隔的起止时间,作为异常时间段:当目标监控服务出现异常时,记录发生异常状态对应的预设时间间隔的起止时间,作为异常时间段,在记录时可以通过系统日志、监控系统或其他工具来记录异常时间段。Record the start and end time of the preset time interval corresponding to the abnormal state as an abnormal time period: When the target monitoring service is abnormal, record the start and end time of the preset time interval corresponding to the abnormal state as an abnormal time period, which can be recorded by System logs, monitoring systems, or other tools to record unusual periods of time.
如果异常时间段是非连续的,即两个异常时间段之间存在至少一个能够成功获取同步锁的预设时间间隔,可以重启目标监控服务所在的线程解决异常,重启线程可能会清除一些临时的问题或错误,并恢复服务的正常运行。If the abnormal time periods are non-consecutive, that is, there is at least one preset time interval between the two abnormal time periods that can successfully obtain the synchronization lock, you can restart the thread where the target monitoring service is located to solve the exception. Restarting the thread may clear some temporary problems. or error, and resume normal operation of the service.
如果存在至少两个连续的异常时间段,即两个及以上的异常时间段的起止时间是相连的,If there are at least two consecutive abnormal time periods, that is, the start and end times of two or more abnormal time periods are connected,
目标监控服务有概率存在严重的问题,发送异常提示至目标终端,通过目标终端的显示屏幕显示异常提示,并接收目标终端根据异常提示反馈的提示反馈,根据提示反馈执行相应操作。The target monitoring service has a probability of having serious problems. It sends abnormal prompts to the target terminal, displays the abnormal prompts through the display screen of the target terminal, receives prompt feedback from the target terminal based on the abnormal prompts, and performs corresponding operations based on the prompt feedback.
其中,提示反馈包括重启指令、显示基础界面指令或修复指令,基于异常提示对应的提示反馈执行相应的操作:Among them, prompt feedback includes restart instructions, display basic interface instructions or repair instructions, and perform corresponding operations based on the prompt feedback corresponding to the exception prompt:
当提示反馈为重启指令,重启目标监控服务所在的系统:关闭目标监控服务所在的整个系统,并重启该系统,以清理任何可能造成问题的临时状态,让系统重新开始运行;When the prompt feedback is a restart command, restart the system where the target monitoring service is located: shut down the entire system where the target monitoring service is located, and restart the system to clean up any temporary status that may cause problems and allow the system to start running again;
当提示反馈为显示基础界面指令,在目标终端上显示基础界面:基础界面是指系统的基本操作界面,能够执行一些基本的系统操作,不会让驾驶员在驾驶时紧急停车,保障驾驶员的驾驶安全和行车安全,也可以让用户通过基础界面了解系统的当前状态,并执行一些必要操作;When the prompt feedback is a command to display the basic interface, the basic interface is displayed on the target terminal: the basic interface refers to the basic operation interface of the system, which can perform some basic system operations and will not allow the driver to make an emergency stop while driving, ensuring the driver's safety. Driving safety and traffic safety also allow users to understand the current status of the system through the basic interface and perform some necessary operations;
当提示反馈为修复指令,基于异常数据修复当前目标监控服务:将修复指令发送至整车控制器,整车控制器根据修复指令为各零部件下发任务,以分析异常数据,找出当前异常状态的原因,并尝试进行修复。When the prompt feedback is a repair instruction, the current target monitoring service is repaired based on the abnormal data: the repair instruction is sent to the vehicle controller, and the vehicle controller issues tasks to each component according to the repair instruction to analyze the abnormal data and find out the current anomaly. status and try to fix it.
根据本申请实施例提供的技术方案,能够更好的管理目标监控服务的执行状态,记录异常数据和异常时间段便于进行故障排查,对于连续的异常时间段和非连续的异常时间段执行不同的操作,能够在出现异常时维护目标监控服务。According to the technical solutions provided by the embodiments of this application, the execution status of the target monitoring service can be better managed, abnormal data and abnormal time periods are recorded to facilitate troubleshooting, and different processes are executed for continuous abnormal time periods and non-continuous abnormal time periods. Operations, capable of maintaining target monitoring services when exceptions occur.
图3是本申请实施例提供的另一种服务异常监测方法的流程示意图。如图3所示,目标监控服务处于初始化阶段,通过addMonitor()方法为目标监控服务添加服务监视器,可写为addMonitor(目标监控服务),服务器监视器中每30秒获取一次同步锁,继而进入休眠,休眠时间为30秒,若在休眠时间内获取到同步锁,判定当前目标监控服务的执行状态为正常状态,若超过休眠时间之后还未成功获取同步锁,判定当前目标监控服务的执行状态为异常状态,抓取异常堆栈信息及内存信息,将其发送至目标设备端以使开发人员分析问题,同时对目标监控服务执行相应的操作,相应的操作可以是杀掉该线程并重启该线程,或者是重启目标监控服务所在的系统。Figure 3 is a schematic flowchart of another service anomaly monitoring method provided by an embodiment of the present application. As shown in Figure 3, the target monitoring service is in the initialization stage. Add a service monitor to the target monitoring service through the addMonitor() method, which can be written as addMonitor (target monitoring service). The server monitor obtains a synchronization lock every 30 seconds, and then Enter sleep. The sleep time is 30 seconds. If the synchronization lock is obtained during the sleep time, the execution status of the current target monitoring service is determined to be normal. If the synchronization lock is not successfully obtained after the sleep time, the execution status of the current target monitoring service is determined. When the status is abnormal, grab the exception stack information and memory information, send them to the target device so that developers can analyze the problem, and perform corresponding operations on the target monitoring service. The corresponding operation can be to kill the thread and restart the Thread, or restart the system where the target monitoring service is located.
其中,addMonitor()方法能够封装对外的接口,为服务监视器提供可移植性和扩展性,对于任何需要监控的服务而言,直接调用addMonitor()方法即可,服务监视器会将其视为目标监控服务进行异常监测。Among them, the addMonitor() method can encapsulate the external interface and provide portability and scalability for the service monitor. For any service that needs to be monitored, just call the addMonitor() method directly, and the service monitor will treat it as The target monitoring service performs anomaly monitoring.
其中,可以通过KillProcess()的方法杀掉进程,通过startProcess()的方法重启进程,通过reboot system的方式重启目标监控服务所在的系统。Among them, you can kill the process through the KillProcess() method, restart the process through the startProcess() method, and restart the system where the target monitoring service is located through the reboot system method.
其中,服务监视器通过程序代码关键字synchronized进行同步以获取同步锁,若能获取到同步锁lock,服务监视器的相关流程会无限循环的执行,若不能,执行杀掉进程、重启进程或重启系统的操作。Among them, the service monitor synchronizes through the program code keyword synchronized to obtain the synchronization lock. If the synchronization lock can be obtained, the relevant processes of the service monitor will be executed in an infinite loop. If not, the process will be killed, restarted, or restarted. System operation.
根据本申请实施例提供的技术方案,能够实时监测目标监控服务的状态、异常情况及异常信息等,在监测到执行状态为异常状态时,自动重启目标监控服务所在的线程或系统,使其恢复正常,能够自行兜底系统服务异常的问题处理,提高车辆系统的稳定性和用户的安全体验。According to the technical solutions provided by the embodiments of this application, the status, abnormal conditions and abnormal information of the target monitoring service can be monitored in real time. When the execution status is detected to be an abnormal state, the thread or system where the target monitoring service is located is automatically restarted to restore it. Normal, it can handle abnormal system service problems by itself, improving the stability of the vehicle system and the user's safety experience.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence number of each step in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described again one by one.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to execute method embodiments of the present application. For details not disclosed in the device embodiments of this application, please refer to the method embodiments of this application.
图4是本申请实施例提供的一种服务异常监测装置的示意图。如图4所示,应用于车辆系统的各服务,该服务异常监测装置包括:第一处理模块401,第二处理模块402,判断模块403,第三处理模块404,其中:Figure 4 is a schematic diagram of a service anomaly monitoring device provided by an embodiment of the present application. As shown in Figure 4, applied to each service of the vehicle system, the service anomaly monitoring device includes: a first processing module 401, a second processing module 402, a judgment module 403, and a third processing module 404, wherein:
第一处理模块401,被配置为将处于初始化阶段的各服务作为目标监控服务;The first processing module 401 is configured to use each service in the initialization stage as a target monitoring service;
第二处理模块402,被配置为基于目标监控服务,调用对应的服务监视器,服务监视器用于定期获取同步锁;The second processing module 402 is configured to call the corresponding service monitor based on the target monitoring service, and the service monitor is used to obtain the synchronization lock periodically;
判断模块403,被配置为判断每一预设时间间隔内服务监视器是否获取到同步锁;The determination module 403 is configured to determine whether the service monitor obtains the synchronization lock within each preset time interval;
第三处理模块404,被配置为若否,判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据。The third processing module 404 is configured to determine if the execution state of the target monitoring service is an abnormal state, restart the target monitoring service and record the abnormal data.
基于目标监控服务,调用对应的服务监视器,包括:Based on the target monitoring service, call the corresponding service monitor, including:
接收监控指令,确定监控指令对应的目标监控服务;Receive monitoring instructions and determine the target monitoring service corresponding to the monitoring instructions;
基于已确定的目标监控服务,通过监视器接口调用对应的服务监视器。Based on the determined target monitoring service, call the corresponding service monitor through the monitor interface.
在一些实施例中,判断模块403被配置为判断每一预设时间间隔内服务监视器是否获取到同步锁,还用于:In some embodiments, the determination module 403 is configured to determine whether the service monitor obtains the synchronization lock within each preset time interval, and is also used to:
第四处理模块405,被配置为若是,判定目标监控服务的执行状态为正常状态;The fourth processing module 405 is configured to, if yes, determine that the execution status of the target monitoring service is a normal status;
执行判断每一预设时间间隔内服务监视器是否获取到同步锁的步骤。Execute the step of determining whether the service monitor obtains the synchronization lock within each preset time interval.
在一些实施例中,第三处理模块404被配置为记录异常数据,用于:In some embodiments, the third processing module 404 is configured to log abnormal data for:
获取异常堆栈信息及对应的内存信息,作为异常数据;Obtain exception stack information and corresponding memory information as exception data;
将异常数据写入日志并发送至目标设备端。Write abnormal data to the log and send it to the target device.
在一些实施例中,第三处理模块404被配置为判定目标监控服务的执行状态为异常状态,重启目标监控服务并记录异常数据,用于:In some embodiments, the third processing module 404 is configured to determine that the execution state of the target monitoring service is an abnormal state, restart the target monitoring service and record abnormal data, for:
记录发生异常状态对应预设时间间隔的起止时间,作为异常时间段;Record the start and end time corresponding to the preset time interval when the abnormal state occurs, as the abnormal time period;
当检测到异常时间段为非连续的异常时间段,重启目标监控服务所在的线程;When it is detected that the abnormal time period is a non-continuous abnormal time period, restart the thread where the target monitoring service is located;
当检测到存在至少两个连续的异常时间段,发送异常提示至目标终端,基于异常提示对应的提示反馈执行相应的操作。When it is detected that there are at least two consecutive abnormal time periods, an abnormality prompt is sent to the target terminal, and corresponding operations are performed based on prompt feedback corresponding to the abnormal prompt.
在一些实施例中,第三处理模块404被配置为提示反馈包括重启指令、显示基础界面指令或修复指令,基于异常提示对应的提示反馈执行相应的操作,用于:In some embodiments, the third processing module 404 is configured so that the prompt feedback includes a restart instruction, a display basic interface instruction, or a repair instruction, and performs corresponding operations based on the prompt feedback corresponding to the abnormal prompt, for:
当提示反馈为重启指令,重启目标监控服务所在的系统;When the prompt feedback is a restart command, restart the system where the target monitoring service is located;
当提示反馈为显示基础界面指令,在目标终端上显示基础界面;When the prompt feedback is a display basic interface command, the basic interface is displayed on the target terminal;
当提示反馈为修复指令,基于异常数据修复当前目标监控服务。When the prompt feedback is a repair instruction, repair the current target monitoring service based on abnormal data.
在一些实施例中,第二处理模块402被配置为其特征在于,基于目标监控服务,调用对应的服务监视器之后,还用于:In some embodiments, the second processing module 402 is configured to: based on the target monitoring service, after calling the corresponding service monitor, it is also used to:
保存同步锁,将获取到的每一同步锁写入日志。Save synchronization locks and write each synchronization lock acquired to the log.
图5是本申请实施例提供的电子设备5的示意图。如图5所示,该实施例的电子设备5包括:处理器501、存储器502以及存储在该存储器502中并且可在处理器501上运行的计算机程序503。处理器501执行计算机程序503时实现上述各个方法实施例中的步骤。或者,处理器501执行计算机程序503时实现上述各装置实施例中各模块/单元的功能。FIG. 5 is a schematic diagram of the electronic device 5 provided by the embodiment of the present application. As shown in FIG. 5 , the electronic device 5 of this embodiment includes: a processor 501 , a memory 502 , and a computer program 503 stored in the memory 502 and executable on the processor 501 . When the processor 501 executes the computer program 503, the steps in each of the above method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, it implements the functions of each module/unit in each of the above device embodiments.
电子设备5可以是桌上型计算机、笔记本、掌上电脑及云端服务器等电子设备。电子设备5可以包括但不仅限于处理器501和存储器502。本领域技术人员可以理解,图5仅仅是电子设备5的示例,并不构成对电子设备5的限定,可以包括比图示更多或更少的部件,或者不同的部件。The electronic device 5 may be a desktop computer, a notebook, a handheld computer, a cloud server and other electronic devices. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502 . Those skilled in the art can understand that FIG. 5 is only an example of the electronic device 5 and does not constitute a limitation on the electronic device 5. It may include more or fewer components than shown in the figure, or different components.
处理器501可以是中央处理单元(Central Processing Unit,CPU),也可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。The processor 501 may be a Central Processing Unit (CPU), other general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or an on-site processor. Programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
存储器502可以是电子设备5的内部存储单元,例如,电子设备5的硬盘或内存。存储器502也可以是电子设备5的外部存储设备,例如,电子设备5上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。存储器502还可以既包括电子设备5的内部存储单元也包括外部存储设备。存储器502用于存储计算机程序以及电子设备所需的其它程序和数据。The memory 502 may be an internal storage unit of the electronic device 5 , for example, a hard disk or a memory of the electronic device 5 . The memory 502 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SD) card, a flash memory card ( Flash Card), etc. The memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. Memory 502 is used to store computer programs and other programs and data required by the electronic device.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units.
集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读存储介质(例如可读存储介质)中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可以存储在可读存储介质中,该计算机程序在被处理器执行时,可以实现上述各个方法实施例的步骤。计算机程序可以包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。可读存储介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (for example, a readable storage medium). Based on this understanding, this application can implement all or part of the processes in the methods of the above embodiments. It can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a readable storage medium. The computer program can be processed by a processor. When executed, the steps of each of the above method embodiments may be implemented. A computer program may include computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. Readable storage media may include: any entity or device that can carry computer program code, recording media, USB flash drives, mobile hard drives, magnetic disks, optical disks, computer memory, read-only memory (Read-Only Memory, ROM), random access Memory (Random Access Memory, RAM), electrical carrier signals, telecommunications signals, and software distribution media, etc.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, but are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments. Modifications are made to the recorded technical solutions, or equivalent substitutions are made to some of the technical features; these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and shall be included in this application. within the scope of protection.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311608459.5ACN117632644A (en) | 2023-11-28 | 2023-11-28 | Service abnormality monitoring method, device, electronic equipment and readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311608459.5ACN117632644A (en) | 2023-11-28 | 2023-11-28 | Service abnormality monitoring method, device, electronic equipment and readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN117632644Atrue CN117632644A (en) | 2024-03-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311608459.5APendingCN117632644A (en) | 2023-11-28 | 2023-11-28 | Service abnormality monitoring method, device, electronic equipment and readable storage medium |
| Country | Link |
|---|---|
| CN (1) | CN117632644A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118796612A (en)* | 2024-09-11 | 2024-10-18 | 成都赛力斯科技有限公司 | Vehicle control process monitoring method, device, electronic equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118796612A (en)* | 2024-09-11 | 2024-10-18 | 成都赛力斯科技有限公司 | Vehicle control process monitoring method, device, electronic equipment and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| US8910138B2 (en) | Hot pluggable extensions for access management system | |
| CN112867988A (en) | Implementing compliance settings by a mobile device to follow a configuration scenario | |
| CN109218407B (en) | Code control method and terminal device based on log monitoring technology | |
| CN104636678B (en) | The method and system of management and control is carried out under a kind of cloud computing environment to terminal device | |
| WO2019148727A1 (en) | Electronic device, redis-based exception warning method and storage medium | |
| CN111191226A (en) | Method, device, equipment and storage medium for determining program by using privilege-offering vulnerability | |
| US20150095903A1 (en) | Product deployment system | |
| WO2020224100A1 (en) | Blockchain configuration file processing apparatus, system, and method, and storage medium | |
| CN114185734A (en) | A method, device and electronic device for monitoring a cluster | |
| CN113791792B (en) | Methods, devices and storage media for obtaining application call information | |
| US11720424B2 (en) | Single flow execution | |
| CN110008092B (en) | Virtual machine safety monitoring method, device, equipment and readable storage medium | |
| CN113608964A (en) | A cluster automatic monitoring method, device, electronic device and storage medium | |
| US20190121985A1 (en) | Detecting vulnerabilities in applications during execution | |
| CN117632644A (en) | Service abnormality monitoring method, device, electronic equipment and readable storage medium | |
| US10122602B1 (en) | Distributed system infrastructure testing | |
| CN107423620B (en) | Storage server service process management method and device | |
| CN110505246B (en) | Client network communication detection method, device and storage medium | |
| US9935867B2 (en) | Diagnostic service for devices that employ a device agent | |
| US12020039B2 (en) | Compute instance warmup operations | |
| CN115269336A (en) | Monitoring method and device for database connection pool, electronic equipment and storage medium | |
| CN112905422B (en) | Alarm rule management method and equipment based on search server | |
| CN110928630A (en) | Activation control method, device, device and storage medium for application window | |
| CN110851347B (en) | Self-checking system and method for security reinforcement software in cluster environment | |
| CN113220407B (en) | Fault exercise method and device |
| 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 | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right | Effective date of registration:20241209 Address after:400000 No. 229, Fusheng Avenue, Jiangbei District, Chongqing Applicant after:Thalys Automobile Co.,Ltd. Country or region after:China Address before:618 Liangjiang Avenue, Longxing Town, Yubei District, Chongqing Applicant before:Chongqing Celes New Energy Automobile Design Institute Co.,Ltd. Country or region before:China |