CN108667649A - A kind of malfunction elimination method, apparatus and server - Google Patents

A kind of malfunction elimination method, apparatus and server Download PDF

Info

Publication number
CN108667649A
CN108667649A CN201810298049.8A CN201810298049A CN108667649A CN 108667649 A CN108667649 A CN 108667649A CN 201810298049 A CN201810298049 A CN 201810298049A CN 108667649 A CN108667649 A CN 108667649A
Authority
CN
China
Prior art keywords
flag bit
daily record
operation requests
target
server
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
CN201810298049.8A
Other languages
Chinese (zh)
Other versions
CN108667649B (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.)
Chongqing Xiaoyu Small Loan Co Ltd
Original Assignee
Chongqing Xiaoyu Small Loan 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 Chongqing Xiaoyu Small Loan Co Ltd filed Critical Chongqing Xiaoyu Small Loan Co Ltd
Priority to CN201810298049.8A priority Critical patent/CN108667649B/en
Publication of CN108667649A publication Critical patent/CN108667649A/en
Application granted granted Critical
Publication of CN108667649B publication Critical patent/CN108667649B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

An embodiment of the present invention provides a kind of malfunction elimination method, apparatus and server, wherein method includes:When receiving the operation requests for the first webpage web application, flag bit is added for the operation requests, and the invocation target thread process operation requests, while flag bit is added for the daily record generated in processing procedure.When detecting subject thread failure alarm, is searched in daily record library and include the target journaling of flag bit and export the target journaling, in order to malfunction elimination.Malfunction elimination range can be reduced using the embodiment of the present invention, improve troubleshooting efficiency.

Description

