Method and system for monitoring thread by client and Web server

A technology for monitoring threads and servers, applied in hardware monitoring, instrumentation, program control design, etc., can solve problems such as misoperation, inability to obtain timeout threads, and inability to find the root cause, so as to improve processing efficiency and ensure accuracy.

Inactive Publication Date: 2017-02-01
FUJIAN TQ DIGITAL
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The timeout of existing web threads is generally controlled by the system configuration file. For the request of the timeout configuration duration, the result of timeout exception is directly thrown and the current thread is terminated. parameter
[0003] The above method has the following problems: on the one hand, because the accurate data of the timeout thread cannot be obtained, the processing accuracy of the timeout exception thread is not high, which may easily lead to misoperation; on the other hand, because the administrator cannot know which requests are currently being executed , How long has it been executed, whether it has exceeded the expected time, etc., so it is impossible to analyze the thread timeout problem, and then evaluate the server status, and it is impossible to find the root problem and solve the problem based on the cause of the problem; in order to prevent such phenomena from happening Appear, you can only let the problem continue to appear, affecting the client experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for monitoring thread by client and Web server
  • Method and system for monitoring thread by client and Web server
  • Method and system for monitoring thread by client and Web server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0068] Please refer to figure 2 and image 3 , the present embodiment provides a method for monitoring threads by a client and a Web server, based on a system framework composed of a client (user), a Web server, a monitoring data layer, and a monitoring client;

[0069] The method includes

[0070] S1: After the web server receives the request for accessing site data submitted by the client (user), it creates a thread corresponding to the request;

[0071] S2: The web server sends the thread information including creation time, thread ID and request information to the monitoring data layer;

[0072] Specifically, before performing business logic processing according to the thread, the web server sends the thread information of the thread to the monitoring client. That is, the thread information is sent to the monitoring client in the first software life cycle that receives the request. The software has many stages from the beginning to the end, and each stage is called a s...

Embodiment 2

[0089] This embodiment is a specific application scenario provided on the basis of Embodiment 1.

[0090] Normal thread execution: User A requests a login operation from the site server (Web server), and the site server receives A’s request, creates a thread x, and at the same time the thread id, request time (creation time) and request type of the thread x The thread information is submitted to the monitoring data layer; after the site server processes the user login request, verifies the account password and other steps, submits the information processed by thread x to the monitoring data layer, and returns the result to the user;

[0091] Thread timeout: User B requests a login operation from the site server, the site server receives B's request, creates a thread y, and submits the thread id, request time (creation time), request type, etc. of the thread y to the monitoring data layer ; After that, the site server does not respond for a long time due to abnormalities (datab...

Embodiment 3

[0093] see Figure 5 , this embodiment is a system for monitoring threads provided by a client and a Web server corresponding to Embodiment 1 and Embodiment 2, including a creation module 1, which is used for creating a thread corresponding to the request after the Web server receives a request submitted by a user ;

[0094] Sending module 2, is used for Web server to send the creation time of described thread to monitoring client;

[0095] The comparison module 3 is used to compare the current time and the creation time of the monitoring client to obtain the processing time of the thread;

[0096] The monitoring module 4 is configured to give a prompt if it is monitored that the processing time exceeds a preset threshold. The creation module is specifically used for the Web server to send the creation time of the thread to the monitoring client before performing business logic processing according to the thread. The monitoring module prompts the overtimed thread including ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a system for monitoring a thread by a client and a Web server. The method comprises: after receiving a request, which is submitted by a user, through the Web server, creating the thread corresponding to the request; sending creation time of the thread to a monitoring client through the Web server; comparing current time with the creation time through the monitoring client and acquiring processing duration of the thread; if monitoring that the processing duration exceeds a pre-set threshold value, prompting. By adopting the method and system for monitoring the thread by the client and the Web server, an operation condition of the Web server can be grasped in real time; processing can be carried out in time when abnormal conditions can be found in time before the Web server has a large area of request timeout; furthermore, abnormal business requests can be checked in time according to effective information; the Web server can keep a good working state, the request processing efficiency is improved and user experience is optimized.

Description

technical field [0001] The invention relates to the field of Web thread monitoring, in particular to a thread monitoring method and system for a client and a Web server. Background technique [0002] With regard to the problem of Web thread timeout, no corresponding feasible solution has been given in this field at present. The timeout of existing web threads is generally controlled by the system configuration file. For the request of the timeout configuration duration, the result of timeout exception is directly thrown and the current thread is terminated. parameter. [0003] The above method has the following problems: on the one hand, because the accurate data of the timeout thread cannot be obtained, the processing accuracy of the timeout exception thread is not high, which may easily lead to misoperation; on the other hand, because the administrator cannot know which requests are currently being executed , How long has it been executed, whether it has exceeded the exp...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30G06F11/32G06F9/50
CPCG06F11/3055G06F9/5027G06F11/3017G06F11/324G06F2201/875G06F2209/5018
Inventor 刘德建黄钟贵詹彦安江洪范福生李正岳万恕陈宏展
Owner FUJIAN TQ DIGITAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products