A method, device, equipment and readable storage medium for troubleshooting middleware
By automatically detecting the response time and adjusting parameters of middleware data request instructions, the problem of low efficiency in middleware troubleshooting is solved, automated fault detection and repair are realized, and processing efficiency is improved.
Patent Information
- Application Number
- CN202110833542.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-23
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-07-23
AI Technical Summary
Middleware troubleshooting relies on professionals, which is inefficient and requires manual viewing of logs and other content. There are technical barriers and long processing times.
By obtaining operation data and thresholds, the response time of middleware data request instructions is detected, and middleware parameters are automatically adjusted to make them comply with the specification parameter range to achieve automatic troubleshooting and repair.
It improves the efficiency of middleware problem processing, avoids manual troubleshooting and repair, and realizes automated fault detection and resolution.
Smart Images

Figure CN113568772B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of middleware fault troubleshooting, and in particular to a middleware fault troubleshooting method, device, equipment and readable storage medium. Background Art
[0002] When dealing with daily middleware problems, the usual method is to have middleware professional operation and maintenance personnel handle them personally. This approach is highly dependent on the personnel's technical skills, has certain technical barriers, and manually troubleshoots the problems. It is necessary to manually check different logs, information, etc., which takes a long time to process and is inefficient. Summary of the invention
[0003] The object of the present invention is to provide a middleware troubleshooting method, device, equipment and readable storage medium to improve the above-mentioned problem.
[0004] In order to achieve the above objectives, the present application provides the following technical solutions:
[0005] On the one hand, an embodiment of the present application provides a middleware troubleshooting method, the method comprising: obtaining first operation data and a first threshold, and sending each middleware data request instruction in the first operation data to a corresponding first server, the first operation data comprising multiple middleware data request instructions, the first threshold being the longest time for the first server to respond to the middleware data request instruction; detecting the response time of the first server corresponding to at least one of the middleware data request instructions, if the response time of the first server corresponding to the middleware data request instruction is greater than the first threshold, retrieving the addresses of multiple first servers corresponding to the first operation data; finding multiple corresponding first servers based on the multiple first server addresses; adjusting the parameters of the middleware in each first server corresponding to the first operation data based on standard parameters, so that the values of the parameters of the middleware in the multiple first servers corresponding to the first operation data are all within the value range of the standard parameters, the standard parameters are the reference thresholds of the parameters of the middleware corresponding to the first server.
[0006] Optionally, after detecting the response time of the first server corresponding to at least one of the middleware data request instructions, the method further includes:
[0007] If the response time of the first server corresponding to the middleware data request instruction is less than or equal to the first threshold, retrieve the middleware response success rate and the second threshold corresponding to all the middleware data request instructions in the first operation data, where the second threshold is the minimum value of the middleware response success rate, and the middleware response success rate is the proportion of the middleware data request instructions that have been responded to in all the middleware data request instructions;
[0008] Comparing the second threshold with the middleware response success rate, if the middleware response success rate is less than the second threshold, retrieving addresses of multiple first servers corresponding to the first operation, and finding multiple corresponding first servers according to the multiple first server addresses;
[0009] The parameters of the middleware corresponding to each of the first servers are adjusted according to the standard parameters, so that the parameter values of the middleware corresponding to the first servers are all within the numerical range of the standard parameters.
[0010] Optionally, after adjusting the parameters of the middleware in the first server corresponding to each of the first operation data according to the specification parameters, the method further includes:
[0011] Retrieving the first operation data and sending it to a plurality of corresponding first servers;
[0012] The response time corresponding to each of the middleware data request instructions in the first operation data is detected. If the response time is less than the first threshold, a fault-solved instruction is sent. The fault-solved instruction is an instruction to prompt maintenance personnel that the current fault has been solved.
[0013] Optionally, after detecting the response time corresponding to each of the middleware data request instructions in the first operation data, the method further includes:
[0014] If the response time corresponding to any one of the middleware data request instructions is greater than the first threshold, calling an exception information resource pool, the exception information resource pool including a plurality of exception information and a plurality of corresponding exception information processing logics;
[0015] Capturing abnormal information corresponding to the current first operation data;
[0016] Matching an exception information processing logic that matches the exception information corresponding to the current first operation data in the exception information resource pool, the exception information processing logic being an operation code for resetting a plurality of the first servers corresponding to the first operation data;
[0017] Reset the parameter settings in the multiple first servers corresponding to the current first operation data according to the matched exception information processing logic.
[0018] Optionally, after resetting the parameter settings in the plurality of first servers corresponding to the current first operation data, the method further includes:
[0019] Retrieving the current first operation data and sending it to a plurality of corresponding first servers;
[0020] Detect the response time corresponding to each of the middleware data request instructions in the current first operation data. If multiple response times corresponding to the current first operation data are all less than the first threshold, send a fault resolved instruction. If any one of the response times corresponding to the current first operation data is greater than or equal to the first threshold, send a first warning instruction. The first warning instruction is an instruction to prompt maintenance personnel that manual intervention is required to handle the fault.
[0021] Optionally, adjusting the parameters of the middleware in each of the first servers according to the specification parameters includes:
[0022] Retrieving a parameter of the middleware and the standard parameter in the first server corresponding to the first operation data, wherein the parameter of the middleware includes a plurality of configuration parameters, and the standard parameter includes a plurality of reference threshold values corresponding to the plurality of configuration parameters one by one;
[0023] Retrieve a configuration parameter and find a reference threshold value corresponding to the configuration parameter in the specification parameter;
[0024] Detection and adjustment: Detect whether the value of the called configuration parameter is within the range of the corresponding reference threshold. If the value of the called configuration parameter is outside the range of the corresponding reference threshold, adjust the value of the called configuration parameter so that the value of the called configuration parameter is within the range of the corresponding reference threshold. If the value of the called configuration parameter is within the range of the corresponding reference threshold, call another configuration parameter that has not been called, and detect and adjust the other called configuration parameter until all configuration parameters in the parameters of the middleware are called.
[0025] In the second aspect, an embodiment of the present application provides a middleware troubleshooting system, the system comprising a first data acquisition module, a first calculation module, a second calculation module and a third calculation module; the first data acquisition module is used to acquire first operation data and a first threshold, and send each middleware data request instruction in the first operation data to the corresponding first server, the first operation data comprises multiple middleware data request instructions, the first threshold is the longest time for the first server to respond to the middleware data request instruction; the first calculation module is used to detect the response time of the first server corresponding to at least one of the middleware data request instructions, if the response time of the first server corresponding to the middleware data request instruction is greater than the first threshold, then retrieve the addresses of multiple first servers corresponding to the first operation data; the second calculation module is used to find multiple corresponding first servers according to the multiple first server addresses; the third calculation module is used to adjust the parameters of the middleware in each first server corresponding to the first operation data according to the standard parameters, so that the values of the parameters of the middleware in the multiple first servers corresponding to the first operation data are all within the value range of the standard parameters, and the standard parameters are the reference thresholds of the parameters of the middleware corresponding to the first server.
[0026] Optionally, the first calculation module includes:
[0027] A first calculation unit is configured to retrieve the middleware response success rate and a second threshold corresponding to all the middleware data request instructions in the first operation data if the response time of the first server corresponding to the middleware data request instruction is less than or equal to the first threshold, wherein the second threshold is the minimum value of the middleware response success rate, and the middleware response success rate is the proportion of the middleware data request instructions that have been responded to in all the middleware data request instructions;
[0028] a second calculation unit, configured to compare the second threshold with the middleware response success rate, and if the middleware response success rate is less than the second threshold, retrieve addresses of multiple first servers corresponding to the first operation, and find multiple corresponding first servers according to the multiple first server addresses;
[0029] The third calculation unit is used to adjust the parameters of the middleware corresponding to each of the first servers according to the standard parameters, so that the parameter values of the middleware corresponding to the first servers are all within the numerical range of the standard parameters.
[0030] Optionally, the third calculation module includes:
[0031] A first data retrieving unit, configured to retrieve the first operation data and send it to a plurality of corresponding first servers;
[0032] The fourth computing unit is used to detect the response time corresponding to each of the middleware data request instructions in the first operation data. If the response time is less than the first threshold, a fault-resolved instruction is sent. The fault-resolved instruction is an instruction to prompt maintenance personnel that the current fault has been resolved.
[0033] Optionally, the fourth calculation unit includes:
[0034] A first computing subunit is configured to retrieve an exception information resource pool if the response time corresponding to any one of the middleware data request instructions is greater than the first threshold, wherein the exception information resource pool includes a plurality of exception information and a plurality of corresponding exception information processing logics;
[0035] A second computing subunit, used to capture abnormal information corresponding to the current first operation data;
[0036] a third computing subunit, configured to match, in the abnormal information resource pool, an abnormal information processing logic that matches the abnormal information corresponding to the current first operation data, the abnormal information processing logic being an operation code for resetting a plurality of the first servers corresponding to the first operation data;
[0037] The fourth computing subunit is used to reset the parameter settings in the multiple first servers corresponding to the current first operation data according to the matched exception information processing logic.
[0038] Optionally, the fourth computing subunit includes:
[0039] A first data retrieving subunit, configured to retrieve the current first operation data and send it to a plurality of corresponding first servers;
[0040] The fifth computing sub-unit is used to detect the response time corresponding to each of the middleware data request instructions in the current first operation data. If multiple response times corresponding to the current first operation data are all less than the first threshold, a fault resolved instruction is sent. If any one of the response times corresponding to the current first operation data is greater than or equal to the first threshold, a first warning instruction is sent. The first warning instruction is an instruction to prompt maintenance personnel that manual intervention is required to handle the fault.
[0041] Optionally, the third calculation module includes:
[0042] A second data retrieving unit, configured to retrieve parameters of the middleware and the standard parameters in the first server corresponding to the first operation data, wherein the parameters of the middleware include a plurality of configuration parameters, and the standard parameters include a plurality of reference thresholds corresponding to the plurality of configuration parameters one by one;
[0043] A third data retrieving unit, configured to retrieve a configuration parameter and find a reference threshold value corresponding to the configuration parameter in the specification parameter;
[0044] The fifth calculation unit is used for detecting and adjusting: detecting whether the value of the called configuration parameter is within the range of the corresponding reference threshold value; if the value of the called configuration parameter is outside the range of the corresponding reference threshold value, adjusting the value of the called configuration parameter so that the value of the called configuration parameter is within the range of the corresponding reference threshold value; if the value of the called configuration parameter is within the range of the corresponding reference threshold value, calling another configuration parameter that has not been called, and detecting and adjusting the other called configuration parameter until all configuration parameters in the parameters of the middleware are called.
[0045] In a third aspect, an embodiment of the present application provides a middleware troubleshooting device, the device comprising a memory and a processor. The memory is used to store a computer program; the processor is used to implement the steps of the above-mentioned middleware troubleshooting method when executing the computer program.
[0046] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned middleware troubleshooting method are implemented.
[0047] The beneficial effects of the present invention are:
[0048] By monitoring the response time of multiple servers corresponding to the first operation data generated when the user operates in the software interface, the system automatically determines whether the operating parameters of the middleware set on each server, that is, the middleware parameters, are set reasonably. If it is found that the server response time is long, the system automatically resets the middleware operating parameters on the server, that is, the middleware parameters, by referring to the standard parameters, thereby automatically troubleshooting and repairing some daily problems of the middleware, avoiding manual troubleshooting and repair, and greatly improving the efficiency of middleware problem handling.
[0049] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 It is a schematic diagram of a flow chart of a method for troubleshooting a middleware fault described in an embodiment of the present invention;
[0052] Figure 2 It is a schematic diagram of the structure of a middleware fault troubleshooting system described in an embodiment of the present invention;
[0053] Figure 3 It is a schematic diagram of the structure of a middleware troubleshooting device described in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0055] It should be noted that similar reference numerals or letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0056] Example 1
[0057] like Figure 1 As shown, this embodiment provides a middleware troubleshooting method, which includes step S1, step S2, step S3 and step S4.
[0058] Step S1. Acquire first operation data and a first threshold, and send each middleware data request instruction in the first operation data to the corresponding first server, wherein the first operation data includes a plurality of the middleware data request instructions, and the first threshold is the longest time for the first server to respond to the middleware data request instruction;
[0059] When a user uses the software on a mobile phone or computer, the relevant operations on the software interface cause the software to generate relevant operation data, namely the first operation data described in this embodiment. The data requested by each first operation data is diverse and is stored in multiple different servers used to support the software functions. The first operation data includes multiple data request instructions, namely middleware data request instructions, and the middleware installed on the server can call the relevant data on the server according to the data request instructions.
[0060] Step S2. Detecting the response time of the first server corresponding to at least one of the middleware data request instructions, if the response time of the first server corresponding to the middleware data request instruction is greater than the first threshold, retrieving the addresses of multiple first servers corresponding to the first operation data;
[0061] Since a first operation data includes many middleware data request instructions, the system will not detect each one when detecting the response time. This method is used to reduce the computer's workload. Instead, a few instructions are randomly selected for detection. If the response time of the first server corresponding to the middleware data request instruction is randomly detected to be greater than the first threshold, the system determines that at least one of the multiple first servers corresponding to the current first operation data has a problem with the middleware setting parameters, i.e., the parameters of the middleware. At this time, the system will retrieve the IP addresses of all first servers corresponding to the current first operation data, and find the corresponding first server based on the IP address. The middleware setting parameters may be the maximum memory size occupied by the first server, the maximum percentage of the CPU performance occupied by the first server, etc.
[0062] Step S3. Find multiple corresponding first servers according to the multiple first server addresses;
[0063] Step S4. Adjust the parameters of the middleware in the first server corresponding to each of the first operation data according to the standard parameters, so that the values of the parameters of the middleware in multiple first servers corresponding to the first operation data are all within the value range of the standard parameters, and the standard parameters are the reference threshold values of the parameters of the middleware corresponding to the first server.
[0064] The middleware setting parameters in each server at the above IP address are compared with the standard parameters in turn. If one of the middleware setting parameters in the server at the above IP address is not within the reference range given by the standard parameters, the parameter is modified to be within the reference range given by the standard parameters.
[0065] In a specific implementation of the present disclosure, after step S2, step S21, step S22 and step S23 may also be included.
[0066] Step S21. If the response time of the first server corresponding to the middleware data request instruction is less than or equal to the first threshold, retrieve the middleware response success rate and the second threshold corresponding to all the middleware data request instructions in the first operation data, where the second threshold is the minimum value of the middleware response success rate, and the middleware response success rate is the proportion of the middleware data request instructions that have been responded to in all the middleware data request instructions;
[0067] Since the detection of response time is randomly selected and does not have comprehensive coverage, the system detects the response success rate of all the middleware data request instructions in each first operation data while randomly detecting the response time, and then comprehensively detects the middleware response situation of a first operation data from another direction. If the middleware response success rate in a first operation data is lower than the second threshold, the system determines that there is a problem with the middleware setting parameters of the multiple first servers corresponding to the first operation data. At this time, the system will call the IP addresses of all the first servers corresponding to the current first operation data, and find the corresponding first server based on the IP address. The middleware setting parameters can be the maximum memory size occupied by the first server, the maximum percentage of the CPU performance occupied by the first server, etc.
[0068] Step S22: comparing the second threshold and the middleware response success rate, if the middleware response success rate is less than the second threshold, retrieving the addresses of multiple first servers corresponding to the first operation, and finding multiple corresponding first servers according to the multiple first server addresses;
[0069] Step S23: adjusting the parameters of the middleware corresponding to each of the first servers according to the standard parameters, so that the parameter values of the middleware corresponding to the first servers are all within the numerical range of the standard parameters.
[0070] At this time, the middleware setting parameters in each server on the above IP address are compared with the standard parameters in turn. If one of the middleware setting parameters in the server on the above IP address is not within the reference range given by the standard parameters, the parameter is modified so that it is within the reference range given by the standard parameters.
[0071] In a specific implementation of the present disclosure, after step S4, step S41 and step S42 may also be included.
[0072] Step S41. Retrieve the first operation data and send it to a plurality of corresponding first servers;
[0073] Step S42. Detect the response time corresponding to each of the middleware data request instructions in the first operation data. If the response time is less than the first threshold, send a fault-resolved instruction, which is an instruction to prompt maintenance personnel that the current fault has been resolved.
[0074] The above steps are used to check whether the modification of the middleware setting parameters has solved the problem of the middleware data request instruction response timeout, and the test is to detect the response time of each middleware data request in the first operation data to prevent missed detection.
[0075] In a specific implementation of the present disclosure, after step S42, step S421, step S422, step S423 and step S424 may be further included.
[0076] Step S421. If the response time corresponding to any one of the middleware data request instructions is greater than the first threshold, call an exception information resource pool, the exception information resource pool includes multiple exception information and multiple corresponding exception information processing logics;
[0077] The situation described in this implementation is that after the middleware parameters in the first server are adjusted through standard parameters, the response time corresponding to the middleware data request instruction still times out, that is, the processing measure is taken to be greater than the first threshold.
[0078] Step S422. Capture the abnormal information corresponding to the current first operation data;
[0079] The capturing of the abnormal information corresponding to the current first operation data includes checking the middleware, operating system, application log information, checking the internal status information of the middleware, etc.; wherein
[0080] The captured abnormal states include: operating system CPU, memory abnormalities, middleware memory overflow abnormalities, middleware thread suspension abnormalities, middleware SSL handshake abnormalities, middleware process open file number abnormalities, middleware process socket port connection abnormalities, http server processing connection number abnormalities, middleware data source connection pool abnormalities, middleware application response time abnormalities, etc.
[0081] Step S423. Matching the exception information processing logic that matches the exception information corresponding to the current first operation data in the exception information resource pool, the exception information processing logic is to reset the operation codes of the first server corresponding to the first operation data;
[0082] Step S424: Reset the parameter settings in the multiple first servers corresponding to the current first operation data according to the matched exception information processing logic.
[0083] If exception information is captured, the problem of the first server is processed according to the exception information processing logic.
[0084] In a specific implementation of the present disclosure, after step S424, step S4241 and step S4242 may also be included.
[0085] Step S4241. Retrieve the current first operation data and send it to a plurality of corresponding first servers;
[0086] Step S4242. Detect the response time corresponding to each of the middleware data request instructions in the current first operation data. If multiple response times corresponding to the current first operation data are all less than the first threshold, send a fault resolved instruction. If any one of the response times corresponding to the current first operation data is greater than or equal to the first threshold, send a first warning instruction. The first warning instruction is an instruction to prompt maintenance personnel that manual intervention is required to handle the fault.
[0087] This implementation explains that after the exception information is discovered and captured, and the problem of the first server is resolved according to the exception information processing logic, it is necessary to re-run the first operation data that generated the exception information, and detect the response time corresponding to each middleware data request instruction in the first operation data to determine whether the exception problem has been resolved. If it is still not resolved, a manual maintenance request instruction is sent to request professional personnel to troubleshoot and repair the problem.
[0088] In a specific implementation of the present disclosure, after step S4, step S43, step S44 and step S45 may also be included.
[0089] Step S43. Retrieve the parameters of the middleware and the standard parameters in the first server corresponding to the first operation data, wherein the parameters of the middleware include a plurality of configuration parameters, and the standard parameters include a plurality of reference thresholds corresponding to the plurality of configuration parameters one by one;
[0090] Step S44. Retrieve a configuration parameter and find a reference threshold value corresponding to the configuration parameter in the specification parameters;
[0091] Step S45. Detection and adjustment: Detect whether the value of the called configuration parameter is within the range of the corresponding reference threshold value. If the value of the called configuration parameter is outside the range of the corresponding reference threshold value, adjust the value of the called configuration parameter so that the value of the called configuration parameter is within the range of the corresponding reference threshold value. If the value of the called configuration parameter is within the range of the corresponding reference threshold value, call another configuration parameter that has not been called, and detect and adjust the other called configuration parameter until all configuration parameters in the parameters of the middleware are called.
[0092] This embodiment discloses a method for detecting and modifying the parameters of the middleware in the first server corresponding to the first operation data according to the configuration parameters.
[0093] When dealing with daily problems of middleware, the usual means is to have middleware professional operation and maintenance personnel handle them personally. This processing method has a high reliance on the technical skills of the personnel and has certain technical barriers. In addition, manual troubleshooting requires manual viewing of different logs, information, etc., which takes a long time to process and has low efficiency. The method disclosed in this embodiment monitors the response time of multiple servers corresponding to the first operation data generated when the user operates in the software interface, and then automatically determines whether the operating parameters of the middleware set on each server, that is, the middleware parameters, are reasonably set. If it is found that the server response time is long, the system automatically resets the middleware operating parameters on the server, that is, the middleware parameters, by referring to the standard parameters, thereby automatically troubleshooting and repairing some daily problems of the middleware, avoiding manual troubleshooting and repair, and greatly improving the efficiency of middleware problem handling.
[0094] Example 2
[0095] like Figure 2 As shown, this embodiment provides a middleware fault troubleshooting system, the system includes a first data acquisition module 71, a first calculation module 72, a second calculation module 73 and a third calculation module 74;
[0096] A first data acquisition module 71 is used to acquire first operation data and a first threshold, and send each intermediate data request instruction in the first operation data to a corresponding first server, wherein the first operation data includes a plurality of the intermediate data request instructions, and the first threshold is the longest time for the first server to respond to the intermediate data request instruction;
[0097] A first calculation module 72 is used to detect a response time of the first server corresponding to at least one of the middleware data request instructions, and if the response time of the first server corresponding to the middleware data request instruction is greater than the first threshold, retrieve addresses of multiple first servers corresponding to the first operation data;
[0098] A second calculation module 73, configured to find a plurality of corresponding first servers according to the plurality of first server addresses;
[0099] The third calculation module 74 is used to adjust the parameters of the middleware in the first server corresponding to each of the first operation data according to the standard parameters, so that the values of the parameters of the middleware in multiple first servers corresponding to the first operation data are all within the value range of the standard parameters, and the standard parameters are the reference threshold values of the parameters of the middleware corresponding to the first server.
[0100] In a specific implementation of the present disclosure, the first calculation module 72 includes:
[0101] The first calculation unit 721 is used to retrieve the middleware response success rate and the second threshold corresponding to all the middleware data request instructions in the first operation data if the response time of the first server corresponding to the middleware data request instruction is less than or equal to the first threshold, wherein the second threshold is the minimum value of the middleware response success rate, and the middleware response success rate is the proportion of the middleware data request instructions that have been responded to in all the middleware data request instructions;
[0102] The second calculation unit 722 is used to compare the second threshold with the middleware response success rate, and if the middleware response success rate is less than the second threshold, retrieve addresses of multiple first servers corresponding to the first operation, and find multiple corresponding first servers according to the multiple first server addresses;
[0103] The third calculation unit 723 is used to adjust the parameters of the middleware corresponding to each of the first servers according to the standard parameters, so that the parameter values of the middleware corresponding to the first servers are all within the numerical range of the standard parameters.
[0104] In a specific implementation of the present disclosure, the third calculation module 74 includes:
[0105] A first data retrieving unit 741 is used to retrieve the first operation data and send it to a plurality of corresponding first servers;
[0106] The fourth calculation unit 742 is used to detect the response time corresponding to each of the middleware data request instructions in the first operation data. If the response time is less than the first threshold, a fault-resolved instruction is sent. The fault-resolved instruction is an instruction to prompt the maintenance personnel that the current fault has been resolved.
[0107] In a specific implementation of the present disclosure, the fourth calculation unit 742 includes:
[0108] The first calculation subunit 7421 is used to call an abnormal information resource pool if the response time corresponding to any one of the middleware data request instructions is greater than the first threshold, the abnormal information resource pool including multiple abnormal information and multiple corresponding abnormal information processing logics;
[0109] The second calculation subunit 7422 is used to capture the abnormal information corresponding to the current first operation data;
[0110] The third computing subunit 7423 is configured to match, in the abnormal information resource pool, an abnormal information processing logic that matches the abnormal information corresponding to the current first operation data, wherein the abnormal information processing logic is an operation code for resetting a plurality of the first servers corresponding to the first operation data;
[0111] The fourth computing subunit 7424 is configured to reset parameter settings in the plurality of first servers corresponding to the current first operation data according to the matched exception information processing logic.
[0112] In a specific implementation of the present disclosure, the fourth calculation subunit 7424 includes:
[0113] The first data retrieving subunit 74241 is used to retrieve the current first operation data and send it to a plurality of corresponding first servers;
[0114] The fifth computing sub-unit 74242 is used to detect the response time corresponding to each of the middleware data request instructions in the current first operation data. If multiple response times corresponding to the current first operation data are all less than the first threshold, a fault resolved instruction is sent. If any one of the response times corresponding to the current first operation data is greater than or equal to the first threshold, a first warning instruction is sent. The first warning instruction is an instruction to prompt maintenance personnel that manual intervention is required to handle the fault.
[0115] In a specific implementation of the present disclosure, the third calculation module 74 includes:
[0116] A second data retrieving unit 743 is used to retrieve a parameter of the middleware and the standard parameter in the first server corresponding to the first operation data, wherein the parameter of the middleware includes a plurality of configuration parameters, and the standard parameter includes a plurality of reference thresholds corresponding to the plurality of configuration parameters one by one;
[0117] A third data retrieving unit 744 is used to retrieve a configuration parameter and find a reference threshold value corresponding to the configuration parameter in the specification parameter;
[0118] The fifth calculation unit 745 is used for detection and adjustment: detecting whether the value of the called configuration parameter is within the range of the corresponding reference threshold value; if the value of the called configuration parameter is outside the range of the corresponding reference threshold value, adjusting the value of the called configuration parameter so that the value of the called configuration parameter is within the range of the corresponding reference threshold value; if the value of the called configuration parameter is within the range of the corresponding reference threshold value, calling another configuration parameter that has not been called, and detecting and adjusting the other called configuration parameter until all configuration parameters in the parameters of the middleware are called.
[0119] It should be noted that, regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0120] Example 3
[0121] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a middleware troubleshooting device. The middleware troubleshooting device described below and the middleware troubleshooting method described above can refer to each other.
[0122] Figure 3 FIG. 8 is a block diagram of a middleware troubleshooting device 800 according to an exemplary embodiment. Figure 3 As shown, the middleware troubleshooting device 800 may include: a processor 801 and a memory 802. The middleware troubleshooting device 800 may also include one or more of a multimedia component 803, an input / output (I / O) interface 804, and a communication component 805.
[0123] The processor 801 is used to control the overall operation of the middleware troubleshooting device 800 to complete all or part of the steps in the above-mentioned middleware troubleshooting method. The memory 402 is used to store various types of data to support the operation of the middleware troubleshooting device 800, and these data may include, for example, instructions for any application or method operating on the middleware troubleshooting device 800, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 802 or sent via the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, etc. These buttons can be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the middleware troubleshooting device 800 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 805 can include: Wi-Fi module, Bluetooth module, NFC module.
[0124] In an exemplary embodiment, the middleware troubleshooting device 800 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned middleware troubleshooting method.
[0125] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned middleware troubleshooting method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 802 including program instructions, and the above-mentioned program instructions can be executed by the processor 801 of the middleware troubleshooting device 800 to complete the above-mentioned middleware troubleshooting method.
[0126] Example 4
[0127] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a readable storage medium. The readable storage medium described below and the middleware troubleshooting method described above can refer to each other.
[0128] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the middleware troubleshooting method of the above method embodiment.
[0129] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.
[0130] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for troubleshooting middleware, characterized in that: include: Acquire first operation data and a first threshold, and send each middleware data request instruction in the first operation data to the corresponding first server, wherein the first operation data includes a plurality of the middleware data request instructions, and the first threshold is the longest time for the first server to respond to the middleware data request instruction; Detecting a response time of the first server corresponding to at least one of the middleware data request instructions, and if the response time of the first server corresponding to the middleware data request instruction is greater than the first threshold, retrieving addresses of multiple first servers corresponding to the first operation data; Finding a plurality of corresponding first servers according to the plurality of first server addresses; Adjust the parameters of the middleware in the first server corresponding to each of the first operation data according to the standard parameters, so that the values of the parameters of the middleware in multiple first servers corresponding to the first operation data are all within the value range of the standard parameters, and the standard parameters are the reference threshold values of the parameters of the middleware corresponding to the first server.
2. The middleware troubleshooting method according to claim 1, characterized in that: After detecting the response time of the first server corresponding to at least one of the middleware data request instructions, the method further includes: If the response time of the first server corresponding to the middleware data request instruction is less than or equal to the first threshold, retrieve the middleware response success rate and the second threshold corresponding to all the middleware data request instructions in the first operation data, where the second threshold is the minimum value of the middleware response success rate, and the middleware response success rate is the proportion of the middleware data request instructions that have been responded to in all the middleware data request instructions; Comparing the second threshold with the middleware response success rate, if the middleware response success rate is less than the second threshold, retrieving addresses of multiple first servers corresponding to the first operation, and finding multiple corresponding first servers according to the multiple first server addresses; The parameters of the middleware corresponding to each of the first servers are adjusted according to the standard parameters, so that the parameter values of the middleware corresponding to the first servers are all within the numerical range of the standard parameters.
3. The middleware troubleshooting method according to claim 1, characterized in that: After adjusting the parameters of the middleware in the first server corresponding to each of the first operation data according to the specification parameters, the method further includes: Retrieving the first operation data and sending it to a plurality of corresponding first servers; The response time corresponding to each of the middleware data request instructions in the first operation data is detected. If the response time is less than the first threshold, a fault-solved instruction is sent. The fault-solved instruction is an instruction to prompt maintenance personnel that the current fault has been solved.
4. The middleware troubleshooting method according to claim 3, characterized in that: After detecting the response time corresponding to each of the middleware data request instructions in the first operation data, the method further includes: If the response time corresponding to any one of the middleware data request instructions is greater than the first threshold, calling an exception information resource pool, the exception information resource pool including a plurality of exception information and a plurality of corresponding exception information processing logics; Capturing abnormal information corresponding to the current first operation data; Matching an exception information processing logic that matches the exception information corresponding to the current first operation data in the exception information resource pool, the exception information processing logic being an operation code for resetting a plurality of the first servers corresponding to the first operation data; Reset the parameter settings in the multiple first servers corresponding to the current first operation data according to the matched exception information processing logic.
5. The middleware troubleshooting method according to claim 4, characterized in that: After resetting the parameter settings in the plurality of first servers corresponding to the current first operation data, the method further includes: Retrieving the current first operation data and sending it to a plurality of corresponding first servers; Detect the response time corresponding to each of the middleware data request instructions in the current first operation data. If multiple response times corresponding to the current first operation data are all less than the first threshold, send a fault resolved instruction. If any one of the response times corresponding to the current first operation data is greater than or equal to the first threshold, send a first warning instruction. The first warning instruction is an instruction to prompt maintenance personnel that manual intervention is required to handle the fault.
6. The middleware troubleshooting method according to claim 1, characterized in that: The step of adjusting the parameters of the middleware in each of the first servers according to the specification parameters includes: Retrieving a parameter of the middleware and the standard parameter in the first server corresponding to the first operation data, wherein the parameter of the middleware includes a plurality of configuration parameters, and the standard parameter includes a plurality of reference threshold values corresponding to the plurality of configuration parameters one by one; Retrieve a configuration parameter and find a reference threshold value corresponding to the configuration parameter in the specification parameter; Detection and adjustment: Detect whether the value of the called configuration parameter is within the range of the corresponding reference threshold. If the value of the called configuration parameter is outside the range of the corresponding reference threshold, adjust the value of the called configuration parameter so that the value of the called configuration parameter is within the range of the corresponding reference threshold. If the value of the called configuration parameter is within the range of the corresponding reference threshold, call another configuration parameter that has not been called, and detect and adjust the other configuration parameter that has not been called until all configuration parameters in the parameters of the middleware are called.
7. A middleware troubleshooting system, characterized in that: include: A first data acquisition module, configured to acquire first operation data and a first threshold, and send each middleware data request instruction in the first operation data to a corresponding first server, wherein the first operation data includes a plurality of the middleware data request instructions, and the first threshold is a maximum time for the first server to respond to the middleware data request instruction; a first calculation module, configured to detect a response time of the first server corresponding to at least one of the middleware data request instructions, and if the response time of the first server corresponding to the middleware data request instruction is greater than the first threshold, retrieve addresses of multiple first servers corresponding to the first operation data; A second calculation module, configured to find a plurality of corresponding first servers according to the plurality of first server addresses; A third calculation module is used to adjust the parameters of the middleware in the first server corresponding to each of the first operation data according to standard parameters, so that the values of the parameters of the middleware in multiple first servers corresponding to the first operation data are all within the value range of the standard parameters, and the standard parameters are the reference threshold values of the parameters of the middleware corresponding to the first server.
8. A middleware troubleshooting system according to claim 7, characterized in that: The first calculation module includes: A first calculation unit is configured to retrieve the middleware response success rate and a second threshold corresponding to all the middleware data request instructions in the first operation data if the response time of the first server corresponding to the middleware data request instruction is less than or equal to the first threshold, wherein the second threshold is the minimum value of the middleware response success rate, and the middleware response success rate is the proportion of the middleware data request instructions that have been responded to in all the middleware data request instructions; a second calculation unit, configured to compare the second threshold with the middleware response success rate, and if the middleware response success rate is less than the second threshold, retrieve addresses of multiple first servers corresponding to the first operation, and find multiple corresponding first servers according to the multiple first server addresses; The third calculation unit is used to adjust the parameters of the middleware corresponding to each of the first servers according to the standard parameters, so that the parameter values of the middleware corresponding to the first servers are all within the numerical range of the standard parameters.
9. A middleware troubleshooting system according to claim 7, characterized in that: The third calculation module includes: A first data retrieving unit, configured to retrieve the first operation data and send it to a plurality of corresponding first servers; The fourth computing unit is used to detect the response time corresponding to each of the middleware data request instructions in the first operation data. If the response time is less than the first threshold, a fault-resolved instruction is sent. The fault-resolved instruction is an instruction to prompt maintenance personnel that the current fault has been resolved.
10. A middleware troubleshooting system according to claim 9, characterized in that: The fourth calculation unit comprises: A first computing subunit is configured to retrieve an exception information resource pool if the response time corresponding to any one of the middleware data request instructions is greater than the first threshold, wherein the exception information resource pool includes a plurality of exception information and a plurality of corresponding exception information processing logics; A second computing subunit, used to capture abnormal information corresponding to the current first operation data; a third computing subunit, configured to match, in the abnormal information resource pool, an abnormal information processing logic that matches the abnormal information corresponding to the current first operation data, the abnormal information processing logic being an operation code for resetting a plurality of the first servers corresponding to the first operation data; The fourth computing subunit is used to reset the parameter settings in the multiple first servers corresponding to the current first operation data according to the matched exception information processing logic.
11. A middleware troubleshooting system according to claim 10, characterized in that: The fourth computing subunit comprises: A first data retrieving subunit, configured to retrieve the current first operation data and send it to a plurality of corresponding first servers; The fifth computing sub-unit is used to detect the response time corresponding to each of the middleware data request instructions in the current first operation data. If multiple response times corresponding to the current first operation data are all less than the first threshold, a fault resolved instruction is sent. If any one of the response times corresponding to the current first operation data is greater than or equal to the first threshold, a first warning instruction is sent. The first warning instruction is an instruction to prompt maintenance personnel that manual intervention is required to handle the fault.
12. A middleware troubleshooting system according to claim 7, characterized in that: The third calculation module includes: A second data retrieving unit, configured to retrieve parameters of the middleware and the standard parameters in the first server corresponding to the first operation data, wherein the parameters of the middleware include a plurality of configuration parameters, and the standard parameters include a plurality of reference thresholds corresponding to the plurality of configuration parameters one by one; A third data retrieving unit, configured to retrieve a configuration parameter and find a reference threshold value corresponding to the configuration parameter in the specification parameter; The fifth calculation unit is used for detecting and adjusting: detecting whether the value of the called configuration parameter is within the range of the corresponding reference threshold value; if the value of the called configuration parameter is outside the range of the corresponding reference threshold value, adjusting the value of the called configuration parameter so that the value of the called configuration parameter is within the range of the corresponding reference threshold value; if the value of the called configuration parameter is within the range of the corresponding reference threshold value, calling another configuration parameter that has not been called, and detecting and adjusting the other configuration parameter that has not been called, until all configuration parameters in the parameters of the middleware are called.
13. A middleware troubleshooting device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the middleware troubleshooting method as claimed in any one of claims 1 to 6 when executing the computer program.
14. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the middleware troubleshooting method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and system for middleware business troubleshooting
CN104581794A
Message middleware online and offline methods and device, equipment and readable storage medium
CN110474917A
Fault application server isolation method and device, electronic equipment and storage medium
CN113127201A
Dynamic middleware source selection for optimizing data retrieval from network nodes
US10447807B1
Cognitive analytics for high-availability application-performance management
US20200371901A1