A kind of malfunction elimination method, apparatus and server
Technical field
The present invention relates to computer realm more particularly to a kind of malfunction elimination method, apparatus and servers.
Background technology
In webpage web applications, if multiple threads or multiple processes handle different operations simultaneously, it is easy to go out Existing failure.The method of currently used debugging is all daily record outputs in applying web, then artificial in all daily records The reason of middle lookup is broken down, and then carry out troubleshooting.Obviously the time come into operation with web applications increases, and generates Daily record increase, common debugging method can increase the workload of malfunction elimination, reduce troubleshooting efficiency.
Invention content
An embodiment of the present invention provides a kind of malfunction elimination method, apparatus and servers, can reduce malfunction elimination range, Improve troubleshooting efficiency.
First aspect of the embodiment of the present invention provides a kind of malfunction elimination method, including:
When receiving the operation requests for the first webpage web applications, flag bit is added for operation requests;
Invocation target thread processing operations are asked, and add flag bit for the daily record generated in processing procedure;
When detecting subject thread failure alarm, lookup includes the target journaling of flag bit in daily record library;
Target journaling is exported, target journaling is used for malfunction elimination.
Optionally, after receiving the operation requests for the first webpage web applications, flag bit is added for operation requests Before, malfunction elimination method further includes:
Judge whether carry flag bit in operation requests;If it is not, it is the step of operation requests add flag bit then to execute.
Optionally, it is the daily record addition flag bit generated in processing procedure, including:
Obtain each operation that subject thread call chain in processing operation request process includes;It adds and marks for each operation Will position;Each operation of flag bit will be added as in a log recording to daily record library.
Optionally, flag bit includes the mark of the target interface for sending operation requests, exports target journaling, packet It includes:
Target journaling is sent to marked target interface is identified.
Optionally, when detecting subject thread failure alarm, lookup includes the target of flag bit in daily record library Before daily record, malfunction elimination method further includes:
Judge whether the cooperative node that call chain includes in subject thread processing operation request process has issued fault warning;
If cooperative node does not issue fault warning, the target journaling that the lookup in daily record library includes flag bit is executed Step.
Optionally, in daily record library search include flag bit target journaling, including:
Daily record extraction request is sent to log management server, flag bit is carried in daily record extraction request, daily record extraction is asked Ask be used to indicate log management server and searched in the daily record library of itself include flag bit extraction daily record;
Receive the extraction daily record that log management server is sent;
Daily record will be extracted as target journaling.
Optionally, it is operation requests addition flag bit, including:In the hypertext transfer protocol HTTP gauge outfits of operation requests Flag bit is added.
Second aspect of the embodiment of the present invention provides a kind of malfunction elimination device, including:
Receiving unit, for receiving the operation requests for the first webpage web applications;
Adding device, for when receiving unit receives operation requests, flag bit to be added for operation requests;
Processing unit is asked for invocation target thread processing operations;
Adding device is additionally operable to add flag bit for the daily record generated in processing procedure;
Searching unit, for when detecting that subject thread breaks down, lookup to include the mesh of flag bit in daily record library Mark daily record;
Output unit, for exporting target journaling, target journaling is used for malfunction elimination.
Optionally, malfunction elimination device further includes:Judging unit is received for working as receiving unit for the first webpage When the operation requests of web applications, judge whether carry flag bit in operation requests.
Optionally, adding device is used to be that the concrete mode that flag bit is added in the daily record generated in processing procedure is:
Obtain each operation that subject thread call chain in processing operation request process includes;It adds and marks for each operation Will position;Each operation of flag bit will be added as in a log recording to daily record library.
Optionally, flag bit includes the mark of the target interface for sending the operation requests, and output unit is specific For:The target journaling is sent to marked target interface is identified.
Optionally, judging unit is additionally operable to judge the cooperation that call chain includes in subject thread processing operation request process Whether node has issued fault warning.
Optionally, searching unit is specifically used for:
Daily record extraction request is sent to log management server, flag bit is carried in daily record extraction request, daily record extraction is asked Ask be used to indicate log management server and searched in the daily record library of itself include flag bit extraction daily record;
Receive the extraction daily record that log management server is sent;
Daily record will be extracted as target journaling.
Optionally, adding device is used to be that the concrete mode that operation requests add flag bit is:In the super text of operation requests Flag bit is added in this transport protocol HTTP gauge outfits.
The present invention implements the third aspect and provides a kind of server, including processor, network interface and memory, handles Device, network interface and memory are connected with each other, wherein for memory for storing computer program, computer program includes program Instruction, processor are configured for caller instruction, execute the failure Slagoff method of first aspect.
Fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, and computer readable storage medium is deposited Contain computer program, computer program includes program instruction, and program instruction makes processor execute the when being executed by a processor The malfunction elimination method of one side.
The embodiment of the present invention is asked when server receives the operation requests for the first webpage web applications for the operation Addition flag bit is sought, and starts subject thread and handles the operation requests, while being raw in subject thread processing operation request process At daily record add flag bit.If detecting that subject thread breaks down to alert, that is to say, that subject thread is in processing operation It breaks down in request process, then can extract the flag bit in subject thread, it includes the flag bit to be searched in daily record library Target journaling, and the target journaling is exported, in order to carry out malfunction elimination, malfunction elimination range can be reduced, is improved at failure Manage efficiency.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of malfunction elimination method flow schematic diagram provided in an embodiment of the present invention;
Fig. 2 is another malfunction elimination method flow schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of malfunction elimination apparatus structure schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific implementation mode
It has been investigated that the malfunction elimination method of web applications at present is daily record is more or multiple web applications collaborative process In the case of some operation requests, cause the efficiency of troubleshooting low.For this problem, the embodiment of the present invention proposes a kind of event Barrier investigation method, apparatus and server:In web framework establishments web in application, the middleware that can add flag is added to In web applications, when receiving the operation requests for the first webpage web applications, the server calls middleware is the operation Request addition flag bit.Then, server calls subject thread handles the operation requests, and the day to be generated in processing procedure Will adds flag bit.When detecting subject thread during handling the operation requests and breaking down alarm namely target When breaking down in thread processing operations request process, server searched in daily record library include flag bit target journaling, most Target journaling is exported afterwards, in order to which staff carries out malfunction elimination in target journaling.Ensure the target day of output in this way Will be with the relevant daily record of the subject thread of failure, reduce malfunction elimination range, accelerate the malfunction elimination time, in turn Improve troubleshooting efficiency.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
It is a kind of flow diagram of malfunction elimination method provided in an embodiment of the present invention, such as the failure of Fig. 1 with reference to figure 1 Investigation method, it may include following steps:
101, when receiving the operation requests for the first webpage web applications, server is operation requests addition mark Position.
Wherein, the operation requests of the first webpage web applications can be inquiry creditor's income information, or can also be to look into Ask the loan history information etc. of creditor.Optionally, when receiving operation requests, server can call middleware to be should Operation requests add flag bit, wherein the middleware can refer to when web framework establishments web applies for web application additions, should Flag bit and the operation requests are uniquely corresponding namely the flag bit is equivalent to the identity of operation requests.Optionally, server Flag bit is added for the operation requests, including:In hypertext transfer protocol (the Hyper Text Transfer of the operation requests Protocol, HTTP) flag bit is added in gauge outfit.Or server can also be operation requests addition mark by other means Will position is not specifically limited in the embodiment of the present invention.
Optionally, it after receiving the operation requests for the first webpage web applications, adds and indicates for the operation requests Before position, further include:Judge whether carry flag bit in the operation requests;If it is not, it is operation requests addition mark then to execute The step of will position.In other words, the operation requests for the first web applications may be to be triggered by user, it is also possible to by it What his web application or other equipment were sent.Flag bit is not carried in operation requests by user's triggering, is applied by other web Or in the operation requests of other equipment transmission, flag bit may be carried, it is also possible to not carry flag bit.Therefore, server First judge whether carry flag bit in the operation requests before adding flag bit for operation requests:It is taken if carrying flag bit Business device can not then execute the step of adding flag bit for the operation requests;Server, which can perform, if not carrying flag bit is The operation requests add the step of flag bit, can avoid going out the case where repeating addition flag bit for same operation requests in this way It is existing, to save server energy consumption expense.
102, server calls subject thread processing operation is asked, and the daily record addition mark to be generated in processing procedure Position.
Optionally, server can select an idle thread as subject thread from multiple threads and handle aforesaid operations Request, and subject thread can store the flag bit in operation requests into the attribute of subject thread itself, can also manage Solution is once subject thread start to process includes the operation requests of flag bit, then the subject thread is associated with the operation requests.
Optionally, server can be each daily record addition mark generated during subject thread processing operation is asked Position, and will be in above-mentioned each daily record storage to local daily record library or log management server including flag bit.That is, When server calls subject thread handles aforesaid operations request, the flag bit that operation requests can be included by subject thread is stored in In the attribute of subject thread.In subject thread handles aforesaid operations request process, server can call journal module to read mesh Flag bit in graticule journey, the criteria field in the daily record generated when which is asked as the subject thread processing operation A part, namely the every daily record printed under the subject thread all carries the flag bit, is asked thus, operate Ask, subject thread and subject thread daily record three it is interrelated, identical flag bit is all carried in three, if it is known that operation The flag bit of request can find the subject thread for handling the operation requests and the subject thread handles the operation requests mistake All log informations generated in journey, so may be implemented quickly to be found in daily record library according to flag bit and subject thread Associated daily record.
103, when detect subject thread break down alarm when, server searched in daily record library include flag bit mesh Mark daily record.
Optionally, when server detects the subject thread failure alarm of processing operation request, show score Journey breaks down when processing operation is asked, and traditional malfunction elimination method is by all daily record outputs in daily record library, and work people Member searches the reason of subject thread breaks down in all daily records, then uses the relevant technologies handling failure.The present invention is real It applies in example, when detecting that the subject thread of processing operation request breaks down, server can obtain the subject thread and include Flag bit, then searched in daily record library include the flag bit target journaling, and target journaling is exported, in order to work Make personnel and carries out malfunction elimination in target journaling.Compared with conventional failure investigates method, failure provided in an embodiment of the present invention Investigation method reduces malfunction elimination range, and then can improve troubleshooting efficiency.
Optionally, when server detect subject thread break down in processing operation request process alarm when, in day Lookup includes the target journaling of flag bit in will library, it may include:Lookup includes the first daily record of flag bit in local daily record library; The server applied to the 2nd web sends daily record call request;Receive the second daily record that the server of the 2nd web applications is sent; Using the first daily record and the second daily record as target journaling.Wherein, flag bit, daily record call request are carried in daily record call request Be used to indicate the 2nd web application server is searched in the daily record library of itself include flag bit second indicate.That is, If the daily record of each web applications is stored in local, in the server for based on the operation requests needing that the 2nd web is called to apply In the case of the execution business that cooperates, if the subject thread of the operation requests breaks down, server can be applied first in the first web Local daily record library in search include flag bit the first daily record, then server can be by the form of broadcast to the 2nd web The server of application sends daily record call request.After the server of 2nd web applications receives the daily record call request, it can detect It whether is stored with the second daily record including the flag bit in its local daily record library, if so, the then service of the 2nd web applications Second daily record is returned to server by device;If it is not, the server of the 2nd web applications can not do any response.Server The first daily record and the second daily record called from the 2nd web application servers will be found in local daily record library as target journaling Output.Wherein, the first log content, which can be empty namely the first daily record, not to have, and illustrate when the first log content is empty The process that subject thread handles the operation requests is completely by calling the 2nd web application cooperation completions, therefore subject thread The daily record generated in processing procedure is stored in the 2nd web using in local.Optionally, it includes at least one web that the 2nd web, which is applied, Using, that is to say, that the operation requests of the first web applications can be completed by several web application cooperations.
104, server exports target journaling.
Optionally, server is including the target interface for sending the operation requests for the flag bit that operation requests are added Mark exports target journaling, including:Target journaling is sent to marked target interface is identified.In simple terms, server may Multiple external interfaces are provided, for receiving and handling different task requests, server is asked for operation in the embodiment of the present invention It seeks addition flag bit simultaneously, also adds mark to send the target interface of the operation requests, can occur in this way in subject thread It in the case of failure, will be exported to target interface with the relevant target journaling of the subject thread, failure is investigated convenient for staff, Staff can be thus made according to target journaling to be just to learn it is which operation requests occurs by the output of which interface Failure.
In the embodiment of the present invention when receiving the operation requests for the first webpage web applications, server is the operation Request addition flag bit, and start subject thread and handle the operation requests, while in subject thread processing operation request process Flag bit is added in the daily record of generation.If detecting that subject thread breaks down, the flag bit in subject thread can be extracted, Searched in daily record library include the flag bit target journaling, and export the target journaling, can be in order to carry out malfunction elimination Malfunction elimination range is reduced, troubleshooting efficiency is improved.
It is a kind of schematic flow diagram of malfunction elimination method provided in an embodiment of the present invention, such as the failure of Fig. 2 with reference to figure 2 Investigation method, it may include following steps:
201, when receiving the operation requests for the first webpage web applications, server is operation requests addition mark Position.
202, server calls subject thread processing operation is asked.
The feasible embodiments of step 201-202 specifically describe in the embodiment shown in fig. 1, and details are not described herein.
203, server obtains each operation that subject thread call chain during processing operation is asked includes, and is each Flag bit is added in a operation.
204, server will be added to each operation of flag bit as in a log recording to daily record library.
In step 203, call chain can refer to entire processing procedure of at least one server to operation requests.It is simple next It says, when server process operation requests, it may be necessary to which the cooperation of other web application servers executes.It is handled to operation requests In the process, the process that each server participation handles the operation requests can be referred to as an operation stream, the operation of multiple servers Stream composition call chain.Optionally, when receiving the operation requests for the first webpage web applications, if server judges this Operation requests do not carry flag bit, then add flag bit for the operation requests, and then invocation target thread processing operations are asked, And flag bit is added for the daily record generated in processing procedure, specifically it may include:Server obtains subject thread in processing operation Each operation that call chain includes in request process adds flag bit for each operation;The each operation for adding flag bit is made For in a log recording to daily record library.That is, after the request of server calls subject thread processing operation, monitoring server And the operation for participating in the every other server in the operation requests processing procedure is obtained, flag bit is added for each operation, is made Then each server will be added to each operation of flag bit to carrying flag bit in each step of the operation requests As in a daily record storage to daily record library.Thus, which every daily record in daily record library under the subject thread has identity Mark, which, which can be used for distinguishing every daily record, is printed under which thread.
205, when detecting subject thread failure alarm, server judges subject thread processing operation request process Whether the cooperative node that middle call chain includes has issued fault warning.
If 206, cooperative node does not issue fault warning, server searched in daily record library include flag bit target day Will.
207, server exports target journaling.
In step 205, the cooperative node that call chain includes refers in subject thread processing operation request process, cooperation Other servers of the server process operation requests, optionally, if server detects that subject thread processing operation is asked When break down, can first judge whether that other servers for participating in the operation requests have issued fault warning:If other take It is engaged in the issued fault warning of device, then shows the failure occurred in handling the subject thread via other servers, because This fault warning then can be ignored in this server, does not execute the step that the target journaling for including flag bit is searched in daily record library Suddenly, the power dissipation overhead of server can be saved in this way;The alarm if other servers do not break down shows that there are no other It breaks down in the server process subject thread, therefore server can perform step 206, to ensure failure in the subject thread It can be investigated and be removed in time.
Optionally, in step 206, if the daily record of each web applications is stored in log management server, When subject thread breaks down, server needs from searching in log management server under the subject thread to include flag bit Target journaling.Optionally, it includes that the target journaling of flag bit includes that server is searched in daily record library:To log management server Daily record extraction request is sent, and carries flag bit in daily record extraction request, daily record extraction request is used to indicate log management service Device searched in the daily record library of itself include flag bit extraction daily record;Receive the extraction daily record that log management server is sent; Daily record will be extracted as target journaling.In other words, the call request that server can carry flag bit by one is from daily record Invocation target daily record in management server.Wherein, the daily record stored in log management server can be according to web using not Together, each web daily records applied are stored separately, for example the classification of storage daily record can be in log management server:First The daily record etc. of the daily record of web applications, the daily record of the 2nd web applications and the 3rd web applications.Or in log management server The daily record of storage can also store all web daily records applied according to time or size, such as log management service The daily record of 3 web applications is stored in device, all daily records that can apply 3 web are according to the time from the near to the remote or by remote It is either descending or ascending stored according to daily record to closely being stored.The embodiment of the present invention only enumerates two The mode of daily record is stored in the possible log management server of kind, the daily record stored in log management server can also be according to it He stores mode.
Optionally, in step 206, if the daily record stored in log management server is the difference applied according to web Be stored separately, then server to log management server send daily record extraction request when, the daily record extraction request in addition to Flag bit is carried, web application identities can also be carried, which is used to indicate log management server corresponding Web application daily records classification is lower to search target journaling.In this way, the daily record seeking scope that can abridge, guarantee quickly finds target day Will simultaneously exports, and can improve malfunction elimination efficiency.Wherein, the quantity of web application identities is at least one, when web application identities Quantity be one and when the web application identities are the first web application identities, show that the operation requests that server receives are not required to The cooperation of other web application servers is wanted to complete;It wraps when the quantity of web application identities is two or more and wherein When including the mark of the first web applications, show that the operation requests that server receives need one or more web application server Cooperation is completed.
Server of the embodiment of the present invention is the operation requests addition flag bit received, and the invocation target thread process behaviour It asks.During subject thread processing operation is asked, server obtains each behaviour that call chain includes in processing procedure Make, after adding flag bit for each operation, each operation of flag bit will be added to as in a daily record storage to daily record library. If detect the subject thread failure alarm for handling the operation requests, and cooperative node is not sent out in call chain In the case of cloth fault warning, server searched in daily record library include flag bit target journaling and output, in order to work Personnel carry out troubleshooting, can reduce malfunction elimination range, improve troubleshooting efficiency.
It is a kind of structural schematic diagram of malfunction elimination device provided in an embodiment of the present invention, such as the failure of Fig. 3 with reference to figure 3 Examination device, it may include:Receiving unit 301, adding device 302, processing unit 303, searching unit 304 and output unit 305。
Receiving unit 301, for receiving the operation requests for the first webpage web applications;
Adding device 302, for when receiving unit receives operation requests, flag bit to be added for operation requests;
Processing unit 303 is asked for invocation target thread processing operations;
Adding device 302 is also useful for adding flag bit for the daily record generated in processing procedure;
Searching unit 304, for when detecting subject thread failure alarm, it to include mark to be searched in daily record library The target journaling of position;
Output unit 305, for exporting target journaling, target journaling is used for malfunction elimination.
Optionally, malfunction elimination device further includes:Judging unit 306 is received for working as receiving unit 301 for first When the operation requests of webpage web applications, judge whether carry flag bit in operation requests.
Optionally, adding device 302 is used to be that the concrete mode that flag bit is added in the daily record generated in processing procedure is:
Obtain each operation that subject thread call chain in processing operation request process includes;It adds and marks for each operation Will position;Each operation of flag bit will be added as in a log recording to daily record library.
Optionally, flag bit includes the mark of the target interface for sending the operation requests, and output unit 305 has Body is used for:The target journaling is sent to marked target interface is identified.
Optionally, judging unit 306 are additionally operable to judge the association that call chain includes in subject thread processing operation request process Make whether node has issued fault warning.
Optionally, searching unit 304 is specifically used for:
Daily record extraction request is sent to log management server, flag bit is carried in daily record extraction request, daily record extraction is asked Ask be used to indicate log management server and searched in the daily record library of itself include flag bit extraction daily record;
Receive the extraction daily record that log management server is sent;
Daily record will be extracted as target journaling.
Optionally, adding device 302 is used to be that the concrete mode that operation requests add flag bit is:In the super of operation requests Flag bit is added in text transfer protocol HTTP gauge outfits.
The present embodiment is when receiving unit 301 receives the operation requests for the first webpage web applications, adding device 302 add flag bit, 303 invocation target thread process operation requests of processing unit, while adding device for the operation requests Flag bit is added in 302 daily record to be generated in subject thread processing operation request process.If detecting that event occurs in subject thread Barrier alarm when, searching unit 304 is searched in daily record library include the flag bit target journaling, output unit 305 output the mesh Daily record is marked, in order to carry out malfunction elimination, malfunction elimination range can be reduced, improve troubleshooting efficiency.
It is understood that each function module of the processing data information device of the present embodiment, the function of unit can bases Method specific implementation in above method embodiment, the correlation that specific implementation process is referred to above method embodiment are retouched It states, details are not described herein again.
It is a kind of schematic block diagram of server provided in an embodiment of the present invention referring to Fig. 3.The present embodiment as shown in the figure In terminal may include:One or more processors 401;One or more network interfaces 402 and memory 403.Above-mentioned place Reason device 401, network interface 402 and memory 403 are connected by bus 404.Memory 403 is counted for storing computer program Calculation machine program includes program instruction, and processor 401 is used to execute the program instruction of the storage of memory 403.Wherein, processor 401 It is configured for caller instruction execution:
When receiving the operation requests for the first webpage web applications, flag bit is added for operation requests;
Invocation target thread processing operations are asked, and add flag bit for the daily record generated in processing procedure;
When detecting subject thread failure alarm, lookup includes the target journaling of flag bit in daily record library;
Target journaling is exported, target journaling is used for malfunction elimination.
Optionally, after receiving the operation requests for the first webpage web applications, flag bit is added for operation requests Before, processor 401 be configured for caller instruction also execute:
Judge whether carry flag bit in operation requests;If it is not, it is the step of operation requests add flag bit then to execute.
Optionally, it is that flag bit is added in the daily record generated in processing procedure, processor 401 is configured for caller Instruction is specific to be executed:
Obtain each operation that subject thread call chain in processing operation request process includes;It adds and marks for each operation Will position;Each operation of flag bit will be added as in a log recording to daily record library.
Optionally, flag bit includes the mark of the target interface for sending operation requests, exports target journaling, processing Device 401 is configured for the specific execution of caller instruction:
Target journaling is sent to marked target interface is identified.
Optionally, when detecting subject thread failure alarm, lookup includes the target of flag bit in daily record library Before daily record, processor 401 is configured for caller instruction and also executes:
Judge whether the cooperative node that call chain includes in subject thread processing operation request process has issued fault warning;
If cooperative node does not issue fault warning, the target journaling that the lookup in daily record library includes flag bit is executed Step.
Optionally, searched in daily record library include flag bit target journaling, processor 401 is configured for caller Instruction is specific to be executed:
Daily record extraction request is sent to log management server, flag bit is carried in daily record extraction request, daily record extraction is asked Ask be used to indicate log management server and searched in the daily record library of itself include flag bit extraction daily record;
Receive the extraction daily record that log management server is sent;
Daily record will be extracted as target journaling.
Optionally, it is that operation requests add flag bit, processor 401 is configured for the specific execution of caller instruction: Flag bit is added in the hypertext transfer protocol HTTP gauge outfits of operation requests.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Reception or transmission data when the network interface 402 is for connecting network
The memory 403 may include read-only memory and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 403 can also include nonvolatile RAM.For example, memory 403 can also be deposited Store up the information of device type.
In the specific implementation, processor 401 described in the embodiment of the present invention, network interface 402 and memory 403 can Execute the method for malfunction elimination provided in an embodiment of the present invention embodiment shown in FIG. 1 and embodiment shown in Fig. 2 in retouched The realization method stated also can perform the realization method of malfunction elimination device described in Fig. 3 of the embodiment of the present invention, no longer superfluous herein It states.
A kind of computer readable storage medium is provided in an embodiment of the present invention, and computer-readable recording medium storage has Computer program, computer program include program instruction, are realized when program instruction is executed by processor:
When receiving the operation requests for the first webpage web applications, flag bit is added for operation requests;
Invocation target thread processing operations are asked, and add flag bit for the daily record generated in processing procedure;
When detecting subject thread failure alarm, lookup includes the target journaling of flag bit in daily record library;
Target journaling is exported, target journaling is used for malfunction elimination.
Optionally, after receiving the operation requests for the first webpage web applications, flag bit is added for operation requests Before, it is also realized when program instruction is executed by processor:
Judge whether carry flag bit in operation requests;If it is not, it is the step of operation requests add flag bit then to execute.
Optionally, it is that flag bit is added in the daily record generated in processing procedure, it is specific when program instruction is executed by processor It realizes:
Obtain each operation that subject thread call chain in processing operation request process includes;It adds and marks for each operation Will position;Each operation of flag bit will be added as in a log recording to daily record library.
Optionally, flag bit includes the mark of the target interface for sending operation requests, exports target journaling, program Instruction implements when being executed by processor:
Target journaling is sent to marked target interface is identified.
Optionally, when detecting subject thread failure alarm, lookup includes the target of flag bit in daily record library Before daily record, also realized when program instruction is executed by processor::
Judge whether the cooperative node that call chain includes in subject thread processing operation request process has issued fault warning;
If cooperative node does not issue fault warning, the target journaling that the lookup in daily record library includes flag bit is executed Step.
Optionally, in daily record library search include flag bit target journaling, it is specific when program instruction is executed by processor It realizes:
Daily record extraction request is sent to log management server, flag bit is carried in daily record extraction request, daily record extraction is asked Ask be used to indicate log management server and searched in the daily record library of itself include flag bit extraction daily record;
Receive the extraction daily record that log management server is sent;
Daily record will be extracted as target journaling.
Optionally, it is that operation requests add flag bit, is implemented when program instruction is executed by processor::It is asked in operation Flag bit is added in the hypertext transfer protocol HTTP gauge outfits asked.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Instruct relevant hardware to complete by computer program, program can be stored in a computer read/write memory medium, The program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, storage medium can be magnetic disc, CD, Read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
It is above disclosed to be only a preferred embodiment of the present invention, the power of the present invention cannot be limited with this certainly Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and is weighed according to the present invention Equivalent variations made by profit requirement, still belong to the scope covered by the invention.

