CN112631906A - Page performance detection method and system based on server - Google Patents

Page performance detection method and system based on server Download PDF

Info

Publication number
CN112631906A
CN112631906A CN202011511437.3A CN202011511437A CN112631906A CN 112631906 A CN112631906 A CN 112631906A CN 202011511437 A CN202011511437 A CN 202011511437A CN 112631906 A CN112631906 A CN 112631906A
Authority
CN
China
Prior art keywords
page
server
client
performance
detection system
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
CN202011511437.3A
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.)
Hunan Yingke Mutual Entertainment Network Information Co ltd
Original Assignee
Hunan Yingke Mutual Entertainment Network Information 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 Hunan Yingke Mutual Entertainment Network Information Co ltd filed Critical Hunan Yingke Mutual Entertainment Network Information Co ltd
Priority to CN202011511437.3A priority Critical patent/CN112631906A/en
Publication of CN112631906A publication Critical patent/CN112631906A/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/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for detecting page performance based on a server, which comprises the following steps: configuring a background to input corresponding page parameters; the client loads a server page, and the detection system is accessed to the client through the configured page; monitoring the performance of the page called by the client; and acquiring the performance data of the page and reporting the performance data in real time. The invention also discloses a system for detecting the webpage performance based on the server-side script, which comprises the following steps: the server provides page resources for the client and stores client data; the client loads the page provided by the server; the configuration background inputs corresponding page information, and calls a page configuration detection system loaded by the client from the corresponding page information so that the detection system is accessed to the page loaded by the client; the detection system detects the performance of the accessed page. By the method, the page performance can be tested in the loading process, the test is quicker and more efficient, and the information data of the client side does not need to be collected.

Description

