CN116069591A - Interface performance monitoring method, device, equipment and storage medium - Google Patents

Interface performance monitoring method, device, equipment and storage medium Download PDF

Info

Publication number
CN116069591A
CN116069591A CN202310054363.2A CN202310054363A CN116069591A CN 116069591 A CN116069591 A CN 116069591A CN 202310054363 A CN202310054363 A CN 202310054363A CN 116069591 A CN116069591 A CN 116069591A
Authority
CN
China
Prior art keywords
interface
target
performance
determining
time
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
CN202310054363.2A
Other languages
Chinese (zh)
Inventor
刘浩
孔庆新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing BlueSky Technologies Co Ltd
Original Assignee
Beijing BlueSky Technologies 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 BlueSky Technologies Co Ltd filed Critical Beijing BlueSky Technologies Co Ltd
Priority to CN202310054363.2A priority Critical patent/CN116069591A/en
Publication of CN116069591A publication Critical patent/CN116069591A/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/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Abstract

The embodiment of the invention provides an interface performance monitoring method, device, equipment and storage medium, relating to the technical field of computers, and specifically comprising the following steps: responding to an access request of a user for a target interface providing business service, and recording response time of the target interface for responding to the access request; determining a target time threshold value which represents that the target interface has a performance problem in preset time thresholds of all levels based on the service type of the service provided by the target interface; and detecting whether the target interface has a performance problem or not based on the relation between the response time and the target time threshold. By applying the scheme provided by the embodiment of the invention, the efficiency of positioning the interface performance problem can be improved.

Description