Claims (10)

1. a kind of malfunction elimination method, which is characterized in that including:
When receiving the operation requests for the first webpage web applications, flag bit is added for the operation requests;
Operation requests described in invocation target thread process, and add the flag bit for the daily record generated in processing procedure;
When detecting the subject thread failure alarm, lookup includes the target day of the flag bit in daily record library Will;
The target journaling is exported, the target journaling is used for malfunction elimination.
2. according to the method described in claim 1, it is characterized in that, described work as the behaviour received for the first webpage web applications After asking, before adding flag bit for the operation requests, the method further includes:
Judge whether carry flag bit in the operation requests;
If it is not, it is the step of operation requests add flag bit then to execute.
3. method according to claim 1 or 2, which is characterized in that the daily record addition to be generated in processing procedure The flag bit, including:
Obtain the subject thread each operation that call chain includes during handling the operation requests;
The flag bit is added for each operation;
Each operation of the flag bit will be added as in a log recording to daily record library.
4. method according to claim 1 or 2, which is characterized in that the flag bit includes for sending the operation The mark of the target interface of request, the output target journaling, including:
The target journaling is sent to the target interface marked.
5. according to the method described in claim 4, it is characterized in that, described ought detect the subject thread failure alarm When, in daily record library search include the flag bit target journaling before, the method further includes:
Judge whether the cooperative node that call chain includes during the subject thread handles the operation requests has issued failure Alarm;
If the cooperative node does not issue fault warning, the target day that the lookup in daily record library includes the flag bit is executed The step of will.
6. method according to claim 1 or 2, which is characterized in that described searched in daily record library includes the flag bit Target journaling, including:
Daily record extraction request is sent to log management server, the flag bit, the day are carried in the daily record extraction request Will extraction request be used to indicate the log management server and searched in the daily record library of itself include the flag bit extraction Daily record;
Receive the extraction daily record that the log management server is sent;
Using the extraction daily record as the target journaling.
7. method according to claim 1 or 2, which is characterized in that described to add flag bit, packet for the operation requests It includes:
The flag bit is added in the hypertext transfer protocol HTTP gauge outfits of the operation requests.
8. a kind of fault removal device, which is characterized in that including:
Receiving unit, for receiving the operation requests for the first webpage web applications;
Adding device, for when receiving unit receives the operation requests, flag bit to be added for the operation requests;
Processing unit, for operation requests described in invocation target thread process;
The adding device is additionally operable to add the flag bit for the daily record generated in processing procedure;
Searching unit, for when detecting the subject thread failure alarm, it to include the mark to be searched in daily record library The target journaling of will position;
Output unit, for exporting the target journaling, the target journaling is used for malfunction elimination.
9. a kind of server, which is characterized in that including processor, network interface and memory, the processor, the network connect Mouth and the memory are connected with each other, wherein for the memory for storing computer program, the computer program includes journey Sequence instructs, and the processor is configured for calling described program instruction, executes such as any one of them sides claim 1-7 Method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program include program instruction, and described program instruction makes the processor execute such as when being executed by a processor Claim 1-7 any one of them methods.
CN201810298049.8A 2018-03-30 2018-03-30 A kind of malfunction elimination method, apparatus and server Active CN108667649B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810298049.8A CN108667649B (en) 2018-03-30 2018-03-30 A kind of malfunction elimination method, apparatus and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810298049.8A CN108667649B (en) 2018-03-30 2018-03-30 A kind of malfunction elimination method, apparatus and server