Page performance detection method and system based on server
Technical Field
The application relates to the technical field of terminals, in particular to a method and a system for detecting page performance based on a server.
Background
The performance of front-end applications tends to be manifested in two ways: load performance and run performance. And the loading performance is the key to influence the first impression of the product by the user. Due to the limitation of the development environment, a developer cannot make objective judgment on the loading experience of an actual user, and the situation that the feedback of the user is slowly opened but the developer feels good easily occurs. The exception cannot be regarded as a false exception, and often does not attract the attention of developers. Therefore, a detection method capable of testing page loading performance is urgently needed.
Disclosure of Invention
In view of the above technical problems, the present application provides a method and a system for detecting page performance based on a server, which can test page performance during loading without collecting information data of a client.
In order to solve the above technical problem, the present application provides a method for detecting page performance based on a server, including:
configuring a background to input corresponding page information;
a client loads a server page, and the configuration background calls a page information configuration detection system corresponding to the page loaded by the client so that the detection system is accessed to the page loaded by the client;
monitoring the performance of the page loaded by the client;
and acquiring the performance data of the page and reporting the performance data in real time.
In one embodiment, the accessing the detection system to the client includes:
and writing and laying corresponding execution codes on one side of the detection system in advance.
In one embodiment, the manner of accessing the client by the detection system is as follows: and opening a specified url through configuration, so that the detection system is accessed to the client in a service script form.
In one embodiment, the management system pre-customizes the page parameters to the page to be tested according to specific test requirements, and when the client calls the server page, the detection system accesses the corresponding page through the management system to access the client to call the server page.
In one embodiment, the performance includes a load performance and a run performance.
In one embodiment, the monitoring performance of the client page includes:
the detection system detects a loading event of a page and monitors the performance of the page in the loading process in real time until the page is loaded.
In one embodiment, the server is further provided with a thread management tool, and when the detection system detects the detection system, the thread management tool manages a process so as to ensure that the detection system always runs on the server without interruption.
The invention also provides a system for detecting the webpage performance based on the server-side script, which is characterized by comprising the following steps: the system comprises a client and a server, wherein the server comprises a detection system and a configuration background;
the server provides page resources for the client and stores the client data;
the client loads a page provided by the server;
the configuration background inputs corresponding page information, and calls page information loaded by a client from the corresponding page information to configure the detection system so that the detection system is accessed to the page loaded by the client;
the detection system detects the performance of the accessed page.
In one embodiment, the server further includes a thread management tool;
and the thread management tool is used for managing the process and ensuring that the detection is not interrupted when the detection system detects the process.
In one embodiment, the performance includes page loading performance and page running performance
The invention provides a method and a system for detecting page performance based on a server, wherein the method for detecting the page performance based on the server comprises the following steps: configuring a background to input corresponding page parameters; a client loads a server page, and the configuration background calls a page configuration detection system loaded by the client to access the page loaded by the client; monitoring the performance of the page loaded by the client; and acquiring the performance data of the page and reporting the performance data in real time. The page performance can be tested in the loading process through the detection method based on the page performance of the server side, so that the method is quicker and more efficient, and information data of the client side does not need to be collected.
The detection method can access the server detection system to report the performance condition of the page at regular time without changing the existing service, thereby avoiding the statistical risk and the data noise of the data of the client, avoiding the increase of the task load of the client and reducing the data interference caused by abnormal data.
Drawings
Fig. 1 is a flowchart illustrating a method for detecting a server-based page performance according to an embodiment.
Detailed Description
The following description of the embodiments of the present application is provided for illustrative purposes, and other advantages and capabilities of the present application will become apparent to those skilled in the art from the present disclosure.
In the following description, reference is made to the accompanying drawings that describe several embodiments of the application. It is to be understood that other embodiments may be utilized and that mechanical, structural, electrical, and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description is not to be taken in a limiting sense, and the scope of embodiments of the present application is defined only by the claims of the issued patent. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Fig. 1 is a flowchart illustrating a method for detecting a server-based page performance according to an embodiment. Referring to fig. 1, the method for detecting page performance based on a server according to the present embodiment is applied to a server, and includes:
s1: configuring a background to input corresponding page information;
s2: a client loads a server page, and the configuration background calls a page information configuration detection system corresponding to the page loaded by the client so that the detection system is accessed to the page loaded by the client;
s3: monitoring the performance of the page loaded by the client;
s4: and acquiring the performance data of the page and reporting the performance data in real time.
The detection method in this embodiment is to detect different page versions in a certain network product (e.g., APP of a certain mobile phone) or a website to be tested at the server, so that a corresponding execution code needs to be written and laid on one side of the detection system in advance.
In the present embodiment, nodeJs is adopted as a development language for detecting the code executed by the system.
In an embodiment, the configuration background refers to a management system, and may store in advance page information for linking, links, parameters, and tasks for configuring a corresponding page, and display a corresponding performance data result. The information comprises the website and the like of one or more pages needing to be linked by the client, and the parameters comprise the specified route, the specified domain name without access and the detection times; the task includes detecting frequency and timing of the system.
The page data embedded with the corresponding logic code for testing can be edited and embedded into the configuration background according to the specific testing requirements, namely, the customization of the page parameters. The configuration background side inputs the page data, and after the corresponding page is displayed at the server side according to the data, the logic code embedded in the page data can collect the behavior data of the user and send the collected behavior data to the detection system, so that the detection problem of multiple routing pages caused by service expansion is solved.
In an embodiment, after a configuration background enters corresponding page information, a client loads a server page, and the configuration background calls a page information configuration detection system loaded by the client to access a page loaded by the client.
And the background is configured to realize that the detection system is accessed to the page loaded by the client. For example, a client opens a browser at a server, opens a designated url through configuration, and a detection system accesses the browser through a configuration background in a service script mode, so as to access the client. Therefore, when the client wants to obtain certain page data in a certain network product or website to be tested to access the corresponding page, the server will first access the page by running the execution code.
On the WWW, each information Resource has a Uniform and unique address on the network, which is called url (Uniform Resource Locator), which is a Uniform Resource Locator mark of the WWW, that is, a network address; url consists of three parts: resource type, host domain name for storing resource, resource file name; it can also be considered to consist of 4 parts: the general syntax format of the protocol, host, port, path URL is: (optional with brackets [ ]): protocol:// hostname [: port ]/path/[; parameters ] [? query ] # fragment.
In one embodiment, after a detection system accesses a page linked by a client, the detection system monitors the performance of the page loaded by the client.
The performance of the client calling the server page application is often embodied in two aspects: load performance and run performance. And the loading performance is the key to influence the first impression of the product by the user.
Specifically, when the client calls the page, the detection system periodically acquires the configuration of the configuration background and performs detection. The detection system detects the loading event of the page, and monitors the loading event in real time until the page loading is finished. However, other business situations, such as a first page that needs to be entered by login or a page that needs to be entered by a specific atomic parameter, are also considered, and further, other statistical businesses, such as a buried point, etc., cannot be influenced, which can be customized by a configuration background.
Because the scripting language written by the node js is adopted, the task scheduling is realized only by using the node-schedule, a new task is acquired periodically, the detection script is executed, and the detected data is taken and returned to the server. Meanwhile, in order to ensure that the threads run at the server all the time, a thread manager is required to be installed at the server to manage the processes, and the task scheduling is not interrupted.
In one embodiment, a detection system detects the loading performance of a page loaded by an accessed client, acquires the performance data of the page, and reports the performance data to a configuration background in real time; and configuring the performance data reported by the background display.
The server is also installed with Puppeteer, which is a nodejs library (headless browser) from Chrome team, and one of the functions is web page crawling (which can be used as a crawler). The realization mechanism is that a puppeteer is utilized to open a corresponding page, a script interception part request is injected, and performance data is output after the page is loaded.
The detection system can further calculate the performance condition of the page by acquiring the performance data of the page.
The online business is detected regularly by setting a server script, an operation result report is generated and sent to developers, information data of the client does not need to be collected, the data of the client has statistical risk and data noise, the task amount of the client is increased, and data interference caused by a very small amount of abnormal data exists. These are not very necessary to solve the business scenario we are facing. Through the form of the server-side script, the detection service can be accessed quickly, only the webpage link needs to be configured, and meanwhile, the front-end environment parameters needing to be injected can be defined in a self-defining mode. Furthermore, the system can play a more powerful role when being matched with other monitoring platforms for use.
Compared with the existing performance detection tools on the network, the performance detection tools are all auxiliary tools, developers need to open the performance detection tools to assist in checking, and only performance data at the time is available, but detection cannot be carried out at regular time along with service iteration, so that the technology solves the problem of how to regularly observe page performance. And the customization of page parameters also solves the problem of multi-route page detection brought by service expansion.
The front-end page loading speed is different from that seen by a client for developers, and the task load of the client and the server is increased undoubtedly by reporting the performance data in a form of injecting a client script. The detection method can access the detection system of the server side and report the performance condition of the page at regular time under the condition that the existing service is not required to be changed.
The embodiment further provides a system for detecting web page performance based on the server-side script, which includes: the system comprises a client and a server, wherein the server comprises a detection system and a configuration background;
the server provides page resources for the client and stores the client data;
the client loads a page provided by the server;
the configuration background inputs corresponding page information, and calls page information loaded by a client from the corresponding page information to configure the detection system so that the detection system is accessed to the page loaded by the client;
the detection system detects the performance of the accessed page.
In one embodiment, the server further comprises a thread management tool. And the thread management tool is used for managing the process and ensuring that the detection is not interrupted when the detection system detects the process.
In one embodiment, the capabilities include a page load capability and a page run capability.
As used herein, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, including not only those elements listed, but also other elements not expressly listed.
The foregoing embodiments are merely illustrative of the principles and utilities of the present application and are not intended to limit the application. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical concepts disclosed in the present application shall be covered by the claims of the present application.

