CN106339379B - Website running state monitoring method and device - Google Patents

Website running state monitoring method and device Download PDF

Info

Publication number
CN106339379B
CN106339379B CN201510393900.1A CN201510393900A CN106339379B CN 106339379 B CN106339379 B CN 106339379B CN 201510393900 A CN201510393900 A CN 201510393900A CN 106339379 B CN106339379 B CN 106339379B
Authority
CN
China
Prior art keywords
module
subservice
run
business
website
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.)
Active
Application number
CN201510393900.1A
Other languages
Chinese (zh)
Other versions
CN106339379A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510393900.1A priority Critical patent/CN106339379B/en
Publication of CN106339379A publication Critical patent/CN106339379A/en
Application granted granted Critical
Publication of CN106339379B publication Critical patent/CN106339379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of website running state monitoring method and devices, which comprises when running the business module of the website divided in advance, records the module id and initial operation time of the business module;In preset time range after the initial operation time, when not receiving the response message including the module id, the corresponding running state information of the module id is registered as error message;Wherein, the response message is generated by the response submodule being preset in the business module;The run-time error log of the business module is generated according to the error message and is sent to server.Compared with prior art, the reason for generating abnormal can be navigated in the operational process of specific business module when the error-logging information based on grammer is indefinite, and then can finds and generates abnormal program and be modified, improve the quality of website operation.

Description