Interface performance monitoring method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for monitoring interface performance.
Background
Various business systems provide business services for users by providing interfaces corresponding to different business scenes. In the process of providing business services, the interface may generate performance problems due to the occurrence of special conditions such as unstable network connection, and cannot normally communicate with users requesting business services, so that the business system is affected to provide business services for the users. In this case, the business system is typically manually inspected by a developer or an operation and maintenance person to locate interfaces that present performance problems. However, when the request amount of the access interface becomes large, the number of interfaces to be checked by a developer or an operation and maintenance person is too large, and it is difficult to quickly locate the interface having a problem, and the locating efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide an interface performance monitoring method, device and equipment and a storage medium so as to improve the efficiency of positioning interface performance problems. The specific technical scheme is as follows:
the embodiment of the invention provides an interface performance monitoring method, which comprises the following steps:
responding to an access request of a user for a target interface providing business service, and recording response time of the target interface for responding to the access request;
determining a target time threshold value which represents that the target interface has a performance problem in preset time thresholds of all levels based on the service type of the service provided by the target interface;
and detecting whether the target interface has a performance problem or not based on the relation between the response time and the target time threshold.
The embodiment of the invention also provides an interface performance monitoring device, which comprises:
the response time recording module is used for responding to an access request of a user to a target interface for providing business service and recording the response time of the target interface for responding to the access request;
the first threshold determining module is used for determining a target time threshold which represents that the target interface has a performance problem in preset time thresholds at all levels based on the service type of the service provided by the target interface;
and the first performance detection module is used for detecting whether the target interface has a performance problem or not based on the relation between the response time and the target time threshold.
The embodiment of the invention also provides electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface, and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the interface performance monitoring method when executing the program stored in the memory.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program realizes the interface performance monitoring method when being executed by a processor.
The embodiment of the invention also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the interface performance monitoring method.
The embodiment of the invention has the beneficial effects that:
in the scheme provided by the embodiment of the invention, the response time is recorded when each target interface responds to the access request of the user, so that the response time can be obtained in real time, and the performance of the interface can be monitored in time. And the multi-level time threshold is set according to different service types of the interfaces, the target time threshold corresponding to the service type of the service provided by the target interface is selected, and whether the response time of each interface is within the reasonable response time range specified by the target time threshold and aiming at the service is judged, so that the interfaces with performance problems can be rapidly positioned by monitoring the response time in real time, the performance problems of the positioned interfaces can be conveniently and further checked, and the efficiency of positioning the performance problems of the interfaces is improved.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other embodiments may be obtained according to these drawings to those skilled in the art.
Fig. 1 is a flow chart of an interface performance monitoring method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a service system according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an interface performance monitoring device according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, those of ordinary skill in the art will be able to devise all other embodiments that are obtained based on this application and are within the scope of the present invention.
In order to improve efficiency of locating interface performance problems, embodiments of the present invention provide an interface performance monitoring method, device, apparatus and storage medium, which are described below.
In one embodiment of the present invention, referring to fig. 1, a flow chart of an interface performance monitoring method is provided, and the method includes the following steps S101-S103.
Step S101: responsive to a user's access request to a target interface providing a business service, a response time of the target interface to respond to the access request is recorded.
The access request is a request to obtain a business service provided by the interface. The business service may be providing audio and video information, inquiring a database, and the like, which is not limited by the embodiment of the present invention.
The target interface is an interface specified by the user's access request.
When the business system is constructed, interfaces capable of providing business services for users can be set, and for each set interface, a response mode for designating the response of the interface to the possibly received access request can be realized through a program. For example, the response mode may be to return service data specified by the access request, or return a piece of response information, etc.
The response time represents the time that elapses from the receipt of the user's access request to the transmission of the above arbitrary form of presentation response information to the user. Specifically, the response time can be obtained as follows:
generating a log for the interactive information contained in the response process of receiving the access request and responding to the access request in real time, wherein the log can record the occurrence time of each interactive action contained in the received access request and the interactive information in the process, so that the response time can be obtained based on the log.
In addition, the log may be used to record the target interfaces for which performance problems have been detected. That is, when the scheme provided by the embodiment of the invention detects a target interface with a problem, interface information representing the target interface and a detected performance problem of the target interface can be recorded in a log in real time.
Specifically, log recording tools such as log4j can be adopted, and the interface is set to trigger log recording when receiving a response request until the response is completed.
Step S102: and determining a target time threshold value which represents that the target interface has a performance problem in preset time thresholds at all levels based on the service type of the service provided by the target interface.
Each business service corresponds to a different service type, and different types of services can correspond to different time thresholds. In this case, a time threshold value indicating that the target interface has a performance problem may be selected as the target time threshold value according to the service type. For example, the service corresponding to the database query requires a longer time than the service that responds directly in the interface, in which case a longer target time threshold may be set for the former and a shorter target time threshold for the latter.
In general, the multi-level time threshold may be preset in terms of time periods of different lengths. The time threshold may be a single time, e.g., less than 5 seconds, less than 10 seconds, less than 1 minute, or multiple times, e.g., 5-10 seconds, 20-30 seconds, etc., as boundary conditions, as embodiments of the present invention are not limited in this respect.
Step S103: based on the relationship between the response time and the target time threshold, whether the target interface has a performance problem is detected.
Specifically, the magnitude relation between the response time and the target time threshold can be compared, and if the response time is smaller than the target time threshold or is within a time range limited by the target time threshold, it is determined that the target interface has no performance problem; otherwise, determining that the performance problem exists in the detected target interface.
In view of the above, in the scheme provided by the embodiment of the invention, the response time is recorded when each target interface responds to the access request of the user, so that the response time can be obtained in real time, and the performance of the interface can be monitored in time. And the multi-level time threshold is set according to different service types of the interfaces, the target time threshold corresponding to the service type of the service provided by the target interface is selected, and whether the response time of each interface is within the reasonable response time range specified by the target time threshold and aiming at the service is judged, so that the interfaces with performance problems can be rapidly positioned by monitoring the response time in real time, the performance problems of the positioned interfaces can be conveniently and further checked, and the efficiency of positioning the performance problems of the interfaces is improved.
In one embodiment of the invention, the affected devices may also be determined simultaneously when locating the interfaces for performance issues. The specific implementation mode is as follows:
obtaining attribute parameters of the access request; and determining the target equipment affected by the performance problem according to the obtained attribute parameters.
The attribute parameter is information describing the attribute of the access request, and specifically may be a user name, an interface name, identification information of a device sending the access request, a query parameter carried in the access request, and the like.
In this case, the attribute parameter is searched for identification information of the device, for example, identification information of the device, a device name, or the like, and the device represented by the identification information is a device affected by the performance problem, that is, a target device.
In this case, not only the performance problem but also the target device affected by the performance problem can be determined, so that the optimization mode of the target interface is conveniently set according to the characteristics of the target device.
For example, when optimizing the target interface, a flow of compressing service data needs to be added to the target interface, so as to reduce the service transmission amount of the target interface to the target device used by the user.
In this case, some compression formats that can be used on a personal computer may not be supported on a mobile device, and therefore, in the case where the target device is a personal computer and the target device is a mobile device, different data compression methods are required as the optimization methods.
In one embodiment of the present invention, the method detects multiple target interfaces of a service system, and in the case of detecting more than one interface, the order of optimizing the performance of the detected target interfaces may be arranged as follows:
if the performance problem of the target interface is detected, determining the priority of the performance problem of the target interface based on the relative length relation between the target time threshold and other time thresholds in the time thresholds of all levels; and determining the order of optimizing the interface performance of the target interfaces according to the determined priority.
The relative length relation between the target time threshold and other time thresholds in the time thresholds of each level is that the target time threshold is determined to be located at a certain level in the time thresholds of each level according to the length between the time thresholds of each level, so that the priority of the target time threshold is determined to be higher than the other time threshold which is shorter than the time defined by the target time threshold and lower than the other time threshold which is longer than the time defined by the target time threshold. This relatively prioritizes performance issues for the target interface.
For example, with the foregoing embodiment, if there are time thresholds of 5-10 seconds, 20-30 seconds, etc., the time defined by the thresholds of 20-30 seconds is longer than the time defined by the thresholds of 5-10 seconds, i.e., the priority is higher.
The higher the priority, the more serious the performance problem of the target interface. Therefore, the target interface precedes the interface having the performance problem and having the lower priority in the order of performing the interface performance optimization according to the priority thereof.
When the performance optimization is specifically performed, the target interface and the interactive information representing the response process can be displayed to maintenance personnel in sequence according to the priority, and the operation and maintenance personnel determine the optimization method for the optimization, so that the target interface is subjected to the optimization according to the determined optimization method.
Therefore, the interfaces with performance problems can be optimized according to the priority, so that the interfaces with serious performance problems, which are represented by high priority, are optimized, and the stability of the service system where the interfaces are positioned is improved more efficiently.
In one embodiment of the invention, after locating the performance problem and optimizing, the optimizable interface can be further found as follows:
acquiring target attribute parameters recorded in a log, wherein the target attribute parameters are used for describing interaction information contained in a response process of a target interface for responding to an access request; re-determining a target time threshold based on the target attribute parameter; and responding to the similar access requests received by the target interface, and detecting whether the target interface has a performance problem or not based on response time for responding to the similar access requests and a redetermined target time threshold, wherein the similar access requests are the same as the service types of the services requested by the access requests.
The target attribute parameter is a parameter describing a response process, and is obtained according to the interaction information of the interaction behavior processed by the interface when the access request is received and the response is performed for the access request, for example, the parameter can record the content, response time, data type of service and the like of service data required to be acquired by the access request.
Under the condition of re-determining the target time threshold, one of the smaller other time thresholds set by the boundary value can be selected as a new target time threshold according to the interaction information, and the selection can be performed according to the time required by the interface to process the business service when the new target time threshold is specifically selected, for example, the service name of the business service provided by the interface can be recorded in the interaction information, and then the other target time threshold which is close to the experience value is determined as the new target time threshold according to the preset experience value corresponding to the time of responding to the service name.
The same kind of access request is the same as the service type requested by the access request in step S101, so there is a similar response time in the case where the interface performance is normal. Thus, by detecting a plurality of requests and responses of the same service type, it can be determined whether or not abnormality is generated in the performance of the interface during the period in which a plurality of requests are generated. And by resetting the smaller target time threshold, comparing the response time of the similar access request obtained later with the redefined target time threshold, it is determined whether the process of interface performance optimization produces an effect.
The response time of the access request of the same type is obtained in the same manner as the access request in the aforementioned step S101, and the difference is only that the request received by the target interface is different, and will not be described in detail here.
In the above manner, multiple detections may be made for multiple response requests of a service type, thereby detecting whether the performance of the interface remains stable in the case of providing multiple business services.
In the foregoing step S103, when detecting whether the target interface has a performance problem, the filtering condition set for the response time may be detected, and the specific implementation manner is as follows:
in one embodiment of the invention, if the response time is not within the range defined by the target time threshold, judging whether the scene condition for acquiring the response time accords with the filtering condition set for the response time;
if yes, determining that the target interface has a performance problem.
The scene condition is a factor employed to determine whether the response time can represent a performance problem. In particular, the scene condition may be a condition set according to the number of times of response time timeout, where the response time timeout refers to a response time that is not within a defined range of the target time threshold. For example, the scene condition may be an accumulated number of response time timeouts within 1 hour; the scene condition may be a condition generated based on the time when the response generating the response time occurs.
The filtering condition is a judging condition for judging whether performance problems occur, and if the filtering condition is not met, the filtering target interface does not detect. Different according to scene conditions. For example, if the scene condition is a condition set according to the number of times of response time timeout, the filtering condition may be set as: judging whether the overtime times of the response time exceeds a preset time threshold, and if not, filtering the target interface without detection; for another example, if the scene condition is a condition generated according to the time when the response generating the response time occurs, the filtering condition may be set as: and judging whether the time period of the response occurs is within the time period corresponding to the business peak period preset for the business system, and if not, not detecting the filtering target interface.
From the above, different filtering conditions can be set according to the scene, and the performance problem which actually affects the user can be determined, so that the interface with the performance problem can be better positioned.
In the foregoing embodiment, in the case of recording the interface with the performance problem through the log, the user may query the interface information of the interface with the performance problem recorded in the log through the preset user interface, so that the manual inspection may be performed based on the interface information, and the optimization mode of the interface with the performance problem may be determined.
The specific implementation mode is as follows:
obtaining a query request input from a user interface; obtaining interface information of the performance abnormality interface recorded in the log; determining a performance abnormality interface of which the interface information accords with the query condition of the query request; and sending the interface information of the determined abnormal performance interface to a user interface.
The log may be used to record the detected interfaces with performance problems, and specifically, for each interface recorded in the log, the interface information may include the interface name, the detected performance problem, the response time of the interface, the time threshold used for detecting the performance problem, the priority thereof, and other relevant information related to the generated performance problem.
The query request is a request to query the interface specified by the user to have a performance problem. Specifically, the user may specify the interface to be searched by setting the query condition of the query request.
In this case, after receiving the query request, the device managing the log may search the interface information of each abnormal performance interface recorded in the log one by one according to the query condition of the query request, to determine the abnormal performance interface whose interface information meets the query condition. The performance abnormality interface is an interface with detected performance problems. And transmitting the interface information of the determined performance abnormality interface to the user interface.
The following describes a specific implementation of a performance exception interface that determines that the interface information meets the query conditions of the query request.
In the above process, the query condition may be: conditions generated from parameters for which performance problems have been detected, for example, parameters including priority of time thresholds, time periods for which interface performance problems have occurred, and the like. The parameter values of the respective parameters and the corresponding judgment conditions may be specified by the user.
In addition, the query condition may also include an attribute parameter that represents attribute information of the interface, for example, a service type that can be provided by the interface, which is not limited in the embodiment of the present invention.
The log may be recorded with parameters used when detecting performance problems of the performance abnormality interface and attribute parameters of the performance abnormality interface in advance as interface information. Thus, the interface information of the same abnormal performance interfaces is compared with the numerical relation of the parameter values under the same parameter item in the query condition, and whether the interface information accords with the query condition can be judged.
Therefore, the user can inquire the performance abnormality interface to be optimized and having the performance problem based on the log, and can obtain the interface information of the performance abnormality interface as the basis for analyzing the performance problem and optimizing the performance of the interface, thereby being convenient for the user to solve the existing performance problem.
The specific implementation of interface performance monitoring is described below in conjunction with the schematic structural diagram of the business system shown in fig. 2.
As shown, a web (network) terminal is a terminal that transmits an access request on a device used by a user; the web system is a business system for providing network services in the embodiment of the invention. A plurality of business interfaces may be included in the web system, each of which may provide business services of a service type to the outside. And the user obtains the result of service processing in the web system from the response of the interface by sending an access request to access the service interface corresponding to the required service by using the web terminal.
The interface performance log is a log for recording the data processing flow of each service interface in the web system, and can record interaction information and the like contained in the response process of each service interface for responding to the access request.
The web system comprises an interface monitoring module which detects whether each service interface has performance problems or not by reading the performance log of the interface and the response time of each service interface obtained in the log.
The service configuration module records preset time thresholds of business services aiming at different service types, namely time thresholds of all levels in the embodiment. The time threshold in the service configuration module may be set manually.
When the interface performance monitoring is implemented, the interface monitoring module obtains the response time of each target interface for responding to the access request from the interface performance log, and then obtains a time threshold corresponding to the service type of the business service required by the access request from the service configuration module record, and the time threshold is used as a target time threshold, and the length relation between the response time and the target time threshold is compared to detect whether the performance problem exists in the target interface.
Corresponding to the foregoing method embodiment, the embodiment of the present invention further provides an interface performance monitoring device.
Referring to fig. 3, an embodiment of the present invention provides a schematic structural diagram of an interface performance monitoring apparatus, where the apparatus includes:
a response time recording module 301, configured to respond to an access request of a user to a target interface that provides a business service, and record a response time of the target interface to respond to the access request;
a first threshold determining module 302, configured to determine, based on a service type of the service provided by the target interface, a target time threshold that indicates that a performance problem exists in the target interface in preset time thresholds of each level;
a first performance detection module 303, configured to detect whether a performance problem exists in the target interface based on a relationship between the response time and the target time threshold.
In view of the above, in the scheme provided by the embodiment of the invention, the response time is recorded when each target interface responds to the access request of the user, so that the response time can be obtained in real time, and the performance of the interface can be monitored in time. And the multi-level time threshold is set according to different service types of the interfaces, the target time threshold corresponding to the service type of the service provided by the target interface is selected, and whether the response time of each interface is within the reasonable response time range specified by the target time threshold and aiming at the service is judged, so that the interfaces with performance problems can be rapidly positioned by monitoring the response time in real time, the performance problems of the positioned interfaces can be conveniently and further checked, and the efficiency of positioning the performance problems of the interfaces is improved.
In one embodiment of the invention, the apparatus further comprises:
the first parameter obtaining module is used for obtaining the attribute parameters of the access request;
and the target equipment determining module is used for determining the target equipment affected by the performance problem according to the obtained attribute parameters.
In this case, not only the performance problem but also the target device affected by the performance problem can be determined, so that the optimization mode of the target interface is conveniently set according to the characteristics of the target device.
In one embodiment of the invention, the apparatus further comprises:
the priority determining module is used for determining the priority of the performance problem of the target interface based on the relative length relation between the target time threshold and other time thresholds in the time thresholds of all levels if the performance problem of the target interface is detected;
and the optimization sequence determining module is used for determining the sequence for optimizing the interface performance of the target interface according to the determined priority.
Therefore, the interfaces with performance problems can be optimized according to the priority, so that the interfaces with serious performance problems, which are represented by high priority, are optimized, and the stability of the service system where the interfaces are positioned is improved more efficiently.
In one embodiment of the invention, the apparatus further comprises:
the second parameter obtaining module is used for obtaining target attribute parameters recorded in a log, wherein the target attribute parameters are used for describing interaction information contained in a response process of the target interface for responding to the access request;
a second threshold determination module for re-determining the target time threshold based on the target attribute parameter;
and the second performance detection module is used for responding to the similar access requests received by the target interface and detecting whether the target interface has a performance problem or not based on response time for responding to the similar access requests and a redetermined target time threshold, wherein the similar access requests are the same as the service types of the services requested by the access requests.
In the above manner, multiple detections may be made for multiple response requests of a service type, thereby detecting whether the performance of the interface remains stable in the case of providing multiple business services.
In one embodiment of the invention, the apparatus further comprises:
the query module is used for obtaining a query request input from a user interface; obtaining interface information of the performance abnormality interface recorded in the log; determining a performance abnormality interface of which interface information accords with the query condition of the query request;
and sending the interface information of the determined abnormal performance interface to the user interface.
The user can inquire the performance abnormality interface to be optimized and having the performance problem based on the log, and can obtain the interface information of the performance abnormality interface as the basis for analyzing the performance problem and optimizing the performance of the interface, thereby being convenient for the user to solve the existing performance problem.
In one embodiment of the present invention, the first performance detection module is specifically configured to determine whether a scene condition for obtaining the response time meets a filtering condition set for the response time if the response time is not within a range defined by the target time threshold; if yes, determining that the target interface has a performance problem.
From the above, different filtering conditions can be set according to the scene, and the performance problem which actually affects the user can be determined, so that the interface with the performance problem can be better positioned.
The embodiment of the invention also provides an electronic device, as shown in fig. 4, which comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete communication with each other through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement the interface performance monitoring method according to any one of the foregoing embodiments when executing the program stored in the memory 403.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which a computer program is stored, which when executed by a processor implements any of the interface performance monitoring methods described above.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the interface performance monitoring methods of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus, device and storage medium embodiments, the description is relatively simple as it is substantially similar to the method embodiments, with reference to the description of the method embodiments being made in part hereof.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (14)