Claims (10)

1. A method for detecting webpage performance based on a server-side script is characterized by comprising the following steps:
configuring a background to input corresponding page information;
a client loads a server page, and the configuration background calls a page information configuration detection system corresponding to the page loaded by the client so that the detection system is accessed to the page loaded by the client;
monitoring the performance of the page loaded by the client;
and acquiring the performance data of the page and reporting the performance data in real time.
2. The method for detecting page performance based on server side according to claim 1, wherein said accessing the detection system to the client side includes:
and writing and laying corresponding execution codes on one side of the detection system in advance.
3. The method for detecting page performance based on the server side according to claim 2, wherein the manner of accessing the client side by the detection system is as follows: and opening a specified page through configuration, so that the detection system is accessed to the client in a service script form.
4. The method for detecting page performance based on the server according to claim 3, wherein the management system pre-customizes the page parameters to the page to be detected according to specific test requirements, and when the client calls the server page, the detection system accesses the corresponding page through the management system to access the client to call the server page.
5. The method for detecting the performance of the server-side based page according to claim 1, wherein the performance includes a loading performance and a running performance.
6. The method for detecting performance of a server-side based page according to claim 5, wherein the monitoring performance of the client-side page comprises:
the detection system detects a loading event of a page and monitors the performance of the page in the loading process in real time until the page is loaded.
7. The method for detecting the page performance based on the server side according to claim 1 or 6, wherein the server side is further provided with a thread management tool, and when the detection system detects, the thread management tool manages a process so as to ensure that the detection system always runs on the server side without interruption.
8. A system for detecting webpage performance based on a server-side script is characterized by comprising: the system comprises a client and a server, wherein the server comprises a detection system and a configuration background;
the server provides page resources for the client and stores the client data;
the client loads a page provided by the server;
the configuration background inputs corresponding page information, and calls page information loaded by a client from the corresponding page information to configure the detection system so that the detection system is accessed to the page loaded by the client;
the detection system detects the performance of the accessed page.
9. The system for detecting web page performance based on server script as claimed in claim 8, wherein the server further comprises a thread management tool;
and the thread management tool is used for managing the process and ensuring that the detection is not interrupted when the detection system detects the process.
10. The system for detecting web page performance based on server-side script as claimed in claim 8, wherein the performance includes page loading performance and page running performance.
CN202011511437.3A 2020-12-18 2020-12-18 Page performance detection method and system based on server Pending CN112631906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511437.3A CN112631906A (en) 2020-12-18 2020-12-18 Page performance detection method and system based on server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511437.3A CN112631906A (en) 2020-12-18 2020-12-18 Page performance detection method and system based on server

Publications (1)