Website running state monitoring method and device
Technical field
The present invention relates to Internet technical fields, more specifically, are related to a kind of website running state monitoring method and dress It sets.
Background technique
Currently, network has penetrated into each corner of people's work and life, as the information exchange window of network, net The function and operating status stood are more and more important.Wherein, the function of website is realized by computer program, when people use browsing When device runs website, browser runs the website by the corresponding program in load website.In order to guarantee that website is in good fortune Row state, browser monitor the mistake occurred in loading procedure in loading procedure, go out when if loading certain section of program Existing mistake, then error message of dishing out, the client where browser is according to error message generation error log, and by error log It is sent to the corresponding server in website.Developer according to server the original that is operating abnormally of received error log locating websites Cause improves the quality of website operation in order to correct the part of website abnormal operation.
The existing mode for monitoring error message is that each section of code conversion is executable file by browser, if certain section Code can not be converted to executable file, then it is assumed that mistake occurs in the grammer of this section of code, then the corresponding language for generating this section of program Method error message.Error message is integrally formed error log by client, the content and the section to be pointed out faults by error log Then the line number of program code sends server for error log.
However, website run-time error is not certain section due to the influence of a variety of causes such as browser function or network environment There is mistake in the grammer of code, for example, operation logic mistake;Alternatively, due to being packaged front-end code compression and file, institute There is code all in the first row, then, by the obtained error log of the syntax error of monitor code, the content of error message And it is indefinite, for example, javascript run-time error or the 1st row are undefined etc., cause developer can not be according to wrong day The information of will is positioned to the reason of operation exception, so that abnormal program can not be corrected, and then can not improve website operation Quality.
Summary of the invention
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of website running state monitoring method and device, It is able to solve due to the information of error log indefinite generated the problem of can not positioning abnormal cause, so as to exception Program is modified, and then improves the quality of website operation.
In a first aspect, the present invention provides a kind of website running state monitoring methods, comprising: when running the pre- of the website When the business module first divided, the module id and initial operation time of the business module are recorded;When starting operation Between after preset time range in, when not receiving the response message including the module id, by the module id pair The running state information answered is registered as error message;Wherein, the response message is by the response that is preset in the business module Submodule generates;The run-time error log of the business module is generated according to the error message and is sent to server.
In the first possible embodiment of first aspect, in module id and the starting for recording the business module After runing time, the corresponding running state information of the module id is registered as before error message, further includes: reading is worked as The sub-mark of preceding subservice module;Judge whether the operating status of the current subservice module is correct;If the current son The operating status of business module is correct, judges whether the current subservice module is the last one subservice module to be run; If the current subservice module is the last one subservice module to be run, triggers the response submodule and send the sound Answer information;If the current subservice module is not the last one subservice module to be run, the current subservice is run Next subservice module of module, and the step of repeating the sub-mark for reading current subservice module;If institute The operating status mistake of current subservice module is stated, executes and the running state information of the business module is registered as error message The step of.
With reference to the above first aspect, in second of possible embodiment of first aspect, the industry is recorded described Before the module id and initial operation time of module of being engaged in, further includes: receive run signal, include described in the run signal The module id of business module.
With reference to the above first aspect, described according to the mistake in the third possible embodiment of first aspect Information generates the run-time error log of the business module and is sent to server, comprising: is searched and is transported according to the error message The subservice module of row status error;Obtain the corresponding program segment of the subservice module;By the son mark of the subservice module Know the content for being determined as the run-time error log with described program section.
With reference to the above first aspect, described according to the mistake in the 4th kind of possible embodiment of first aspect Information generates the run-time error log of the business module and is sent to server, comprising: obtains the interface display of the website Figure;The interface display diagram is determined as to the reference comparative diagram of the run-time error log content.
Second aspect, the present invention provides a kind of website device for monitoring running state, comprising: recording unit, for transporting When the business module of the row website divided in advance, the module id and initial operation time of the business module are recorded;It steps on Unit is remembered, for not receiving including the module id in the preset time range after the initial operation time When response message, the corresponding running state information of the module id of the recording unit records is registered as error message;Wherein, The response message is generated by the response submodule being preset in the business module;Generation unit, for according to the registration The error message of unit record generates the run-time error log of the business module and is sent to server.
In conjunction with second aspect, in the first possible embodiment of second aspect, further includes: reading unit is used for Read the sub-mark of current subservice module;Judging unit, for judge the current subservice module operating status whether Correctly;When the operating status of the current subservice module is correct, the judging unit is also used to judge the current sub- industry Whether module of being engaged in is the last one subservice module to be run;When the operating status mistake of the current subservice module, institute It states registration unit and the running state information of the business module is registered as error message;Trigger unit, for described current Subservice module is the last one when running subservice module, triggers the response submodule and sends the response message;Fortune Row unit runs the current son for not being the last one when running subservice module in the current subservice module Next subservice module of business module;And the sub-mark of current subservice module is read by the reading unit.
In conjunction with above-mentioned second aspect, in second of possible embodiment of second aspect, further includes: receiving unit, It include the module id of the business module for receiving run signal, in the run signal.
In conjunction with above-mentioned second aspect, in the third possible embodiment of second aspect, the generation unit includes, Subelement is searched, subelement is obtained and determines subelement, wherein the lookup subelement, for being looked into according to the error message Look for the subservice module of operating status mistake;The acquisition subelement, for obtaining the corresponding program segment of the subservice module; The determining subelement, for the sub-mark of the subservice module and described program section to be determined as the run-time error log Content.
In conjunction with above-mentioned second aspect, in the 4th kind of possible embodiment of second aspect, the acquisition subelement, also For obtaining the interface display diagram of the website;The determining subelement is also used to for the interface display diagram being determined as described The reference comparative diagram of run-time error log content.
As seen from the above description, website running state monitoring method and device provided in an embodiment of the present invention, in advance by net The procedure division stood is multiple business modules, and in the operational process of website, one business module of every operation records the business module Module id and initial operation time, and the timing since initial operation time.Wherein, the technical side of the embodiment of the present invention Case is previously provided with response submodule in business module, and when business module is run successfully, it includes mould that response submodule, which generates, The response message of block identification does not receive response message if self clock starts in preset time range, then by the business module Running state information be registered as error message, the run-time error log of the business module is generated according to the error message and is sent To server.Compared with prior art, website run when, as unit of business module from the angle of operating status to website into Row monitoring, thus do not influenced by code status, it can be abnormal by generating when the error-logging information based on grammer is indefinite The reason of navigate in the operational process of specific business module, and then can find and generate abnormal program and be modified, Improve the quality of website operation.
It should be understood that above general description and following detailed description be merely illustrative with explanatory description, it is right Technical solution of the present invention does not constitute a limitation simultaneously.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.By the way that shown in attached drawing, above and other purpose of the invention, feature and advantage will be more clear.In whole Identical appended drawing reference indicates identical part in attached drawing.Attached drawing, emphasis deliberately are not drawn by actual size equal proportion scaling It is to show the gist of the present invention.
Fig. 1 is running state monitoring method flow chart in website provided in an embodiment of the present invention;
Fig. 2 is another website running state monitoring method flow chart provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of website device for monitoring running state provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another website device for monitoring running state provided in an embodiment of the present invention.
Specific embodiment
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 Whole description, 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, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Although website is by test before on-line running, however, the mode of operation of different user is different, and difference is used The network environment that family runs website is not also identical, and therefore, website can may also exist in on-line running to be unable to operate normally Situation.And the prior art is operating abnormally website by way of monitor code grammer and is monitored, and is influenced by code status It is larger, to produce technical problem of the invention.To solve technical problem of the invention, the skill of the embodiment of the present invention is proposed Art scheme.
The present embodiment will on the whole be illustrated the technical solution of the embodiment of the present invention.Referring to Figure 1, Fig. 1 is this The website running state monitoring method flow chart that inventive embodiments provide.As shown in Figure 1, this approach includes the following steps.
Step S101 records the module of the business module when running the business module of the website divided in advance Mark and initial operation time.
In general, including multinomial business tine in website, for example, search, navigation and login etc., certainly, different web sites are wrapped The business tine contained is different, and the embodiment of the present invention is not detailed herein.In the embodiment of the present invention, for the ease of from the angle of function The operating status of website is monitored, the business tine that can included according to website, in advance draws the program code of website It is divided into multiple business modules.Wherein, each business module can correspond to a business tine, and the embodiment of the present invention does not limit this System.
When dividing business module, it is first determined the corresponding program segment of business module is set before identified program segment The module id of the fixed business module.When running business module, one will be run newly by often reading a module id explanation Business module, so that business module be divided.It should be noted that in the same website different business module module Identify it is different, module id can be corresponding business module Business Name, for example, the module id of search module Can be " search ", it is of course also possible to which the display position according to business module in website, successively uses me from top to bottom Uncle's number is used as module id, for example, the module id of search module is 1 in Taobao;The module id of navigation module is 2, The present invention is without limitation.
Further, it is also possible to end of identification be arranged after program segment corresponding to business tine, certainly, due to running business When module, it can judge that a upper business module has run through by the way that the module id of business module the first row is arranged in Finish, currently being run is new traffic module, accordingly it is also possible to not be arranged after the program segment corresponding to each business module End of identification, the embodiment of the present invention are without limitation.
In order to record the operating status of each business module, so that the operating status to website is monitored, the present invention is real The technical solution of example to be applied, client is provided with monitor supervision platform in advance, monitor supervision platform records the operation information of each business module, Reflect the operating status of business module by operation information.When browser execution business module, by the module of the business module Mark is sent to monitor supervision platform, and monitor supervision platform records the module id, and the time for receiving the module id is determined as this The initial operation time of business module, in order to the operation information of each business module of corresponding record.
In the present embodiment, by the way that the program code of website is divided into business module according to business tine, to website When operating status is monitored, it can be accurate to each business module of website, so as to the reason for locating websites exception Make place mat.
Step S102 in the preset time range after initial operation time, is not received including the module When the response message of mark, the corresponding running state information of the module id is registered as error message.
Wherein, on the basis of above-mentioned steps, in order to explicitly judge whether business module runs success, the present invention In embodiment, after the corresponding program segment of business tine, it is additionally provided with response submodule, response submodule can be a Duan Cheng Sequence.After business tine corresponding program segment successful operation, browser continues to run the corresponding program of response submodule, thus Triggering response submodule generates response message, and sends monitor supervision platform for response message, and monitor supervision platform can be believed according to response Breath records the operating status of the business module.
It should be noted that browser when running website, can run multiple business modules simultaneously, and each business mould It is provided with response submodule in block, and generates response message after running successfully, it is corresponding in order to distinguish different business module Response message, setting response submodule response message when, can will respond submodule where business module module mark The element for knowing information in response, runs successful module to be explicitly indicated out.
In addition, response submodule can be one section of program for submitting function with information, in the corresponding program of business tine After section successful operation, submodule is responded according to trigger flow is executed, submits response message to monitor supervision platform.If business tine Program segment run-time error, then will be unable to execute the corresponding program of response submodule, monitor supervision platform can not receive business module Feedback information, or the feedback information that receives is error feedback information, so as to determine the operation of corresponding service module Status error.Since the corresponding contents of program of business module is limited, the time of normal operation in estimation range, therefore, if Since business module initial operation time, monitor supervision platform does not receive response message in preset time range, then it is assumed that the industry The operating status for module of being engaged in is wrong, and the corresponding running state information of the module id of the business module is registered as error message.
For example, the search module of Taobao is loaded first when loading Taobao, when browser calls search module, Monitor supervision platform is sent by the module id read " search ", monitor supervision platform recording unit identifies " search ", and will connect Receive the initial loading time of the time as search module of " search ".When search module loads successfully, triggering setting exists The last program of search module submits response message " module search loaded ok " to monitor supervision platform, and monitor supervision platform will The operating status of search module is recorded as correct information.If not receiving letter from the preset time range of initial loading time It ceases " module search loaded ok ", then it is assumed that search module load failure, by the corresponding operation shape of mark " search " State information is registered as error message.
Certainly, above are only the preferable example of the embodiment of the present invention, browser load the processes of other business modules with it is upper State similar, details are not described herein again for the embodiment of the present invention.In addition, above-mentioned is only the scene of browser load Website Module, the present invention In embodiment, the content of operation further includes executing business module, similar with the monitoring to loading procedure to the monitoring of implementation procedure, Details are not described herein again for the embodiment of the present invention.
Step S103 generates the run-time error log of the business module according to the error message and is sent to service Device.
Wherein, when being registered with error message in monitor supervision platform, the operation of business module can be generated according to error message Error log, and the syntax error log of run-time error log and program code is sent collectively to server.The present invention is implemented In example, run-time error log can be, the business module of the module id or run-time error of the business module of run-time error Running state information, the embodiment of the present invention are without limitation.
In addition, in the embodiment of the present invention, it can be after the completion of website all the elements all load, by all error messages Generation error log together is sent to server, can also send a wrong day to server with one error message of every registration Will, the embodiment of the present invention are without limitation.
When engineering staff server end by error log position abnormal cause when, can be first according to syntax error log It is positioned, if syntax error log has explicitly pointed out content and the position of abnormal program, it is possible to directly be determined Position;, can not be to abnormal content expliciting the position if the information of syntax error log compares summary, it can be according to run-time error day Will determines the business module of run-time error, and then, the program code for transferring corresponding service module carries out the lookup of abnormal cause.
It should be noted that need to check error log one by one when engineering staff positions abnormal according to error log, and It is corresponding to search abnormal program, it causes program cumbersome, wastes time.In order to enable engineering staff's fast finding abnormal module, When generation error log, the interface display diagram of website is obtained, and be sent to clothes for interface display diagram as the information of error log Business device.When due to business module run-time error, the corresponding content of the business module can not normally be shown in website, therefore, work Cheng personnel can intuitively know the business module of run-time error from web station interface display figure, so as to quickly position exception Program.
Description based on the present embodiment, when syntax error log is influenced by code status, provided information is not enough to When carrying out abnormal positioning, it can be determined by run-time error log and generate abnormal code range, so as to further to different Normal Producing reason is accurately positioned.
Above-described embodiment is on the whole described the technical solution of the embodiment of the present invention, disclosed technical solution Suitable for all business modules, however, operational process is also not quite similar since the function of business module in website is different, It therefore, on the basis of the above embodiments, further include other complementarity schemes, following embodiments will retouch complementarity scheme It states.
Since the present embodiment is the additional notes to above-described embodiment, in the present embodiment, step same as the previously described embodiments Suddenly referring to the description of above-described embodiment, details are not described herein again for the present embodiment.
Fig. 2 is referred to, Fig. 2 is another website running state monitoring method flow chart provided in an embodiment of the present invention, should Method includes the following steps:
Step S201 records the module of the business module when running the business module of the website divided in advance Mark and initial operation time.
Wherein, at runtime, partial service module directly executes after the completion of loading on the page according to program setting for website It is corresponding to show operation, for example, directly carrying out advertisement module or Dynamic Graph of Dynamic Display etc. after the completion of page load. The present embodiment is described the technical solution of the embodiment of the present invention using the operational process of this kind of business module as scene.
Step S202 reads the sub-mark of current subservice module.
Wherein, the operational process of business module described in the present embodiment includes load and two steps of automatic running, and automatic Operational process may include the operating procedures such as initialization, inner branch operation, and the execution of each step is to a Duan Chengxu Operation, i.e. the corresponding program segment of business module includes multiple subprogram segments, and in the present embodiment, each subprogram segment is determined as One sub- business module of business module.In order to which the operating status to business module carries out more strict monitoring, thus going out When existing run-time error, more accurate positioning can be carried out to abnormal cause, be in advance each subservice module in the present embodiment Sub-mark is arranged in corresponding program segment, and when running any subservice module, monitor supervision platform records the son mark of the subservice module Know, the operating status of the subservice module is monitored.
In the present embodiment, sub-mark can be the title of corresponding subservice modular service content, or may be the son The serial number of business module execution sequence in all subservice modules, the embodiment of the present invention are without limitation.Sub-mark is set The setting set to module id is similar, and details are not described herein again by the present invention.
Step S203 judges whether the operating status of the current subservice module is correct;If current subservice module Operating status it is correct, execute step S204;If the operating status mistake of current subservice module, executes step S207.
Wherein, the present embodiment can judge the operating status of subservice module by running state monitoring information, due to son It is program segment corresponding to business module, it is therefore, similar to the aforementioned embodiment to the enrollment process of its running state monitoring information, Details are not described herein again for the present embodiment.
Step S204 judges whether the current subservice module is the last one subservice module to be run;If worked as Preceding subservice module is the last one subservice module to be run, and executes step S206;If current subservice module is not most The latter subservice module to be run executes step S205.
Scene based on the present embodiment, when the operational process of business module includes loading and executing two steps, browser According to program setting, using loading procedure as first item subservice module, directly operation executes program after the completion of load, executes journey In sequence, the corresponding program of first step implementation procedure is second sub- business module, and so on, it is run in current subservice module When correct, next subservice module is sequentially carried out, to the last a subservice module to be run.
Step S205 runs next subservice module of the current subservice module.
Description based on above-mentioned steps, if the operating status of current subservice module is correct, browser is continued to run down One sub- business module, at this point, next subservice module is new current subservice module, and to new current sub- industry Business module executes the operation of step S202 again, and details are not described herein again for specific the present embodiment.
Step S206 triggers the response submodule and sends the response message.
Since the corresponding program segment of business module includes all program segments of subservice module, also, in sequence gradually Rapid operation, therefore, when the last step operation of operational process finishes, business module operation is finished, at this point, triggering the operation list The response submodule of member submits response message to monitor supervision platform.
The corresponding running state information of the module id is registered as error message by step S207.
Wherein, during running business module, the operation of each subservice module is for subservice module below Operation is prepared, and all subservice modules, which are run, is correctly just able to achieve business function, therefore, when one of subservice module When run-time error, subservice module behind will be unable to correctly run.For example, if advertisement module can not successfully add in the page It carries, then executing all steps of displaying process will be unable to carry out, and then leads to advertisement module run-time error, so, work as business Any subservice module operation error in module, then it is assumed that the business module run-time error, monitor supervision platform is by the business module The corresponding running state information of module id is registered as error message.
Step S208 generates the run-time error log of the business module according to the error message and is sent to service Device.
Wherein, due to during monitoring business module operating status, to subservice module each in business module Operating status is monitored, and monitor supervision platform records the running state information for having each subservice module, therefore, according to mistake When running state information generation error log, abnormal subservice module can be clearly generated, so as to by abnormal program segment Range shorter, improve the efficiency that positions extremely.
According to above-described embodiment, when engineering staff positions abnormal according to run-time error log, need to call website journey Then sequence code searches the program of corresponding service module in procedure site code, not only process is complicated, but also leads to engineering The heavy workload of personnel.
To solve the above-mentioned problems, when generation error log, operating status mistake can be searched according to error message Subservice module obtains the corresponding program segment of subservice module, and using the corresponding program segment of subservice module as error log Content, with corresponding subservice mark be sent to server together.In this way, engineering staff can be read directly in the presence of abnormal journey Sequence section, so as to improve the efficiency positioned extremely.
Above-described embodiment is described using the business module of automatic running after the completion of loading in website as scene, certainly, on Stating embodiment is only a preferable example of the invention, after the completion of in website further including load, as artificial touch-control behavior is in net The business module continued to run in standing, for example, video and check box etc..After such business module receives artificial touch-control, to prison It controls platform and sends run signal, comprising by the module id of touch-control business module in the run signal, described in monitor supervision platform record Module id, and judge the response message that corresponding operational process whether is received in preset time, thus to the business module after The running state information of reforwarding row is registered.The monitoring process of its carrying out practically state is detailed in the description of above-described embodiment, this Details are not described herein again for embodiment.
In addition, further including link module in website, what it is by the triggered operation of link module is usually new web page, and to new The monitoring of webpage operating status is similar to the aforementioned embodiment, and details are not described herein again for the embodiment of the present invention.
In summary, website running state monitoring method provided in an embodiment of the present invention, in advance by the procedure division of website For multiple business modules, in the operational process of website, one business module of every operation, record the business module module id and Initial operation time, and the timing since initial operation time.Wherein, the technical solution of the embodiment of the present invention, in business module In be previously provided with response submodule, when business module is run successfully, response submodule generate include module id response Information does not receive response message if self clock starts in preset time range, then believes the operating status of the business module Breath is registered as error message, generates the run-time error log of the business module according to the error message and is sent to server.With The prior art is compared, and when website is run, is monitored from the angle of operating status to website as unit of business module, thus It is not influenced by code status, can will generate abnormal reason when the error-logging information based on grammer is indefinite and position Into the operational process of specific business module, and then it can find and generate abnormal program and be modified, improve website fortune Capable quality.
It is corresponding with above-mentioned implementation method, the embodiment of the invention also provides a kind of website device for monitoring running state, Fig. 3 is referred to, Fig. 3 is the structural schematic diagram of website device for monitoring running state provided in an embodiment of the present invention, described device packet It includes: recording unit 11, registration unit 12 and generation unit 13, wherein recording unit 11, for running the preparatory of the website When the business module of division, the module id and initial operation time of the business module are recorded;Registration unit 12, in institute It states in the preset time range after initial operation time, when not receiving the response message including the module id, by institute The corresponding running state information of module id for stating the record of recording unit 11 is registered as error message;Wherein, the response message It is generated by the response submodule being preset in the business module;Generation unit 13, for being recorded according to the registration unit 12 Error message generate the run-time error log of the business module and be sent to server.
The function of each unit and the realization process of effect are detailed in corresponding realization process in the above method in described device, Details are not described herein.
Compared with prior art, device described in the present embodiment is mentioned when syntax error log is influenced by code status When the information of confession is not enough to carry out abnormal position, it can be determined by run-time error log and generate abnormal code range, thus Further abnormal Producing reason can be accurately positioned.
In order to supplement above-described embodiment, the present invention also provides another website device for monitoring running state, Fig. 4 is referred to, Fig. 4 is the structural schematic diagram of another website device for monitoring running state provided in an embodiment of the present invention, described Device includes: recording unit 21, reading unit 22, judging unit 23, trigger unit 24, running unit 25,26 and of registration unit Generation unit 27, wherein recording unit 21, the function of registration unit 26 and generation unit 27 and act on and above-described embodiment Describe similar, details are not described herein again for the present embodiment.
Reading unit 22, for reading the sub-mark of current subservice module;Judging unit 23, it is described current for judging Whether the operating status of subservice module is correct;Trigger unit 24, for being waited in the current subservice module for the last one When running subservice module, triggers the response submodule and send the response message;Running unit 25, for described current Subservice module is not the last one when running subservice module, runs next subservice of the current subservice module Module.Wherein, in the present embodiment, when the operating status of the current subservice module is correct, judging unit 23 is also used to Judge whether the current subservice module is the last one subservice module to be run;When the fortune of the current subservice module When row status error, the running state information of the business module is registered as error message by registration unit 26.
Based on the above embodiment, in another embodiment, generation unit 27 includes searching subelement, and it is single to obtain son Member and determining subelement, wherein in the present embodiment, the lookup subelement is run for being searched according to the error message The subservice module of status error;The acquisition subelement, for obtaining the corresponding program segment of the subservice module;It is described true Stator unit, for the sub-mark of the subservice module and described program section to be determined as in the run-time error log Hold.
In addition, in other embodiments, the acquisition subelement is also used to obtain the interface display diagram of the website;Phase It answers, the determining subelement, is also used to for the interface display diagram being determined as the reference pair of the run-time error log content According to figure.
The function of each unit and the realization process of effect are detailed in corresponding realization process in the above method in described device, Details are not described herein.
From the above technical scheme, website running state monitoring method and device provided in an embodiment of the present invention, in advance It is multiple business modules by the procedure division of website, in the operational process of website, one business module of every operation records the business The module id and initial operation time of module, and the timing since initial operation time.Wherein, the technology of the embodiment of the present invention Scheme is previously provided with response submodule in business module, and when business module is run successfully, response submodule generation includes The response message of module id does not receive response message if self clock starts in preset time range, then by the business mould The running state information of block is registered as error message, and the run-time error log for generating the business module according to the error message is concurrent It is sent to server.Compared with prior art, when website is run, the angle as unit of business module from operating status is to website It is monitored, to not influenced by code status, can will be generated different when the error-logging information based on grammer is indefinite Normal reason navigates in the operational process of specific business module, and then can find and generate abnormal program and repaired Just, the quality of website operation is improved.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (8)

