CN114168383A - Application state monitoring restart tool, method, medium and equipment - Google Patents

Application state monitoring restart tool, method, medium and equipment Download PDF

Info

Publication number
CN114168383A
CN114168383A CN202111450638.1A CN202111450638A CN114168383A CN 114168383 A CN114168383 A CN 114168383A CN 202111450638 A CN202111450638 A CN 202111450638A CN 114168383 A CN114168383 A CN 114168383A
Authority
CN
China
Prior art keywords
request
application process
module
return information
monitored
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
CN202111450638.1A
Other languages
Chinese (zh)
Inventor
郝桃
覃克天
陆伟
张功贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Lianchuang Xintian Technology Co ltd
Original Assignee
Beijing Lianchuang Xintian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lianchuang Xintian Technology Co ltd filed Critical Beijing Lianchuang Xintian Technology Co ltd
Priority to CN202111450638.1A priority Critical patent/CN114168383A/en
Publication of CN114168383A publication Critical patent/CN114168383A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Landscapes

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

Abstract

The invention discloses an application state restarting tool, a method, a medium and equipment, belonging to the technical field of software development and mainly comprising the following steps: the configuration module is used for configuring path environment variables for the timing request module and the restarting module according to at least one application process needing to be monitored and restarted, and configuring a directory of the monitored application process and a URL (uniform resource locator) interface address of each monitored application process; the timing request module is used for executing a curl command according to a preset execution period, and requesting to acquire request success return information and request failure return information through a URL (uniform resource locator) interface address; and the restarting module is used for restarting the corresponding monitored application process according to the request failure return information. The application of the invention can realize personalized requirements, solve the problem of incapability of monitoring when the application process still exists but the service is hung up and loses response, ensure normal business operation of customers and further reduce labor cost and operation and maintenance cost.

Description

