CN111782468A - Method and device for monitoring performance of Web front end - Google Patents

Method and device for monitoring performance of Web front end Download PDF

Info

Publication number
CN111782468A
CN111782468A CN202010602757.3A CN202010602757A CN111782468A CN 111782468 A CN111782468 A CN 111782468A CN 202010602757 A CN202010602757 A CN 202010602757A CN 111782468 A CN111782468 A CN 111782468A
Authority
CN
China
Prior art keywords
web transaction
monitoring
web
transaction
determining
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.)
Granted
Application number
CN202010602757.3A
Other languages
Chinese (zh)
Other versions
CN111782468B (en
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010602757.3A priority Critical patent/CN111782468B/en
Publication of CN111782468A publication Critical patent/CN111782468A/en
Application granted granted Critical
Publication of CN111782468B publication Critical patent/CN111782468B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/323Visualisation of programs or trace data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/875Monitoring of systems including the internet
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention provides a method and a device for monitoring the performance of a Web front end, wherein the method comprises the following steps: monitoring Web transaction of a user terminal to obtain monitoring parameters of the Web transaction; and determining the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule. The device is used for executing the method. The method and the device for monitoring the performance of the Web front end improve the monitoring efficiency of Web transaction.

Description

Method and device for monitoring performance of Web front end
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for monitoring the performance of a Web front end.
Background
With the increasing popularity of mobile terminal devices, a large number of web applications are emerging, and users use web pages more and more frequently.
The traditional performance test of the web front end is realized by large concurrency, and the test of the background server is realized. In the prior art, developers mainly rely on tools such as http watch to manually capture transaction logs and perform manual analysis when analyzing web front-end performance information, and generally cannot quickly and accurately locate transactions with performance bottlenecks, so that the analysis efficiency is low. In the prior art, an effective monitoring method for monitoring the performance of the Web front end is lacked.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for monitoring performance of a Web front end, which can at least partially solve the problems in the prior art.
On one hand, the invention provides a method for monitoring the performance of a Web front end, which comprises the following steps:
monitoring Web transaction of a user terminal to obtain monitoring parameters of the Web transaction;
and determining the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule.
In another aspect, the present invention provides a device for monitoring performance of a Web front end, including:
the monitoring unit is used for monitoring Web transaction of the user terminal and acquiring monitoring parameters of the Web transaction;
and the determining unit is used for determining the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and preset monitoring rules.
In another aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method for monitoring the performance of the Web front end according to any one of the above embodiments.
In yet another aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for monitoring the performance of a Web front end according to any of the above embodiments.
The method and the device for monitoring the performance of the Web front end, provided by the embodiment of the invention, can monitor the Web transaction of the user terminal, obtain the monitoring parameters of the Web transaction, and then determine the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and the preset monitoring rule, thereby realizing the automatic monitoring of the Web transaction and improving the monitoring efficiency of the Web transaction.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic flowchart of a method for monitoring performance of a Web front end according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a method for monitoring performance of a Web front end according to another embodiment of the present invention.
Fig. 3 is a schematic flowchart of a method for monitoring performance of a Web front end according to another embodiment of the present invention.
Fig. 4 is a flowchart illustrating a method for monitoring performance of a Web front end according to still another embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a device for monitoring performance of a Web front end according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a device for monitoring performance of a Web front end according to another embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a device for monitoring performance of a Web front end according to yet another embodiment of the present invention.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
In order to facilitate understanding of the technical solutions provided in the present application, the following first describes relevant contents of the technical solutions in the present application. The Web transaction in the embodiment of the present invention refers to a process from a user performing an operation through a front-end page to completing a response to the operation, for example, a process from a user clicking one link of the front-end page to displaying a page corresponding to the link on the front-end page, a process from a user inputting a keyword and clicking a query on the front-end page to displaying a corresponding query result on the front-end page.
Fig. 1 is a schematic flow diagram of a method for monitoring performance of a Web front end according to an embodiment of the present invention, and as shown in fig. 1, the method for monitoring performance of a Web front end according to an embodiment of the present invention includes:
s101, monitoring each Web transaction of a user terminal to obtain monitoring parameters of the Web transaction;
specifically, when a user performs a front-end operation at a user terminal, a Web transaction is triggered. In the process of Web transaction, the server monitors the process of Web transaction and obtains the monitoring parameters of the Web transaction. The monitoring parameters may include execution time of each execution program of the Web transaction and actual number of received files, and are set according to actual needs, which is not limited in the embodiments of the present invention. In order to realize the monitoring of the Web transaction, each Web transaction needing to be monitored can be subjected to point burying, so that when a user triggers the monitored Web transaction through a user terminal, a script can be automatically triggered to monitor and record the process of the Web transaction. The user terminal includes but is not limited to electronic devices such as a smart phone and a tablet power supply. The execution main body of the method for monitoring the performance of the Web front end provided by the embodiment of the invention comprises but is not limited to a server.
And S102, determining a monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule.
Specifically, after obtaining the monitoring parameters of the Web transaction, the server may determine the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule. The monitoring result of the Web transaction may include whether the Web transaction has problems of transaction timeout, file loss, transaction slowness, and the like. The preset monitoring rule is set according to actual needs, and the embodiment of the invention is not limited.
For example, the monitoring parameter includes the execution time of each execution program of the Web transaction, the server calculates and obtains the completion time of the Web transaction according to the execution time of each execution program, and after the completion time of the Web transaction is judged and obtained to be greater than a first time threshold, the Web transaction is determined to be overtime; and after judging that the completion time of the Web transaction is less than or equal to the first time threshold, determining that the Web transaction is not overtime. The first time threshold is set according to actual needs, and the embodiment of the present invention is not limited.
The method for monitoring the performance of the Web front end can monitor the Web transaction of the user terminal, obtain the monitoring parameters of the Web transaction, determine the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and the preset monitoring rules, realize the automatic monitoring of the Web transaction and improve the monitoring efficiency of the Web transaction.
Fig. 2 is a schematic flow chart of a method for monitoring performance of a Web front end according to another embodiment of the present invention, as shown in fig. 2, on the basis of the foregoing embodiments, further, the monitoring parameter includes an execution time of each execution program of the Web transaction; correspondingly, the determining the monitoring result of the Web transaction according to the monitoring parameter of the Web transaction and the preset monitoring rule includes:
s201, calculating and obtaining the completion time of the Web transaction according to the execution time of each execution program;
specifically, the Web transaction may include a plurality of execution programs, and during the Web transaction, the server may monitor a start time and an end time of each execution program of the Web transaction, and may obtain the execution time of each execution program by subtracting the start time from the end time of each execution program. The server may calculate a sum of the execution times of the respective execution programs as a completion time of the Web transaction after obtaining the execution times of the respective execution programs of the Web transaction. Wherein the monitoring parameter may include an execution time of each execution program of the Web transaction.
S202, if the completion time of the Web transaction is judged and known to be larger than a first time threshold value, determining that the Web transaction is overtime.
Specifically, after obtaining the completion time of the Web transaction, the server compares the completion time of the Web transaction with a first time threshold, and if the completion time of the Web transaction is greater than the first time threshold, the server may determine that the Web transaction is overtime, that is, the completion time of the Web transaction is long, and needs to analyze the completion process of each execution program of the Web transaction, find out the cause of the overtime of the Web transaction, and improve the completion process. The monitoring result may include the Web transaction timeout. If the completion time of the Web transaction is less than or equal to the first time threshold, it indicates that the Web transaction is not overtime, and the monitoring result may include that the completion time is normal, which indicates that the Web transaction is not overtime. The first time threshold is set according to actual needs, and the embodiment of the present invention is not limited.
On the basis of the above embodiments, further, the monitoring parameter includes an actual number of received files of the Web transaction; correspondingly, the determining the monitoring result of the Web transaction according to the monitoring parameter of the Web transaction and the preset monitoring rule includes:
and if the actual number of the received files is judged to be smaller than the standard number, determining the Web transaction missing files.
Specifically, the Web transaction needs to receive a plurality of files in the process of proceeding. The method comprises the steps of setting a file receiving starting identifier and a file receiving ending identifier when a Web transaction is subjected to point burying, and counting the number of files received between the receiving starting identifier and the receiving ending identifier of the Web transaction to be used as the actual number of the received files of the Web transaction. The server compares the actual number of the received files of the Web transaction with the standard number, and if the actual number of the received files of the Web transaction is smaller than the standard number, the server can determine the files missing from the Web transaction, and needs to find out the reason causing the files missing from the Web transaction and improve the files. The monitoring result may include the Web transaction missing file. If the number of the actually received files of the Web transaction is equal to the standard number, the Web transaction is indicated to be free of missing files, and the monitoring result can include that the number of the files is accurate, so that the Web transaction is indicated to be free of missing files.
The standard quantity can be obtained by statistics from a file list transmitted by the server to the user terminal in the Web transaction process. When the Web transactions are frequent, the server can count the number of actually received files of the Web transactions of the same type, and if the number of actually received files of the Web transactions of the same type which are larger than a preset proportion is the same, and if the number of actually received files of the Web transactions of the same type is q, the q is taken as the standard number. The preset proportion is set according to actual experience, and the embodiment of the invention is not limited. And determining the standard quantity according to the file list, so that the determination of the standard quantity is accurate. Determining the standard data based on the actual number of received documents for the same type of Web transaction makes the determination of the standard number more efficient.
Fig. 3 is a schematic flowchart of a method for monitoring performance of a Web front end according to another embodiment of the present invention, as shown in fig. 3, on the basis of the foregoing embodiments, further, the monitoring parameter includes an execution time of each execution program of the Web transaction; correspondingly, the determining the monitoring result of the Web transaction according to the monitoring parameter of the Web transaction and the preset monitoring rule includes:
s301, calculating and obtaining the completion time of the Web transaction according to the execution time of each execution program;
specifically, the Web transaction may include a plurality of execution programs, and during the Web transaction, the server may monitor a start time and an end time of each execution program of the Web transaction, and may obtain the execution time of each execution program by subtracting the start time from the end time of each execution program. The server may calculate a sum of the execution times of the respective execution programs as a completion time of the Web transaction after obtaining the execution times of the respective execution programs of the Web transaction. Wherein the monitoring parameter may include an execution time of each execution program of the Web transaction.
And S302, if the completion time of the Web transaction is judged and known to be larger than a second time threshold, determining that the Web transaction is extremely slow.
Specifically, after obtaining the completion time of the Web transaction, the server may compare the completion time of the Web transaction with a second time threshold, and if the completion time of the Web transaction is greater than the second time threshold, the server may determine that the Web transaction is extremely slow, that is, the completion time of the Web transaction is very long, and needs to analyze the completion process of each execution program of the Web transaction, find out a cause of the extremely slow Web transaction, and improve the result. The monitoring result may include that the Web transaction is extremely slow. If the completion time of the Web transaction is less than or equal to the second time threshold, indicating that the Web transaction is not overly slow, the monitoring result may include that an overly slow condition does not occur, indicating that the Web transaction is not overly slow. The second time threshold is set according to actual needs, for example, the second time threshold is 8 milliseconds, and the embodiment of the present invention is not limited.
Fig. 4 is a schematic flow diagram of a method for monitoring performance of a Web front end according to still another embodiment of the present invention, and as shown in fig. 4, the method for monitoring performance of a Web front end according to the embodiment of the present invention is implemented as follows:
firstly, activating a Web transaction buried point. The method can be used for pre-burying points of each Web transaction, setting a starting option for starting performance monitoring, and activating the Web transaction burying points by starting the performance monitoring of the Web transaction.
And secondly, monitoring Web transaction. When a user performs front-end operation at a user terminal, Web transaction is triggered, and the server monitors the Web transaction.
And thirdly, acquiring monitoring parameters. The server monitors the process of the Web transaction, and acquires and obtains monitoring parameters of the Web transaction, wherein the monitoring parameters include the execution time of each execution program of the Web transaction and the actual number of received files.
And fourthly, storing the monitoring parameters. After acquiring the monitoring parameters, the server stores the monitoring parameters in a classified manner, for example, stores the execution time of each execution program of the Web transaction together; and separately storing the actual receiving file quantity of the Web transaction.
And fifthly, obtaining a monitoring result. And the server determines the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and preset monitoring rules.
And sixthly, processing a monitoring result. After the server obtains the monitoring result, if the monitoring result indicates that the Web transaction has the problems of overtime, file missing and the like, the monitoring result can be pushed to related personnel for processing. The server may also display the monitoring result in a graphical form, such as a pie chart showing the proportion of Web transactions that have problems, a bar chart showing the number of occurrences of each problem, and so on.
The method for monitoring the performance of the Web front end solves the problems that the performance of the traditional front end depends on a tool and is analyzed manually and mechanically, and achieves full-process automatic performance monitoring and analysis of front end performance monitoring in a non-inductive mode during the period that a user uses a user terminal. By means of the method, the key information closely related to user experience is automatically acquired without sensing, performance data closer to the real experience of a user can be acquired, the performance bottleneck of the Web front end can be accurately positioned, automatic monitoring and analysis of the performance of the Web front end are achieved, nearly 80% of the performance problems of the Web front end can be checked through monitoring of the performance of the Web front end, and potential performance hazards of a B/S type transaction system are greatly reduced.
Fig. 5 is a schematic structural diagram of a monitoring apparatus for Web front-end performance according to an embodiment of the present invention, and as shown in fig. 5, the monitoring apparatus for Web front-end performance according to the embodiment of the present invention includes a monitoring unit 501 and a determining unit 502, where:
the monitoring unit 501 is configured to monitor a Web transaction of a user terminal, and obtain a monitoring parameter of the Web transaction; the determining unit 502 is configured to determine a monitoring result of the Web transaction according to the monitoring parameter of the Web transaction and a preset monitoring rule.
Specifically, when a user performs a front-end operation at a user terminal, a Web transaction is triggered. In the process of Web transaction, the monitoring unit 501 monitors the process of Web transaction to obtain the monitoring parameters of Web transaction. The monitoring parameters may include execution time of each execution program of the Web transaction and actual number of received files, and are set according to actual needs, which is not limited in the embodiments of the present invention. In order to realize the monitoring of the Web transaction, each Web transaction needing to be monitored can be subjected to point burying, so that when a user triggers the monitored Web transaction through a user terminal, a script can be automatically triggered to monitor and record the process of the Web transaction. The user terminal includes but is not limited to electronic devices such as a smart phone and a tablet power supply.
After obtaining the monitoring parameters of the Web transaction, the determining unit 502 may determine the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule. The monitoring result of the Web transaction may include whether the Web transaction has problems of transaction timeout, file loss, transaction slowness, and the like. The preset monitoring rule is set according to actual needs, and the embodiment of the invention is not limited.
The monitoring device for the Web front-end performance provided by the embodiment of the invention can monitor the Web transaction of the user terminal, obtain the monitoring parameters of the Web transaction, and then determine the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and the preset monitoring rule, thereby realizing the automatic monitoring of the Web transaction and improving the monitoring efficiency of the Web transaction.
Fig. 6 is a schematic structural diagram of a monitoring apparatus for Web front-end performance according to another embodiment of the present invention, as shown in fig. 6, on the basis of the foregoing embodiments, further, the monitoring parameter includes an execution time of each execution program of the Web transaction; accordingly, the determining unit 502 comprises a first calculating subunit 5021 and a first judging subunit 5022, wherein:
the first calculating subunit 5021 is configured to calculate and obtain the completion time of the Web transaction according to the execution time of each execution program; the first determining subunit 5022 is configured to determine that the Web transaction is overtime after determining that the completion time of the Web transaction is greater than the first time threshold.
Specifically, the Web transaction may include a plurality of execution programs, and during the Web transaction, the first calculation subunit 5021 may monitor a start time and an end time of each execution program of the Web transaction, and may obtain an execution time of each execution program by subtracting the start time from the end time of each execution program. The first calculation subunit 5021, after obtaining the execution times of the respective execution programs of the Web transaction, may calculate the sum of the execution times of the respective execution programs as the completion time of the Web transaction. Wherein the monitoring parameter may include an execution time of each execution program of the Web transaction.
After obtaining the completion time of the Web transaction, the first determining subunit 5022 may compare the completion time of the Web transaction with a first time threshold, and if the completion time of the Web transaction is greater than the first time threshold, the first determining subunit 5022 may determine that the Web transaction is overtime, that is, the completion time of the Web transaction is long, and it is necessary to analyze the completion processes of the execution programs of the Web transaction, find out the reason causing the overtime of the Web transaction, and improve the completion processes. The monitoring result may include the Web transaction timeout. If the completion time of the Web transaction is less than or equal to the first time threshold, it indicates that the Web transaction is not overtime, and the monitoring result may include that the completion time is normal, which indicates that the Web transaction is not overtime. The first time threshold is set according to actual needs, and the embodiment of the present invention is not limited.
On the basis of the above embodiments, further, the monitoring parameter includes an actual number of received files of the Web transaction; accordingly, the determining unit 502 is specifically configured to:
and if the actual number of the received files is judged to be smaller than the standard number, determining the Web transaction missing files.
Specifically, the Web transaction needs to receive a plurality of files in the process of proceeding. The method comprises the steps of setting a file receiving starting identifier and a file receiving ending identifier when a Web transaction is subjected to point burying, and counting the number of files received between the receiving starting identifier and the receiving ending identifier of the Web transaction to be used as the actual number of the received files of the Web transaction. The determining unit 502 may compare the actual number of received files of the Web transaction with the standard number, and if the actual number of received files of the Web transaction is smaller than the standard number, it may determine that the Web transaction is missing, and it is necessary to find out the reason for the missing files of the Web transaction, and improve the reason. The monitoring result may include the Web transaction missing file. If the number of the actually received files of the Web transaction is equal to the standard number, the Web transaction is indicated to be free of missing files, and the monitoring result can include that the number of the files is accurate, so that the Web transaction is indicated to be free of missing files.
Fig. 7 is a schematic structural diagram of a monitoring apparatus for Web front-end performance according to yet another embodiment of the present invention, as shown in fig. 7, on the basis of the foregoing embodiments, further, the monitoring parameter includes an execution time of each execution program of the Web transaction; accordingly, the determining unit 502 comprises a second calculating subunit 5023 and a second judging subunit 5024, wherein:
the second calculating subunit 5023 is configured to calculate and obtain the completion time of the Web transaction according to the execution time of each execution program; the second judging subunit 5024 is configured to determine that the Web transaction is extremely slow after judging that the completion time of the Web transaction is greater than the second time threshold.
Specifically, the Web transaction may include a plurality of execution programs, and during the Web transaction, the second calculation subunit 5023 may monitor a start time and an end time of each execution program of the Web transaction, and may obtain the execution time of each execution program by subtracting the start time from the end time of each execution program. The second calculation subunit 5023, after obtaining the execution times of the respective execution programs of the Web transaction, may calculate the sum of the execution times of the respective execution programs as the completion time of the Web transaction. Wherein the monitoring parameter may include an execution time of each execution program of the Web transaction.
After obtaining the completion time of the Web transaction, the second judging subunit 5024 may compare the completion time of the Web transaction with a second time threshold, and if the completion time of the Web transaction is greater than the second time threshold, the second judging subunit 5024 may determine that the Web transaction is extremely slow, that is, the completion time of the Web transaction is very long, and it is necessary to analyze the completion processes of the execution programs of the Web transaction, find out the reason causing the extremely slow Web transaction, and improve the completion processes. The monitoring result may include that the Web transaction is extremely slow. If the completion time of the Web transaction is less than or equal to the second time threshold, indicating that the Web transaction is not overly slow, the monitoring result may include that an overly slow condition does not occur, indicating that the Web transaction is not overly slow. The second time threshold is set according to actual needs, for example, the second time threshold is 8 milliseconds, and the embodiment of the present invention is not limited.
The embodiment of the apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 8, the electronic device may include: a processor (processor)801, a communication Interface (Communications Interface)802, a memory (memory)803 and a communication bus 804, wherein the processor 801, the communication Interface 802 and the memory 803 complete communication with each other through the communication bus 804. The processor 801 may call logic instructions in the memory 803 to perform the following method: monitoring Web transaction of a user terminal to obtain monitoring parameters of the Web transaction; and determining the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule.
In addition, the logic instructions in the memory 803 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: monitoring Web transaction of a user terminal to obtain monitoring parameters of the Web transaction; and determining the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: monitoring Web transaction of a user terminal to obtain monitoring parameters of the Web transaction; and determining the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for monitoring the performance of a Web front end is characterized by comprising the following steps:
monitoring Web transaction of a user terminal to obtain monitoring parameters of the Web transaction;
and determining the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and a preset monitoring rule.
2. The method of claim 1, wherein the monitoring parameters include execution time of respective executives of the Web transaction; correspondingly, the determining the monitoring result of the Web transaction according to the monitoring parameter of the Web transaction and the preset monitoring rule includes:
calculating and obtaining the completion time of the Web transaction according to the execution time of each execution program;
and if the completion time of the Web transaction is judged and known to be larger than a first time threshold, determining that the Web transaction is overtime.
3. The method of claim 1, wherein the monitoring parameters include an actual number of received documents for the Web transaction; correspondingly, the determining the monitoring result of the Web transaction according to the monitoring parameter of the Web transaction and the preset monitoring rule includes:
and if the actual number of the received files is judged to be smaller than the standard number, determining the Web transaction missing files.
4. The method according to any one of claims 1 to 3, wherein the monitoring parameters include execution time of respective execution programs of the Web transaction; correspondingly, the determining the monitoring result of the Web transaction according to the monitoring parameter of the Web transaction and the preset monitoring rule includes:
calculating and obtaining the completion time of the Web transaction according to the execution time of each execution program;
and if the completion time of the Web transaction is judged and known to be larger than a second time threshold, determining that the Web transaction is extremely slow.
5. A Web front-end performance monitoring device, comprising:
the monitoring unit is used for monitoring Web transaction of the user terminal and acquiring monitoring parameters of the Web transaction;
and the determining unit is used for determining the monitoring result of the Web transaction according to the monitoring parameters of the Web transaction and preset monitoring rules.
6. The apparatus of claim 5, wherein the monitoring parameters comprise execution time of respective executives of the Web transaction; accordingly, the determination unit includes:
the first calculation subunit is used for calculating and obtaining the completion time of the Web transaction according to the execution time of each execution program;
and the first judgment subunit is used for determining that the Web transaction is overtime after judging that the completion time of the Web transaction is greater than a first time threshold.
7. The apparatus of claim 5, wherein the monitoring parameter comprises an actual number of received documents for the Web transaction; correspondingly, the determining unit is specifically configured to:
and if the actual number of the received files is judged to be smaller than the standard number, determining the Web transaction missing files.
8. The apparatus according to any one of claims 5 to 7, wherein the monitoring parameters include execution time of each execution program of the Web transaction; accordingly, the determination unit includes:
the second calculation subunit is used for calculating and obtaining the completion time of the Web transaction according to the execution time of each execution program;
and the second judgment subunit is used for determining that the Web transaction is extremely slow after judging that the completion time of the Web transaction is greater than the second time threshold.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202010602757.3A 2020-06-29 2020-06-29 Method and device for monitoring performance of Web front end Active CN111782468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010602757.3A CN111782468B (en) 2020-06-29 2020-06-29 Method and device for monitoring performance of Web front end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010602757.3A CN111782468B (en) 2020-06-29 2020-06-29 Method and device for monitoring performance of Web front end

Publications (2)

Publication Number Publication Date
CN111782468A true CN111782468A (en) 2020-10-16
CN111782468B CN111782468B (en) 2024-02-27

Family

ID=72760253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010602757.3A Active CN111782468B (en) 2020-06-29 2020-06-29 Method and device for monitoring performance of Web front end

Country Status (1)

Country Link
CN (1) CN111782468B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882105A (en) * 2010-06-01 2010-11-10 华南理工大学 Method for testing response time of Web page under concurrent environment
JP2012181744A (en) * 2011-03-02 2012-09-20 Kddi Corp Operation monitoring system and operation monitoring method for distributed file system
CN105389214A (en) * 2015-11-10 2016-03-09 中国建设银行股份有限公司 Monitoring method and system
CN106021079A (en) * 2016-05-06 2016-10-12 华南理工大学 A Web application performance testing method based on a user frequent access sequence model
CN110928767A (en) * 2019-10-12 2020-03-27 平安国际智慧城市科技股份有限公司 Webpage analysis method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882105A (en) * 2010-06-01 2010-11-10 华南理工大学 Method for testing response time of Web page under concurrent environment
JP2012181744A (en) * 2011-03-02 2012-09-20 Kddi Corp Operation monitoring system and operation monitoring method for distributed file system
CN105389214A (en) * 2015-11-10 2016-03-09 中国建设银行股份有限公司 Monitoring method and system
CN106021079A (en) * 2016-05-06 2016-10-12 华南理工大学 A Web application performance testing method based on a user frequent access sequence model
CN110928767A (en) * 2019-10-12 2020-03-27 平安国际智慧城市科技股份有限公司 Webpage analysis method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111782468B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN107168854B (en) Internet advertisement abnormal click detection method, device, equipment and readable storage medium
CN106445292B (en) Method and system for managing application programs in different body modes
CN107656968B (en) Method and system for exporting large-batch business data
CN111130987A (en) Automatic acquisition method and device for AWR report, electronic equipment and storage medium
CN111522711A (en) Data monitoring processing system, method, execution end, monitoring end and electronic equipment
CN106713011B (en) Method and system for obtaining test data
CN109409948B (en) Transaction abnormity detection method, device, equipment and computer readable storage medium
CN112463863A (en) Cloud platform data acquisition method and device
CN112181782A (en) Adaptive gray function issuing method and device based on AB test
CN109240916B (en) Information output control method, information output control device and computer readable storage medium
CN112671878B (en) Block chain information subscription method, device, server and storage medium
CN110275785B (en) Data processing method and device, client and server
CN107357703B (en) Terminal application power consumption detection method and server
CN111782468B (en) Method and device for monitoring performance of Web front end
CN111459792A (en) WEB front-end performance monitoring method and device, electronic equipment and storage medium
CN107967363B (en) Data processing method and device and electronic equipment
CN112241356A (en) Page testing method, device, equipment and storage medium
CN112579833B (en) Service association relation acquisition method and device based on user operation data
CN113495841B (en) Compatibility detection method, device, equipment, storage medium and program product
CN111770080B (en) Recovery method and device for device fingerprint
CN109886327B (en) System and method for processing Java data in distributed system
CN114648410A (en) Stock staring method, apparatus, system, device and medium
CN111400173A (en) VTS test method, device and equipment
CN110298935B (en) Method for acquiring user operation habit information, diagnosis equipment and server
CN109656729B (en) Multi-control interaction method and device for webpage and terminal equipment

Legal Events

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