1. a kind of website running state monitoring method characterized by comprising
When running the business module of the website divided in advance, module id and the starting operation of the business module are recorded Time;
In preset time range after the initial operation time, the response message including the module id is not received When, the corresponding running state information of the module id is registered as error message;Wherein, the response message is by being preset in The response submodule stated in business module generates;
The run-time error log of the business module is generated according to the error message and is sent to server;
After the module id and initial operation time for recording the business module, by the corresponding operation shape of the module id State information is registered as before error message, further includes:
Read the sub-mark of current subservice module;
Judge whether the operating status of the current subservice module is correct;
If the operating status of the current subservice module is correct, judge whether the current subservice module is the last one Subservice module to be run;If the current subservice module is the last one subservice module to be run, the sound is triggered Submodule is answered to send the response message;If the current subservice module is not the last one subservice module to be run, Next subservice module of the current subservice module is run, and repeats the son for reading current subservice module The step of mark;
If the operating status mistake of the current subservice module, executes and register the running state information of the business module The step of for error message.
2. the method according to claim 1, wherein in the module id for recording the business module and rising Before beginning runing time, further includes:
Run signal is received, includes the module id of the business module in the run signal.
3. according to the method described in claim 2, it is characterized in that, described generate the business module according to the error message Run-time error log and be sent to server, comprising:
The subservice module of operating status mistake is searched according to the error message;
Obtain the corresponding program segment of the subservice module;
The sub-mark of the subservice module and described program section are determined as to the content of the run-time error log.
4. according to the method described in claim 3, it is characterized in that, described generate the business module according to the error message Run-time error log and be sent to server, comprising:
Obtain the interface display diagram of the website;
The interface display diagram is determined as to the reference comparative diagram of the run-time error log content.
5. a kind of website device for monitoring running state characterized by comprising
Recording unit, for recording the module of the business module when running the business module of the website divided in advance Mark and initial operation time;
Registration unit, for not receiving including the module in the preset time range after the initial operation time When the response message of mark, the corresponding running state information of the module id of the recording unit records is registered as wrong letter Breath;Wherein, the response message is generated by the response submodule being preset in the business module;
Generation unit, the error message for being recorded according to the registration unit generate the run-time error log of the business module And it is sent to server;
Reading unit, for reading the sub-mark of current subservice module;
Whether judging unit, the operating status for judging the current subservice module are correct;When the current subservice mould When the operating status of block is correct, the judging unit is also used to judge whether the current subservice module is that the last one is waited for Run subservice module;When the operating status mistake of the current subservice module, the registration unit is by the business mould The running state information of block is registered as error message;
Trigger unit triggers the sound for being the last one when running subservice module in the current subservice module Submodule is answered to send the response message;
Running unit, for not being the last one when running subservice module in the current subservice module, described in operation Next subservice module of current subservice module;And the sub-mark of current subservice module is read by the reading unit.
6. device according to claim 5, which is characterized in that further include:
Receiving unit includes the module id of the business module for receiving run signal, in the run signal.
7. device according to claim 6, which is characterized in that the generation unit includes searching subelement, and it is single to obtain son Member and determining subelement, wherein
The lookup subelement, for searching the subservice module of operating status mistake according to the error message;
The acquisition subelement, for obtaining the corresponding program segment of the subservice module;
The determining subelement, for the sub-mark of the subservice module and described program section to be determined as the run-time error The content of log.
8. device according to claim 7, which is characterized in that
The acquisition subelement, is also used to obtain the interface display diagram of the website;
The determining subelement, the reference pair for being also used to for the interface display diagram being determined as the run-time error log content are shone Figure.
CN201510393900.1A 2015-07-07 2015-07-07 Website running state monitoring method and device Active CN106339379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510393900.1A CN106339379B (en) 2015-07-07 2015-07-07 Website running state monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510393900.1A CN106339379B (en) 2015-07-07 2015-07-07 Website running state monitoring method and device