Application state monitoring restart tool, method, medium and equipment
Technical Field
The application relates to the technical field of software development, in particular to an application state monitoring restart tool, an application state monitoring restart method, a storage medium and an application state monitoring restart device.
Background
When the application process has unexpected problems of collapse, hang-up, losing response and the like in the running process, in order to avoid the situation that operation and maintenance personnel cannot restart the application in time and further influence the normal business operation of a client and the like, a tool capable of automatically monitoring and restarting the application can be used for carrying out the operation and maintenance work.
Currently, available application state monitoring restart components and programs are available in the market, and the function of monitoring and restarting an application process can also be realized, but the method mainly comprises three disadvantages: firstly, the product route is usually taken, and when the individual requirements and function points need to be realized, the response and timeliness of components and programs of the market product are not guaranteed; and secondly, the mainstream application state monitoring restart component and program in the market are realized mainly through process state query and monitoring in the environments of liunx and windows, and the condition that the application process still exists but the service is suspended and loses response is monitored without force, so that the condition cannot be dealt with. Cost is generated, the application state monitoring on the market restarts components and programs, which are not free, or advanced functions and characteristics are not free, and additional cost is generated when the components are used.
Disclosure of Invention
The invention provides an application state monitoring restarting tool which can realize personalized requirements, solve the problem of incapability of monitoring when an application process still exists but a service is suspended and loses response, ensure normal business operation of a client and further reduce labor cost and operation and maintenance cost.
In order to solve the above problems, the present invention adopts a technical solution that: an application status monitoring restart tool is provided, the tool comprising: a configuration module, a timing request module, and a restart module, wherein,
the configuration module is used for configuring path environment variables for the timing request module and the restarting module according to at least one application process needing to be monitored and restarted, and configuring a directory of the monitored application process and a URL (uniform resource locator) interface address of each monitored application process;
the timing request module is used for executing a curl command according to a preset execution period, and acquiring request success return information indicating that the corresponding monitored application process operates normally and request failure return information indicating that the corresponding monitored application process operates abnormally through a URL (uniform resource locator) interface address request;
and the restarting module is used for restarting the corresponding monitored application process according to the request failure return information.
The invention adopts another technical scheme that: an application state monitoring restart method is provided, and the method comprises the following steps:
configuring path environment variables for a timing request module and a restarting module and configuring a directory of the monitored application processes and a URL (uniform resource locator) interface address of each monitored application process through a configuration module according to at least one application process needing to be monitored and restarted;
executing a curl command according to a preset execution period through a timing request module, and requesting to acquire request success return information indicating that a corresponding monitored application process operates normally and request failure return information indicating that the corresponding monitored application process operates abnormally through a URL (uniform resource locator) interface address;
and restarting the corresponding monitored application process according to the request failure return information through the restarting module.
In another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, wherein the computer instructions are operated to execute the application state monitoring restart method in the solution.
In another aspect of the present invention, a computer device is provided, which includes at least one processor; and a memory communicatively coupled to the at least one processor, wherein the memory stores computer instructions executable by the at least one processor, and wherein the at least one processor operates the computer instructions to perform the application state monitoring restart method in the scenario.
The technical scheme of the invention can achieve the following beneficial effects: the invention provides an application state monitoring restarting tool, an application state monitoring restarting method, a computer readable storage medium and computer equipment, which can realize personalized requirements, solve the problem that monitoring is not capable when an application process still exists but a service is hung up and a response is lost, ensure normal business operation of a client and further reduce labor cost and operation and maintenance cost.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a diagram illustrating an embodiment of an application state monitoring restart tool according to the present invention;
FIG. 2 is a diagram of an embodiment of an application monitor restart tool;
FIG. 3 is a diagram illustrating an embodiment of a restart method for application state monitoring according to the present invention;
fig. 4 is a schematic diagram of an embodiment of an application status monitoring restart method according to the present invention.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 is a schematic diagram illustrating an embodiment of a restart tool for monitoring application states according to the present invention.
In this specific embodiment, the application state monitoring restart tool mainly includes: a configuration module 101, a timing request module 102, and a restart module 103, wherein,
the configuration module 101 is configured to configure path environment variables for the timing request module and the restart module according to at least one application process that needs to be monitored and restarted, and configure a directory of the monitored application processes and a URL interface address of each monitored application process;
the timing request module 102 is configured to execute a curl command according to a predetermined execution cycle, and request, through a URL interface address, to acquire request success return information indicating that a corresponding monitored application process operates normally and request failure return information indicating that a corresponding monitored application process operates abnormally;
and the restarting module 103 is used for restarting the corresponding monitored application process according to the request failure return information.
The application state monitoring restarting tool provided by the invention can realize personalized requirements, solves the problem of monitoring incapability when an application process still exists but the service is suspended and loses response, ensures normal business operation of a client, and further reduces labor cost and operation and maintenance cost.
In a specific embodiment of the present invention, the application state monitoring restart tool is integrated in the monitored application process, and the integrated setting is convenient for integrating with the monitored application process, and the monitored application process is monitored and restarted independently, and there is no need to install components related to the application state monitoring restart tool, etc., which not only is convenient for users to use, but also reduces the maintenance cost.
In the specific embodiment shown in fig. 1, the application state monitoring restart tool of the present invention includes a configuration module 101, configured to configure path environment variables for a timing request module and a restart module according to at least one application process that needs to be monitored and restarted, and configure a directory of the monitored application process and a URL interface address of each monitored application process. The module is configured with the environment and data needed by the timing request function and the restart function in advance, so that the timing request module can smoothly request the URL interface address and smoothly restart the abnormally-operated application process.
Specifically, the method and the device rely on the request result of the URL interface address to judge whether the application process corresponding to the URL interface address is normal, so that the application process is limited to http application, namely website application. In the specific example, assuming that two application processes (application process 1 and application process 2) need to be monitored and restarted, configuring a directory of the monitored application process, and adding the application process 1 and the application process 2 in the monitored application process directory of the application state monitoring and restarting tool; configuring a URL interface address of each monitored application process, wherein each application process corresponds to a unique URL interface address, so that the URL interface addresses corresponding to the application process 1 and the application process 2 are added to an application state monitoring restart tool; and configuring a path environment variable, wherein the environment for calling the script in the crottab file may be inconsistent with the environment variable in the shell, so that data in the path environment variable is modified, the path environment variable is ensured to comprise data related to the application process 1 and the application process 2, a timing task is further added to the timing request module, and smooth execution of the timing task is ensured.
In the specific embodiment shown in fig. 1, the application state monitoring restart tool of the present invention includes a timing request module 102, configured to execute a curl command according to a predetermined execution cycle, and request, through a URL interface address, to obtain request success return information indicating that a corresponding monitored application process operates normally and request failure return information indicating that a corresponding monitored application process operates abnormally. The module requests the URL interface address of the application process so as to obtain whether the monitored application process returns information or not, and further restarts the monitored application process corresponding to the returned information after the request fails, thereby solving the problem of incapability of monitoring when the application process still exists but the service is suspended and loses response.
In one embodiment of the invention, the timing request module includes a timing sub-module for setting a predetermined execution period for executing the curl command using the crontab command. The module uses a common crontab command to set a preset execution period for executing the curl command, and has simple technology and convenient maintenance.
In particular, the crontab command is commonly found in Unix and Unix-like operating systems for setting instructions that are executed periodically. This command reads the curl command and deposits it in the "crontab" file for later reading and execution. Typically, the command stored in the crontab file is activated by the application state monitoring restart tool, and every cycle, it is checked whether there is a predetermined job to be executed. This type of job is commonly referred to as cron jobs.
In this particular embodiment, the predetermined execution period may be set to one minute, i.e., the URL interface address is periodically requested once per minute for executing the curl command.
In a specific example of the present invention, the application process 1 requests, through its URL interface address, to obtain the request success return information indicating that the application process 1 operates normally and the request failure return information indicating that the application process 1 operates abnormally. In practical application, the curl command requests to obtain the return information of the URL interface address once per minute through the HTTP protocol, and if there is no special requirement and modification, the requested URL interface address is expected to return the following character string:
{ "success": message ": no authority, please contact administrator for authorization", "code":500 "," result ": null", "timestamp":1626922477344 "," cost time ":0}
This string indicates that the request is not authorized (not logged in), but does not affect us in determining the application state. If the URL interface address of the application process 1 has a return character string, it indicates that the application process 1 operates normally, and the character string is the return information that the request succeeds, and if the URL interface address of the application process 1 has no return character string, it indicates that the application process 1 operates abnormally, and there is no return character string, i.e., the return information that the request fails.
The request for the application process 2 through the URL interface address thereof obtains the request success return information indicating that the application process 2 operates normally and the request failure return information indicating that the application process 2 operates abnormally, which are the same as the application process 1, and are not described herein again.
In the specific embodiment shown in fig. 1, the application state monitoring restart tool of the present invention includes a restart module 103, configured to restart a corresponding monitored application process according to request failure return information. The module restarts the abnormally-running application process so as to avoid influencing the normal business operation of the application client.
Specifically, the timing request module acquires the return information of the URL interface address once every minute, and if the application process 1 acquires the request return information successfully at the current time, that is, if the application process 1 operates normally at the current time, the application process 1 does not need to be restarted, and if the application process 2 acquires the request failure return information at the current time, that is, if the application process 2 operates abnormally at the current time, the application process 2 needs to be restarted.
In an embodiment of the present invention, referring to the schematic diagram of an embodiment of an application state monitoring restart tool provided in fig. 2 of the present invention, the application state monitoring restart tool further includes a return information recording module, configured to obtain a log record by using request success return information and request failure return information obtained by the timing request module; and the restarting module is used for restarting the corresponding monitored application process if the frequency of requesting the failure return information in the log record is greater than a preset frequency threshold value. The module is convenient for increasing the fault tolerance of the application process, so that the application process is restarted after obtaining the request failure return information for multiple times, the times of executing the restarting operation of the application state monitoring restarting tool are reduced, and the fault caused by frequent operation is avoided.
In an embodiment of the present invention, referring to the schematic diagram of an embodiment of an application status monitoring restart tool provided in fig. 2 of the present invention, the returned information recording module includes a record updating sub-module, configured to, if the returned information of the monitored application process is the request successful returned information, overwrite and refresh the corresponding log record by the request successful returned information; and if the return information of the monitored application process is the request failure return information, adding the request failure return information to the corresponding log record.
Specifically, the return information recording module separately records the return information corresponding to each of the application process 1 and the application process 2 to the log record, and in the process, the Echo redirection technology may be applied to record the request success return information and the request failure return information to the log record, or a print or printf command may be executed to record the request success return information and the request failure return information to the log record, which is not limited in the present invention. During recording, if the return information of the monitored application process is request success return information, the record updating submodule uses the request success return information to cover and refresh the corresponding log record, and if the return information of the monitored application process is request failure return information, the record updating submodule adds the request failure return information to the corresponding log record.
Assuming that the return information which is obtained by the first request of the application process 1 in the log record is the request failure return information, recording the request failure return information to the log record: { application process 1: request failure return information }, the return information obtained by the second request is still the request failure return information, then the request failure return information is added to the log record: { application process 1: request failure return information; request failure return information }, the return information obtained by the third request is request success return information, and the request success return information can cover and refresh the log record of the application process 1, that is, the log record of the application process 1 at the current time is: { application process 1: request successful return message }.
And the restart module judges the times of requesting the failure return information corresponding to the application process, and if the times of requesting the failure return information in the log record are greater than a preset time threshold, the corresponding monitored application process is restarted.
In this embodiment, the number threshold may be set to 3, and it is assumed that the log of the application process 1 at the current time is: { application process 1: request success return information }, the number of times of requesting failure return information in the log record of the application process 1 is 0, which indicates that the current time of the application process is normal and does not need to be restarted, and it is assumed that the log record of the application process 2 at the current time is: { application process 2: request failure return information; request failure return information; request failure return information; request failure return information }, the number of times of requesting the failure return information in the log record of the application process 2 is 4, which is greater than a preset number threshold 3, and it represents that the return information that the application process 2 has been continuously acquired four times is the request failure return information, and since the request is acquired once per minute, that is, the application process 2 has been continuously in an abnormal state for four minutes, the restart module restarts the application process 2.
By applying the application state monitoring restart tool, the invention can realize the personalized requirement, solve the problem of monitoring incapability when the application process still exists but the service is suspended and the response is lost, ensure the normal business operation of the client and further reduce the labor cost and the operation and maintenance cost.
Fig. 3 is a schematic diagram illustrating an embodiment of a restart method for monitoring application states according to the present invention.
In this specific embodiment, the application state monitoring restart method mainly includes:
s301, configuring path environment variables for a timing request module and a restart module and configuring a directory of monitored application processes and URL (uniform resource locator) interface addresses of each monitored application process through a configuration module according to at least one application process needing to be monitored and restarted;
s302, executing a curl command according to a preset execution cycle through a timing request module, and requesting to acquire request success return information indicating that the corresponding monitored application process operates normally and request failure return information indicating that the corresponding monitored application process operates abnormally through a URL (uniform resource locator) interface address;
and S303, restarting the corresponding monitored application process according to the request failure return information through the restarting module.
By applying the method for monitoring and restarting the application state, the personalized requirements can be realized, the problem of incapability of monitoring when the application process still exists but the service is suspended and loses response is solved, the normal business operation of a client is ensured, and the labor cost and the operation and maintenance cost are further reduced.
In the specific embodiment shown in fig. 3, the application status monitoring restart method of the present invention includes S301: the method comprises the steps that a configuration module configures path environment variables for a timing request module and a restart module according to at least one application process needing to be monitored and restarted, and configures a directory of the monitored application processes and a URL (uniform resource locator) interface address of each monitored application process, and the process is characterized in that the environment and data required for a timing request function and a restart function are configured in advance, so that the timing request module can request the URL interface address smoothly, and the abnormally-running application process can be restarted smoothly.
Specifically, referring to the schematic diagram of an embodiment of an application status monitoring restart method provided in fig. 4 of the present invention, the process S301 is the configuration parameter in fig. 4.
In the specific embodiment shown in fig. 3, the application status monitoring restart method of the present invention includes S302: executing a curl command according to a preset execution period through a timing request module, and requesting to acquire request success return information indicating that the corresponding monitored application process operates normally and request failure return information indicating that the corresponding monitored application process operates abnormally through a URL (uniform resource locator) interface address. The process requests the URL interface address of the application process so as to obtain whether the monitored application process returns information or not, and further restarts the monitored application process corresponding to the returned information after the request fails, thereby solving the problem of incapability of monitoring when the application process still exists but the service is suspended and loses response.
Specifically, referring to the schematic diagram of an embodiment of an application status monitoring restart method provided in fig. 4 of the present invention, the process S302 is the timing request in fig. 4.
In the specific embodiment shown in fig. 3, the application status monitoring restart method of the present invention includes S303: and restarting the corresponding monitored application process according to the request failure return information through the restarting module. The process restarts the abnormally-running application process so as to avoid influencing normal business operation of the application client.
In the specific embodiment of the invention, through the return information recording module, the log record is obtained by utilizing the request success return information and the request failure return information which are acquired by the timing request module; and through the restarting module, if the times of requesting the failure return information in the log record are greater than a preset time threshold, restarting the corresponding monitored application process. The process is convenient for increasing the fault tolerance of the application process, so that the application process is restarted after obtaining the request failure return information for multiple times, the times of executing the restarting operation of the application state monitoring restarting tool are reduced, and the fault caused by frequent operation is avoided.
Specifically, referring to a schematic diagram of a specific embodiment of an application state monitoring restart method provided in fig. 4 of the present invention, by the restart module, if the number of times of requesting the failure return information in the log record is greater than a preset number threshold, the restart module restarts the corresponding monitored application process, which is represented in fig. 4 as: and judging whether the continuous failure times are larger than a time threshold value, if not, finishing the task, and if so, restarting the monitored application process and finishing the task.
In the specific embodiment of the invention, through the record updating submodule of the returned information recording module, if the returned information of the monitored application process is the request successful returned information, the corresponding log record is refreshed by using the request successful returned information; and if the return information of the monitored application process is the request failure return information, adding the request failure return information to the corresponding log record.
Specifically, referring to a schematic diagram of an embodiment of an application status monitoring restart method provided in fig. 4 of the present invention, the above process is represented in fig. 4: judging the returned information, requesting the returned information to refresh the log record, and requesting the returned information to add to the log record.
By applying the method for monitoring and restarting the application state, the personalized requirements can be realized, the problem of incapability of monitoring when the application process still exists but the service is suspended and loses response is solved, the normal business operation of a client is ensured, and the labor cost and the operation and maintenance cost are further reduced.
In another embodiment of the present invention, a computer-readable storage medium stores computer instructions, wherein the computer instructions are operable to perform the application state monitoring restart method described in any of the embodiments. Wherein the storage medium may be directly in hardware, in a software module executed by a processor, or in a combination of the two.
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
The Processor may be a Central Processing Unit (CPU), other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), other Programmable logic devices, discrete Gate or transistor logic, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one embodiment of the present invention, a computer device is provided that includes at least one processor; and a memory communicatively coupled to the at least one processor, wherein the memory stores computer instructions executable by the at least one processor, and wherein the at least one processor operates the computer instructions to perform the method for application state monitoring restart in a scenario
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above embodiments are merely examples, which are not intended to limit the scope of the present disclosure, and all equivalent structural changes made by using the contents of the specification and the drawings, or any other related technical fields, are also included in the scope of the present disclosure.