1. An interface performance monitoring method, the method comprising:
responding to an access request of a user for a target interface providing business service, and recording response time of the target interface for responding to the access request;
determining a target time threshold value which represents that the target interface has a performance problem in preset time thresholds of all levels based on the service type of the service provided by the target interface;
and detecting whether the target interface has a performance problem or not based on the relation between the response time and the target time threshold.
2. The method according to claim 1, wherein the method further comprises:
obtaining attribute parameters of the access request;
and determining the target equipment affected by the performance problem according to the obtained attribute parameters.
3. The method according to claim 1, wherein the method further comprises:
if the performance problem of the target interface is detected, determining the priority of the performance problem of the target interface based on the relative length relation between the target time threshold and other time thresholds in the time thresholds of all levels;
and determining the order of interface performance optimization for the target interfaces according to the determined priority.
4. A method according to any one of claims 1-3, characterized in that the method further comprises:
acquiring target attribute parameters recorded in a log, wherein the target attribute parameters are used for describing interaction information contained in a response process of the target interface for responding to the access request;
re-determining the target time threshold based on the target attribute parameter;
and responding to the similar access requests received by the target interface, and detecting whether the performance problem exists in the target interface or not based on response time for responding to the similar access requests and a redetermined target time threshold, wherein the similar access requests are the same as the service type of the service requested by the access requests.
5. The method according to claim 4, wherein the method further comprises:
obtaining a query request input from a user interface;
obtaining interface information of the performance abnormality interface recorded in the log;
determining a performance abnormality interface of which interface information accords with the query condition of the query request;
and sending the interface information of the determined abnormal performance interface to the user interface.
6. The method of claim 1, wherein the detecting whether the target interface has a performance problem based on the relationship of the response time to the target time threshold comprises:
if the response time is not within the range limited by the target time threshold, judging whether the scene condition for acquiring the response time accords with the filtering condition set for the response time;
if yes, determining that the target interface has a performance problem.
7. An interface performance monitoring apparatus, the apparatus comprising:
the response time recording module is used for responding to an access request of a user to a target interface for providing business service and recording the response time of the target interface for responding to the access request;
the first threshold determining module is used for determining a target time threshold which represents that the target interface has a performance problem in preset time thresholds at all levels based on the service type of the service provided by the target interface;
and the first performance detection module is used for detecting whether the target interface has a performance problem or not based on the relation between the response time and the target time threshold.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the first parameter obtaining module is used for obtaining the attribute parameters of the access request;
and the target equipment determining module is used for determining the target equipment affected by the performance problem according to the obtained attribute parameters.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the priority determining module is used for determining the priority of the performance problem of the target interface based on the relative length relation between the target time threshold and other time thresholds in the time thresholds of all levels if the performance problem of the target interface is detected;
and the optimization sequence determining module is used for determining the sequence for optimizing the interface performance of the target interface according to the determined priority.
10. The apparatus according to any one of claims 7-9, wherein the apparatus further comprises:
the second parameter obtaining module is used for obtaining target attribute parameters recorded in a log, wherein the target attribute parameters are used for describing interaction information contained in a response process of the target interface for responding to the access request;
a second threshold determination module for re-determining the target time threshold based on the target attribute parameter;
and the second performance detection module is used for responding to the similar access requests received by the target interface and detecting whether the target interface has a performance problem or not based on response time for responding to the similar access requests and a redetermined target time threshold, wherein the similar access requests are the same as the service types of the services requested by the access requests.
11. The apparatus of claim 10, wherein the apparatus further comprises:
the query module is used for obtaining a query request input from a user interface; obtaining interface information of the performance abnormality interface recorded in the log; determining a performance abnormality interface of which interface information accords with the query condition of the query request; and sending the interface information of the determined abnormal performance interface to the user interface.
12. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the first performance detection module is specifically configured to determine whether a scene condition for acquiring the response time meets a filtering condition set for the response time if the response time is not within a range defined by the target time threshold; if yes, determining that the target interface has a performance problem.
13. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of any of claims 1-6 when executing a program stored on a memory.
14. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-6.
CN202310054363.2A 2023-02-03 2023-02-03 Interface performance monitoring method, device, equipment and storage medium Pending CN116069591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310054363.2A CN116069591A (en) 2023-02-03 2023-02-03 Interface performance monitoring method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310054363.2A CN116069591A (en) 2023-02-03 2023-02-03 Interface performance monitoring method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116069591A true CN116069591A (en) 2023-05-05