Publications (2)

Publication Number Publication Date
CN106339379A CN106339379A (en) 2017-01-18
CN106339379B true CN106339379B (en) 2019-08-16

Family

ID=57827075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510393900.1A Active CN106339379B (en) 2015-07-07 2015-07-07 Website running state monitoring method and device

Country Status (1)

Country Link
CN (1) CN106339379B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020041B (en) * 2017-08-21 2021-10-08 北京国双科技有限公司 Method and device for tracking crawling process
CN109011565B (en) * 2018-06-28 2019-10-25 苏州玩友时代科技股份有限公司 Analysis method, device and the server of state before a kind of game running
CN110932918B (en) * 2019-12-26 2023-01-10 远景智能国际私人投资有限公司 Log data acquisition method and device and storage medium
CN115225470B (en) * 2022-07-28 2023-10-13 天翼云科技有限公司 Business abnormality monitoring method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567225A (en) * 2003-06-25 2005-01-19 宏碁股份有限公司 Application program management system and method
CN101677278A (en) * 2008-09-17 2010-03-24 中兴通讯股份有限公司 Method and system for monitoring availability of network information system
CN102624570A (en) * 2012-04-27 2012-08-01 杭州东信北邮信息技术有限公司 Monitoring system and method for detecting availability of web server
CN103209100A (en) * 2012-01-12 2013-07-17 百度在线网络技术(北京)有限公司 Service monitoring method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567225A (en) * 2003-06-25 2005-01-19 宏碁股份有限公司 Application program management system and method
CN101677278A (en) * 2008-09-17 2010-03-24 中兴通讯股份有限公司 Method and system for monitoring availability of network information system
CN103209100A (en) * 2012-01-12 2013-07-17 百度在线网络技术(北京)有限公司 Service monitoring method and system
CN102624570A (en) * 2012-04-27 2012-08-01 杭州东信北邮信息技术有限公司 Monitoring system and method for detecting availability of web server