Claims (10)

1. An application state monitoring restart tool, comprising: a configuration module, a timing request module, and a restart module, wherein,
the configuration module is used for configuring path environment variables for the timing request module and the restart module according to at least one application process needing to be monitored and restarted, and configuring a directory of the monitored application process and a URL (uniform resource locator) interface address of each monitored application process;
the timing request module is used for executing a curl command according to a preset execution cycle, and acquiring request success return information indicating that the corresponding monitored application process operates normally and request failure return information indicating that the corresponding monitored application process operates abnormally through the URL interface address request;
and the restarting module is used for restarting the corresponding monitored application process according to the request failure return information.
2. The application state monitoring restart tool of claim 1,
the timing request module includes a timing sub-module for setting the predetermined execution period for executing the curl command using a crontab command.
3. The application state monitoring restart tool of claim 1, further comprising,
the return information recording module is used for obtaining log records by utilizing the request success return information and the request failure return information which are obtained by the timing request module;
and the restarting module is used for restarting the corresponding monitored application process if the frequency of the request failure return information in the log record is greater than a preset frequency threshold value.
4. The application state monitoring restart tool of claim 3,
the return information recording module comprises a record updating submodule for,
if the returned information of the monitored application process is the request successful returned information, utilizing the request successful returned information to cover and refresh the corresponding log record;
and if the return information of the monitored application process is the request failure return information, adding the request failure return information to the corresponding log record.
5. The application state monitoring restart tool of claim 1 further comprising the application state monitoring restart tool being disposed integrally in the monitored application process.
6. An application state monitoring restart method using the application state monitoring restart tool of claim 1, comprising,
configuring a path environment variable for a timing request module and a restarting module according to at least one application process needing to be monitored and restarted by the configuration module, and configuring a directory of the monitored application process and a URL (uniform resource locator) interface address of each monitored application process;
executing a curl command according to a preset execution cycle through the timing request module, and requesting to acquire request success return information indicating that the corresponding monitored application process operates normally and request failure return information indicating that the corresponding monitored application process operates abnormally through the URL interface address;
and restarting the corresponding monitored application process according to the request failure return information through the restart module.
7. The application state monitoring restart method of claim 6, further comprising,
obtaining a log record by using the request success return information and the request failure return information acquired by the timing request module through a return information recording module;
and through the restarting module, if the frequency of requesting the failure return information in the log record is greater than a preset frequency threshold value, restarting the corresponding monitored application process.
8. The application state monitoring restart method of claim 7,
through a record updating submodule of the returned information recording module, if the returned information of the monitored application process is the request successful returned information, the log record corresponding to the request successful returned information is refreshed by covering the request successful returned information;
and if the return information of the monitored application process is the request failure return information, adding the request failure return information to the corresponding log record.
9. A computer readable storage medium storing computer instructions, wherein the computer instructions are operable to perform the application state monitoring restart method of any of claims 6-8.
10. A computer device, comprising,
at least one processor; and
a memory communicatively coupled to the at least one processor;
wherein the memory stores computer instructions executable by the at least one processor, the at least one processor operating the computer instructions to perform the application state monitoring restart method of any of claims 6-8.
CN202111450638.1A 2021-12-01 2021-12-01 Application state monitoring restart tool, method, medium and equipment Pending CN114168383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111450638.1A CN114168383A (en) 2021-12-01 2021-12-01 Application state monitoring restart tool, method, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111450638.1A CN114168383A (en) 2021-12-01 2021-12-01 Application state monitoring restart tool, method, medium and equipment