Publications (2)

Publication Number Publication Date
CN108667649A true CN108667649A (en) 2018-10-16
CN108667649B CN108667649B (en) 2019-09-27

Family

ID=63782175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810298049.8A Active CN108667649B (en) 2018-03-30 2018-03-30 A kind of malfunction elimination method, apparatus and server

Country Status (1)

Country Link
CN (1) CN108667649B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474809A (en) * 2019-08-20 2019-11-19 北京百度网讯科技有限公司 Method and apparatus for output information
CN111182291A (en) * 2020-01-02 2020-05-19 北京京东振世信息技术有限公司 Video maintenance method, maintenance end, server, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159809A (en) * 2015-09-29 2015-12-16 杭州华为数字技术有限公司 State machine based fault positioning method and apparatus
CN105391772A (en) * 2015-10-16 2016-03-09 百度在线网络技术(北京)有限公司 Service request processing method, log processing method and service request processing device
CN106533810A (en) * 2016-12-28 2017-03-22 Tcl集团股份有限公司 Log management methods, terminal and cloud server
CN107018023A (en) * 2017-04-17 2017-08-04 广东浪潮大数据研究有限公司 A kind of server diagnostic method, apparatus and system
CN107545067A (en) * 2017-09-13 2018-01-05 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159809A (en) * 2015-09-29 2015-12-16 杭州华为数字技术有限公司 State machine based fault positioning method and apparatus
CN105391772A (en) * 2015-10-16 2016-03-09 百度在线网络技术(北京)有限公司 Service request processing method, log processing method and service request processing device
CN106533810A (en) * 2016-12-28 2017-03-22 Tcl集团股份有限公司 Log management methods, terminal and cloud server
CN107018023A (en) * 2017-04-17 2017-08-04 广东浪潮大数据研究有限公司 A kind of server diagnostic method, apparatus and system
CN107545067A (en) * 2017-09-13 2018-01-05 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474809A (en) * 2019-08-20 2019-11-19 北京百度网讯科技有限公司 Method and apparatus for output information
CN111182291A (en) * 2020-01-02 2020-05-19 北京京东振世信息技术有限公司 Video maintenance method, maintenance end, server, system and storage medium
CN111182291B (en) * 2020-01-02 2021-04-30 北京京东振世信息技术有限公司 Video maintenance method, maintenance end, server, system and storage medium
US11777787B2 (en) 2020-01-02 2023-10-03 Beijing Jingdong Zhenshi Information Technology Co., Ltd. Video-based maintenance method, maintenance terminal, server, system and storage medium

