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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com