Publications (1)

Publication Number Publication Date
CN114168383A true CN114168383A (en) 2022-03-11

Family

ID=80481940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111450638.1A Pending CN114168383A (en) 2021-12-01 2021-12-01 Application state monitoring restart tool, method, medium and equipment

Country Status (1)

Country Link
CN (1) CN114168383A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001761A (en) * 2022-05-20 2022-09-02 裴志宏 Monitoring method for remotely controlling hacker by real-time perception computer based on DNS analysis

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001761A (en) * 2022-05-20 2022-09-02 裴志宏 Monitoring method for remotely controlling hacker by real-time perception computer based on DNS analysis

Similar Documents

Publication Publication Date Title
JP4156663B2 (en) Method and apparatus for monitoring and controlling a program in a network
US6871223B2 (en) System and method for agent reporting in to server
US11182253B2 (en) Self-healing system for distributed services and applications
US20020082821A1 (en) Data model for automated server configuration
US20070198524A1 (en) Maintaining connections between application servers and databases in a multitier computer architecture
JP2005531070A (en) Method and system for monitoring application performance in a distributed environment
CN113407383B (en) Main and standby system switching method and device, server and main and standby system
CN114168383A (en) Application state monitoring restart tool, method, medium and equipment
US7043726B2 (en) Binding of processes in network systems
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
US7206975B1 (en) Internal product fault monitoring apparatus and method
US9477490B2 (en) Milestone based dynamic multiple watchdog timeouts and early failure detection
US20150205675A1 (en) Method and System for Improving Reliability of a Background Page
US9973569B2 (en) System, method and computing apparatus to manage process in cloud infrastructure
CN112005221A (en) Automatic remediation via communication with peer devices across multiple networks
CN112351098B (en) Copying service cluster system, control method, device and medium
CN110019262B (en) Data updating method and device
CN114050990A (en) Test method and device for network isolation equipment, storage medium and electronic equipment
CN113656378A (en) Server management method, device and medium
CN114143219A (en) Network monitoring method, device, medium and equipment of B/S system architecture
US9197519B2 (en) Tracking objects within dynamic environments
JP3494788B2 (en) Program execution management system and program execution management method
KR102244562B1 (en) Information processing device, information processing method and program
CN114721794A (en) Device management method, system, apparatus, electronic device and storage medium
CN115454780A (en) Memory health degree resetting method, device and equipment

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