Also Published As

Publication number Publication date
CN108667649B (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN108459939A (en) A kind of log collecting method, device, terminal device and storage medium
CN103441861B (en) A kind of data record generation method and device
CN111030857A (en) Network alarm method, device, system and computer readable storage medium
CN111274604B (en) Service access method, device, equipment and computer readable storage medium
JP5035068B2 (en) Service processing status analysis program, service processing status analysis device, and service processing status analysis method
WO2019001312A1 (en) Method and apparatus for realizing alarm association, and computer readable storage medium
CN112350854B (en) Flow fault positioning method, device, equipment and storage medium
CN105516266B (en) A kind of business monitoring method, system and relevant device
CN108462598A (en) A kind of daily record generation method, log analysis method and device
CN108667649B (en) A kind of malfunction elimination method, apparatus and server
JP5050357B2 (en) Logging information management method, logging information management system, and logging information management means
CN104639386B (en) fault location system and method
CN101605075B (en) IP telephone fault alarming method and apparatus based on SIP
CN110275992A (en) Emergency processing method, device, server and computer readable storage medium
CN108039956A (en) Using monitoring method, system and computer-readable recording medium
US9531798B2 (en) Pandemic remote access design
CN113407374A (en) Fault processing method and device, fault processing equipment and storage medium
CN115865734B (en) Fault detection method, data generation method, device, equipment and medium
CN107306416A (en) The recording method of business diary and device
CN116881100A (en) Log detection method, log alarm method, system, equipment and storage medium
CN113472881B (en) Statistical method and device for online terminal equipment
CN111698109A (en) Method and device for monitoring log
CN115080363A (en) System capacity evaluation method and device based on service log
CN114598622A (en) Data monitoring method and device, storage medium and computer equipment
CN113596170A (en) Load balancing equipment-based shutdown processing method, device, medium and 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