Family

ID=86174522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310054363.2A Pending CN116069591A (en) 2023-02-03 2023-02-03 Interface performance monitoring method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116069591A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450485A (en) * 2023-06-09 2023-07-18 杭州谐云科技有限公司 Detection method and system for application performance interference

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116450485A (en) * 2023-06-09 2023-07-18 杭州谐云科技有限公司 Detection method and system for application performance interference
CN116450485B (en) * 2023-06-09 2023-11-10 杭州谐云科技有限公司 Detection method and system for application performance interference

Similar Documents

Publication Publication Date Title
CN107145489B (en) Information statistics method and device for client application based on cloud platform
US9443082B2 (en) User evaluation
US11012339B2 (en) Web site reachability management for content browsing
CN107911397B (en) Threat assessment method and device
CN112506755B (en) Log acquisition method, device, computer equipment and storage medium
CN112965879A (en) Data processing method and device, electronic equipment and readable storage medium
CN113903389A (en) Slow disk detection method and device and computer readable and writable storage medium
CN116069591A (en) Interface performance monitoring method, device, equipment and storage medium
CN110688063A (en) Method, device, equipment and medium for screening Raid slow disc
CN110430070B (en) Service state analysis method, device, server, data analysis equipment and medium
CN109246234B (en) Image file downloading method and device, electronic equipment and storage medium
CN108234658B (en) Method and device for sensing health condition of server cluster and server
CN116185799A (en) Interrupt time acquisition method, device, system, communication equipment and storage medium
CN114039878B (en) Network request processing method and device, electronic equipment and storage medium
CN115643200A (en) Abnormity detection method, abnormity detection device, electronic equipment and medium
CN115083030A (en) Service inspection method and device and electronic equipment
CN115051867A (en) Detection method and device for illegal external connection behaviors, electronic equipment and medium
CN114221807A (en) Access request processing method and device, monitoring equipment and storage medium
CN109165127B (en) Problem interface positioning method and device and electronic equipment
CN113656247A (en) Service monitoring method and device, electronic equipment and readable storage medium
CN108763291B (en) Data management method and device and electronic equipment
CN112019546A (en) Protection strategy adjusting method, system, equipment and computer storage medium
CN111651356A (en) Application program testing method, device and system
CN113590047B (en) Database screening method and device, electronic equipment and storage medium
CN110096483B (en) Duplicate file detection method, terminal and server

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