Publication Number Publication Date
CN112631906A true CN112631906A (en) 2021-04-09

Family

ID=75318044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511437.3A Pending CN112631906A (en) 2020-12-18 2020-12-18 Page performance detection method and system based on server

Country Status (1)

Country Link
CN (1) CN112631906A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918940A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Computer service system and server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070083649A1 (en) * 2005-10-12 2007-04-12 Brian Zuzga Performance monitoring of network applications
CN101222349A (en) * 2007-01-12 2008-07-16 中国电信股份有限公司 Method and system for collecting web user action and performance data
CN106100936A (en) * 2016-08-10 2016-11-09 乐视控股(北京)有限公司 Webpage method for monitoring performance and device and the webserver, client
US9923793B1 (en) * 2015-02-20 2018-03-20 Amazon Technologies, Inc. Client-side measurement of user experience quality
CN109271600A (en) * 2018-08-16 2019-01-25 微梦创科网络科技(中国)有限公司 A kind of monitoring method of performance data, system and device
CN110688282A (en) * 2019-09-25 2020-01-14 北京博睿宏远数据科技股份有限公司 Webpage performance data monitoring and monitoring task distribution method and device
US20200213208A1 (en) * 2017-06-02 2020-07-02 Greenisle Inc. Method for automatically monitoring end-to-end end user performance and apparatus for performing the method
KR20200084735A (en) * 2019-01-03 2020-07-13 한국기술교육대학교 산학협력단 Performance analysis system for web application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070083649A1 (en) * 2005-10-12 2007-04-12 Brian Zuzga Performance monitoring of network applications
CN101222349A (en) * 2007-01-12 2008-07-16 中国电信股份有限公司 Method and system for collecting web user action and performance data
US9923793B1 (en) * 2015-02-20 2018-03-20 Amazon Technologies, Inc. Client-side measurement of user experience quality
CN106100936A (en) * 2016-08-10 2016-11-09 乐视控股(北京)有限公司 Webpage method for monitoring performance and device and the webserver, client
US20200213208A1 (en) * 2017-06-02 2020-07-02 Greenisle Inc. Method for automatically monitoring end-to-end end user performance and apparatus for performing the method
CN109271600A (en) * 2018-08-16 2019-01-25 微梦创科网络科技(中国)有限公司 A kind of monitoring method of performance data, system and device
KR20200084735A (en) * 2019-01-03 2020-07-13 한국기술교육대학교 산학협력단 Performance analysis system for web application
CN110688282A (en) * 2019-09-25 2020-01-14 北京博睿宏远数据科技股份有限公司 Webpage performance data monitoring and monitoring task distribution method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SUBRAHMANYAM ALLAMARAJU等: "J2EE服务器端高级编程", 30 September 2001, 机械工业出版社, pages: 1045 - 1048 *
政采云前端团队: "如何从 0 到 1 搭建性能检测系统", Retrieved from the Internet <URL:《https://segmentfault.com/a/1190000037596145?utm_source=sf-similar-article》> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918940A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Computer service system and server

Similar Documents

Publication Publication Date Title
Shang et al. Studying the relationship between logging characteristics and the code quality of platform software
Xu et al. POD-Diagnosis: Error diagnosis of sporadic operations on cloud applications
KR100546973B1 (en) Methods and apparatus for managing dependencies in distributed systems
US7701859B2 (en) Method and apparatus for identifying problem causes in a multi-node system
EP1934818B1 (en) Template based management of services
Keller et al. Classification and computation of dependencies for distributed management
US8769502B2 (en) Template based asynchrony debugging configuration
US20130219361A1 (en) System and method for controlling the development of a software application
US20070265811A1 (en) Using stochastic models to diagnose and predict complex system problems
US10073755B2 (en) Tracing source code for end user monitoring
Tighilt et al. On the study of microservices antipatterns: A catalog proposal
US20180159724A1 (en) Automatic task tracking
CN110147327B (en) Multi-granularity-based web automatic test management method
Oriol et al. Monitoring the service-based system lifecycle with SALMon
Cabrera et al. A quality model for analysing web service monitoring tools
Laranjeiro et al. A robustness testing approach for SOAP Web services
CN116893945A (en) Operation and maintenance cloud platform service early warning method, system and device
CN114697232A (en) Skywalking probe index data acquisition system and method and electronic equipment
Zhang et al. Semantic web based self-management for a pervasive service middleware
CN112631906A (en) Page performance detection method and system based on server
Ceccarelli et al. A service discovery approach for testing dynamic SOAs
US20080162687A1 (en) Data acquisition system and method
Schmieders et al. Architectural runtime models for privacy checks of cloud applications
Inzinger et al. Decisions, Models, and Monitoring--A Lifecycle Model for the Evolution of Service-Based Systems
Yu Applying software wrapping on performance monitoring of web services

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