Also Published As

Publication number Publication date
CN106339379A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN106339379B (en) Website running state monitoring method and device
JP5869513B2 (en) Fault response system and fault response method
CN110908909A (en) Automatic testing method and device, storage medium and equipment
US8892950B2 (en) Failure diagnosis method and apparatus using resource relationship map
CN110515827A (en) Automated testing method, device, computer equipment and storage medium
CN106991045A (en) Page method of calibration and device
CN105721203A (en) Upgrade processing method and device
US10715628B2 (en) Attribute operating method and device
EP3937017A1 (en) Maze-driven self-diagnostics using reinforcement learning
CN110543429A (en) Test case debugging method and device and storage medium
CN114218072A (en) Test script generation method and device, storage medium and computer equipment
CN110175043A (en) The generation method and device of protocol interface code release update notification
CN117499287A (en) Web testing method, device, storage medium and proxy server
CN108694242A (en) Node checks method, equipment, storage medium and device based on DOM
US9973388B2 (en) Server information management apparatus, non-transitory computer-readable recording medium having stored therein server information management program, and server information management method
CN115514677B (en) Method and system for server dial testing
CN109101408B (en) Method and device for detecting service availability in joint debugging environment
CN106933743A (en) A kind of method of testing and device
CN107483294B (en) Method and device for monitoring network request
CN109698774A (en) Method and device for monitoring device working condition
CN109474822A (en) A kind of method and device of the multi-lingual automatic test of Android TV
CN115756598A (en) Component detection method, system and device applied to low-code platform
CN113608932A (en) Database drilling method, device, equipment and storage medium
CN109669867B (en) Test apparatus, automated test method, and computer-readable storage medium
CN112307736A (en) Application project creating method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200923

Address after: Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: Grand Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right