CN104579825A - Method and device for monitoring server of application in real time and computer equipment - Google Patents

Method and device for monitoring server of application in real time and computer equipment Download PDF

Info

Publication number
CN104579825A
CN104579825A CN201410797765.2A CN201410797765A CN104579825A CN 104579825 A CN104579825 A CN 104579825A CN 201410797765 A CN201410797765 A CN 201410797765A CN 104579825 A CN104579825 A CN 104579825A
Authority
CN
China
Prior art keywords
application
functional module
display frame
client
operation result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410797765.2A
Other languages
Chinese (zh)
Inventor
隋鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410797765.2A priority Critical patent/CN104579825A/en
Publication of CN104579825A publication Critical patent/CN104579825A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method and a device for monitoring a server of application and computer equipment. The real-time monitoring method comprises the steps of calling a function module in a client program of the application; acquiring an operation result of the function module; comparing the operation result of the function module with a preset operation result; under the condition that the operation result of the function module cannot confirm to the preset operation result, outputting alarming information of the server of the application. According to the method provided by the invention, a maintainer can acquire abnormal alarming information possibly existing in the server of the application in time, so that the problems existing in the server of the application can be eliminated in time, and real-time monitoring on the server of the application is realized; finally, the reliability and the stability of the application are improved.

Description

The service end method of real-time applied, device and computer equipment
Technical field
The present invention relates to Internet technical field, especially relate to a kind of service end method of real-time of application, the service end real-time monitoring device of application and computer equipment.
Background technology
The Internet changes working method and the entertainment way of people to a certain extent.People can carry out the operations such as the mutual and game of mail transmission/reception, instant message anywhere or anytime by the intelligent electronic device such as intelligent mobile phone, panel computer and computer (as notebook and desktop computer).
In the intelligent electronic devices such as intelligent mobile phone, panel computer and computer, multiple application is installed usually, to realize the multiple functions such as the mutual and game of mail transmission/reception, instant message.At present, a large amount of application is all jointly realize specific function by the information interaction between client and service end.
Inventor is realizing finding in process of the present invention, the service end of application to change or in the situation such as data are inaccurate in its data, service can be caused to occur the phenomenons such as unstable or abnormal, thus the client that can produce application can not provide the normal page or the abnormal problem that to exit etc. of application for user; If apply service end go wrong time can and alarm, then can get rid of the service end Problems existing of application as early as possible, so improve application reliability and stability.
Summary of the invention
One of technical problem that the present invention solves carries out Real-Time Monitoring to the service end of application so that when there is anomaly in the real-time service end monitoring application can and alarm, be conducive to the service end Problems existing getting rid of application fast.
An embodiment according to an aspect of the present invention, provide a kind of service end method of real-time of application, the method comprises: call the functional module in the client-side program of application; Obtain the operation result of described functional module; The operation result of functional module and default operation result are compared; When the operation result of described functional module does not conform to described default operation result, export the service end warning message of application.
An embodiment according to a further aspect of the present invention, provide a kind of service end real-time monitoring device of application, this device comprises: calling module, is suitable for the functional module called in the client-side program of application; Acquisition module, is suitable for the operation result obtaining described functional module; Comparison module, is suitable for the operation result of described functional module and default operation result to compare; Alarm module, is suitable for when the operation result of described functional module does not conform to described default operation result, exports the service end warning message of application.
An embodiment in accordance with a further aspect of the present invention, additionally provides a kind of computer equipment, comprises aforesaid service end real-time monitoring device.
The present invention is by comparing the operation result of the functional module in the client-side program of the application got and default operation result, and whether the operation result can checking out functional module is the operation result expected; Operation result and default operation result due to functional module do not conform to and are likely and have occurred abnormal by the service end applied and caused, therefore, the present invention is by exporting the service end warning message of application when real-time monitoring both and not conforming to, attendant can be known in time may there is this information abnormal in the service end of application, thus the present invention makes the service end Problems existing getting rid of application in time become possibility, achieves the Real-Time Monitoring of the service end of application; Finally invention increases the reliability and stability of application.
Those of ordinary skill in the art will understand, although detailed description is below carried out with reference to illustrated embodiment and accompanying drawing, the present invention is not limited in these embodiments.But scope of the present invention is widely, and be intended to limit scope of the present invention by means of only accompanying claim.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 is the flow chart of the service end method of real-time applied according to an embodiment of the invention;
Fig. 2 is the service end real-time monitoring device schematic diagram applied in accordance with another embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Fig. 1 is the flow chart of the service end method of real-time of the application of the embodiment of the present invention one.The method of embodiment one has mainly been come by the operating system in intelligent mobile phone, panel computer and computer equipment or processing controller.Operating system in computer equipment or processing controller can be called the service end real-time monitoring device of application.This computer equipment include but not limited to following at least one: the calculating unit of single computer, multiple stage computer composition, single network server, the server group of multiple webserver composition and the cloud be made up of a large amount of computer or the webserver based on cloud computing; Wherein, cloud computing is the one of Distributed Calculation, the super virtual machine be made up of a group loosely-coupled computer collection.
The service end method of real-time of embodiment one, application.
In Fig. 1, S100, the functional module called in the client-side program of application.
Concrete, be applied as the application jointly being realized specific function by the information interaction between client and service end, as can be implemented in the application etc. that line is read and off-line is downloaded in the present embodiment.The present embodiment does not limit the concrete title and content etc. of application.The client of the application in the present embodiment can for being installed on the client of the application in intelligent mobile phone (intelligent mobile phone etc. as based on Android operation system), also can for being installed on the client of the application in panel computer (panel computer etc. as based on Android operation system), can also for being installed on the client of the application in computer (as mobile computer or desktop computer etc.).Certainly, the client of this application equally can for being installed on the client of the application in other intelligent electronic devices, as being installed on the client of the application in PDA (Personal Digital Assistant, personal digital assistant).The concrete manifestation form of the hardware device that the client that the present embodiment does not limit application is installed.
Application in the present embodiment is generally the application of having reached the standard grade, and that is, the present embodiment can carry out on-line real time monitoring to the service end of application.Certainly, the application in the present embodiment also can for the application of not reaching the standard grade, and in the case, the present embodiment can realize the program test of the service end applied.
The functional module in the client-side program of application is called in the timing that the present embodiment can continue according to predetermined time interval, the functional module called in the client-side program of application that also can continue in not timing mode, to realize carrying out Real-Time Monitoring to the service end of application.
The client-side program of the application in the present embodiment opens Debug pattern, so that can be called the functional module in the client-side program of application by forms such as orders, and obtains the operation result of functional module easily.
Functional module in the present embodiment refers to the program code block that can realize a concrete function; The program code block of files passe function can be realized in client-side program as application; For another example, the program code block of file download function can be realized in the client-side program of application; For another example, the specific webpage such as registration or login can be gone in the client-side program of application and realize registration or the program code block of function such as to log in.A functional module in the client-side program of application includes multirow program code usually, and certainly, a functional module also may only comprise a line program code.In actual applications, a functional module can comprise an interface function, also can comprise multiple interface function.Programming language that the present embodiment concrete function, the concrete scale of functional module and the client-side program of application that limitation function module can not realize adopt etc.
The present embodiment can call corresponding functional module in the client-side program of application in the mode of order, with functional module accordingly in the client-side program running application, i.e. and the program code that comprises of operation function module.The command parameter of carrying in order can as the input parameter of functional module.When being applied as the application of having reached the standard grade, the command parameter that the present embodiment can utilize the real data on line to come in setting command, to realize the on-line real time monitoring of the service end to application.
The present embodiment can write the shell script of each functional module in the client-side program running application based on Python, each in this shell script orders the functional module all can called in the client-side program of application, and the command parameter in each order is the input parameter of the functional module that this order is called.It should be noted that, the multiple orders in the shell script of the present embodiment can call the same functional module in the client-side program of application, but the command parameter entrained by multiple orders calling same functional module can be not quite similar.The present embodiment can utilize shell script to realize multiple functional modules even the calling of all functions module in the client-side program of application, such as, utilize shell script can realize multiple functional modules even the calling successively in order of all functions module in the client-side program of application, again such as, shell script is utilized can to realize calling while the multiple functional modules in the client-side program of application even all functions module.
The operation result of S110, acquisition above-mentioned functions module.
Concrete, the operation result of the functional module in the present embodiment can be the return value of functional module, also can classification belonging to the display frame of the client generation of the return value of functional module and application.The display frame that the client of the application in the present embodiment produces refers to and makes the client of application be the display frame that user presents due to the operation of functional module.The classification belonging to display frame that the client of the application in the present embodiment produces can be specially text classification (the text classification of text is read in the display as applied for online reading), miscue classification, menu option classification or registration/login page classification etc.The classification belonging to display frame that the client of the application in the present embodiment produces usually can be different according to the difference of the difference of application and functional module, and the classification belonging to the display frame that this no longer produces the client of application illustrates one by one.
The present embodiment can by the return value adopting the mode arranging hook in client-side program to obtain invoked functional module, that is, functional module in the client-side program of the application of the Debug pattern that has been unlocked, by the command calls in shell script during end of run, can return corresponding operation result value from trend called side.The present embodiment also can adopt other modes to obtain the return value of invoked functional module, and the present embodiment does not limit the specific implementation of the return value obtaining invoked functional module.
The present embodiment can when getting the return value of functional module, and the client that should obtain application is in time the current display frame that user presents; As called the screen picture acquisition service (as the service of high-speed camera head) in the equipment at the client place of application in time when receiving the return value of functional module, capturing service to the client applied by screen picture is that snapshot is carried out in the current display frame that user presents, thus the present embodiment can be obtained make the client of application be the display frame that user presents due to the operation of functional module.The present embodiment also can adopt other modes to be the current display frame that user presents to obtain the client of application, as taken a picture etc. by the display screen of outside high speed video camera to the equipment at the client place of application, the present embodiment does not limit the specific implementation that the client obtaining application is the current display frame that user presents.
The present embodiment is previously provided with display frame set, usually includes multiple display frame in this display frame set, and each display frame is to there being a classification, and namely each display frame has the classification belonging to it.Classification belonging to the current display frame that the client that the present embodiment can utilize classification that in display frame set, each display frame is corresponding to determine to apply presents for user.
A concrete example is, after capturing the current display frame that client that the modes such as service get application presents for user, this current display frame can be mated with the display frame in display frame set utilizing screen picture; Here coupling is the coupling of key position in picture normally, such as, the content of the content of the window label position of current display frame with the window label position of the display frame in display frame set is mated; Again such as, the key icon part in current display frame is mated with the key icon part of the display frame in display frame set; The matching degree of both key positions meet certain coupling require time, using classification (classification namely in display frame set belonging to corresponding display frame) corresponding for display frame corresponding in display frame set as the classification belonging to the current display frame of client.Above-mentioned this current display frame is mated with the display frame in display frame set time, can according to display frame in display frame set put in order carry out traversal coupling.
In addition, the classification belonging to current display frame that the present embodiment also can adopt other modes to determine the client of application to present for user, such as, the present embodiment can determine belonging to current display frame for word (word etc. as in window label) that current display frame that user presents comprises according to the client of application classification.The present embodiment does not limit the specific implementation of the classification belonging to current display frame that the client determining to apply presents for user.
S 120, the operation result of functional module and default operation result to be compared.
Concrete, the present embodiment is in advance for each functional module is all provided with the operation result (namely presetting operation result) of expection, that is, each functional module is all to the operation result that should have expection, and the operation result of this expection should be true(-)running result when functional module is normally run.
Default operation result in the present embodiment can be default return value, also can for presetting the classification belonging to return value and display frame.
Default return value corresponding with this functional module for the return value of the functional module got can compare by the present embodiment, to judge whether both are identical; If both are identical, then the operation result of presentation function module conforms to default operation result; If both are not identical, then the operation result of presentation function module does not conform to default operation result.
The present embodiment also can be corresponding with this functional module by the classification belonging to current for the client got display frame default display frame classification compare, to judge that whether classification belonging to the current display frame of client is default display frame classification corresponding to this functional module; If the default display frame classification that to be this functional module corresponding of the classification belonging to the current display frame of client, then the operation result of presentation function module conforms to default operation result; If the default display frame classification that not to be this functional module corresponding of the classification belonging to the current display frame of client, then the operation result of presentation function module does not conform to default operation result.
The present embodiment can above-mentioned judge that whether the classification belonging to the current display frame of client is default display frame classification corresponding to this functional module before, first judge whether the classification belonging to the current display frame of client is miscue display frame classification, when judging that the classification belonging to the current display frame of client is miscue display frame classification, the operation result of presentation function module does not conform to default operation result; When judging the classification belonging to the current display frame of client for miscue display frame classification, then continue to judge that whether classification belonging to the current display frame of client is default display frame classification corresponding to this functional module again.
The comparison procedure of the classification belonging to the comparison procedure of default return value and display frame can combine by the present embodiment.A concrete example: whether the return value of arbitration functions module is identical with the default return value of this functional module, if the return value of functional module is not identical with the default return value of this functional module, then the operation result of presentation function module does not conform to default operation result; If the return value of functional module is identical with the default return value of this functional module, then can continue to judge that whether classification belonging to the current display frame of the client default display frame classification corresponding with functional module be identical, if both are not identical, then the operation result of presentation function module does not conform to default operation result; If both are identical, then the operation result of presentation function module conforms to default operation result.
Another concrete example is: whether the return value of arbitration functions module is identical with the default return value of this functional module, if the return value of functional module is not identical with the default return value of this functional module, then the operation result of presentation function module does not conform to default operation result, if the return value of functional module is identical with the default return value of this functional module, then can continue to judge whether the classification belonging to the current display frame of client is miscue display frame classification, if be miscue display frame classification, then the operation result of presentation function module does not conform to default operation result, if be not miscue display frame classification, then continue to judge that whether classification belonging to the current display frame of the client default display frame classification corresponding with functional module be identical, if both are not identical, then the operation result of presentation function module does not conform to default operation result, if both are identical, then the operation result of presentation function module conforms to default operation result.
S 130, when the operation result of functional module does not conform to default operation result, export application service end warning message.
Concrete, the present embodiment can when judging that the return value of functional module is not identical with the default return value of this functional module, think that the service end of application may have problems, the present embodiment makes attendant know in time by the service end warning message exporting application, and the service end of application may have problems this information, is conducive to the service end Problems existing getting rid of application as soon as possible.
The present embodiment can judge that the return value of functional module is identical with the default return value of this functional module, and when judging that classification belonging to the current display frame of client is not identical with default display frame classification, think that the service end of application may have problems, the present embodiment makes attendant know in time by the service end warning message exporting application, and the service end of application may have problems this information, is conducive to the service end Problems existing getting rid of application as soon as possible.
The present embodiment can judge that the return value of functional module is identical with the default return value of this functional module, and the classification judging belonging to the current display frame of client is when being miscue display frame classification, think that the service end of application may have problems, the present embodiment makes attendant know in time by the service end warning message exporting application, and the service end of application may have problems this information, is conducive to the service end Problems existing getting rid of application as soon as possible.
The present embodiment can judge that the return value of functional module is identical with the default return value of this functional module, and judge that the classification belonging to the current display frame of client is not miscue display frame classification, and when judging that classification belonging to the current display frame of client is not identical with default display frame classification, think that the service end of application may have problems, the present embodiment makes attendant know in time by the service end warning message exporting application, and the service end of application may have problems this information, be conducive to the service end Problems existing getting rid of application as soon as possible.
The service end real-time monitoring device of embodiment two, application.
The service end real-time monitoring device of the application of the present embodiment can be arranged in intelligent mobile phone, also can be arranged in panel computer (panel computer etc. as based on Android operation system), can also be arranged in computer (as mobile computer or desktop computer etc.).Certainly, the service end real-time monitoring device of the application of the present embodiment can be arranged in other intelligent electronic devices, equally as being arranged in the equipment such as PDA.The concrete manifestation form of concrete hardware device is placed in set by the service end real-time monitoring device that the present embodiment does not limit application.
Application in the present embodiment is generally the application of having reached the standard grade, and that is, the device of the present embodiment is generally used for carrying out on-line real time monitoring to the service end of application.Certainly, the application in the present embodiment also can for the application of not reaching the standard grade, and in the case, the device of the present embodiment can realize the program test of the service end applied.
The structure of the service end real-time monitoring device of the application of the present embodiment as shown in Figure 2.
In Fig. 2, the service end real-time monitoring device of application mainly comprises: calling module 200, acquisition module 210, comparison module 220 and alarm module 230.
Calling module 200 is mainly suitable for the functional module called in the client-side program of application.
Concrete, be applied as the application jointly being realized specific function by the information interaction between client and service end, as can be implemented in the application etc. that line is read and off-line is downloaded in the present embodiment.The present embodiment does not limit the concrete title and content etc. of application.
The functional module in the client-side program of application is called in the timing that calling module 200 can continue according to predetermined time interval, the functional module called in the client-side program of application that calling module 200 also can continue in not timing mode, to realize carrying out Real-Time Monitoring to the service end of application.
The client-side program of the application in the present embodiment opens Debug pattern, so that calling module 200 can call the functional module in the client-side program of application by forms such as orders, and acquisition module 210 can obtain the operation result of functional module easily.
Functional module in the present embodiment refers to the program code block that can realize a concrete function; The program code block of files passe function can be realized in client-side program as application; For another example, the program code block of file download function can be realized in the client-side program of application; For another example, the specific webpage such as registration or login can be gone in the client-side program of application and realize registration or the program code block of function such as to log in.A functional module in the client-side program of application includes multirow program code usually, and certainly, a functional module also may only comprise a line program code.In actual applications, a functional module can comprise an interface function, also can comprise multiple interface function.Programming language that the present embodiment concrete function, the concrete scale of functional module and the client-side program of application that limitation function module can not realize adopt etc.
Calling module 200 can call corresponding functional module in the client-side program of application in the mode of order, with functional module accordingly in the client-side program running application, i.e. and the program code that comprises of operation function module.Calling module 200 can using the command parameter of carrying in order as the input parameter of functional module.When being applied as the application of having reached the standard grade, the command parameter that calling module 200 can utilize the real data on line to come in setting command, to realize the on-line real time monitoring of the service end to application.
The shell script writing each functional module in the client-side program running application based on Python can be comprised in calling module 200, an order in this shell script can call a functional module in the client-side program of application, and the command parameter in an order is the input parameter of the functional module that this order is called.It should be noted that, the multiple orders in the shell script of calling module 200 can call the same functional module in the client-side program of application, but the command parameter entrained by multiple orders calling same functional module can be not quite similar.Calling module 200 can utilize shell script to realize multiple functional modules even the calling of all functions module in the client-side program of application, as calling module 200 utilizes shell script can realize multiple functional modules even the calling successively in order of all functions module in the client-side program of application, calling module 200 utilizes shell script can realize calling while the multiple functional modules in the client-side program of application even all functions module for another example.
Acquisition module 210 is mainly suitable for the operation result obtaining functional module.
Concrete, the operation result of the functional module that acquisition module 210 obtains can be the return value of functional module, also can classification belonging to the display frame of the client generation of the return value of functional module and application.The display frame that the client of the application in the present embodiment produces refers to and makes the client of application be the display frame that user presents due to the operation of functional module.The classification belonging to display frame that the client of the application in the present embodiment produces can be specially text classification (the text classification of text is read in the display as applied for online reading), miscue classification, menu option classification or registration/login page classification etc.The classification belonging to display frame that the client of the application in the present embodiment produces usually can be different according to the difference of the difference of application and functional module, and the classification belonging to the display frame that this no longer produces the client of application illustrates one by one.
Acquisition module 210 can by the return value adopting the mode arranging hook in client-side program to obtain invoked functional module, that is, functional module in the client-side program of the application of the Debug pattern that has been unlocked, by the command calls in shell script during end of run, can return corresponding operation result value from trend acquisition module 210.Acquisition module 210 also can adopt other modes to obtain the return value of invoked functional module, and the present embodiment does not limit the specific implementation that acquisition module 210 obtains the return value of invoked functional module.
Acquisition module 210 can when getting the return value of functional module, and the client obtaining application is in time the current display frame that user presents; Such as, the screen picture acquisition service (as the service of high-speed camera head) in the equipment at the client place of application is called when acquisition module 210 receives the return value of functional module, capturing service to the client applied by screen picture is that snapshot is carried out in the current display frame that user presents, thus acquisition module 210 can be obtained make the client of application be the display frame that user presents due to the operation of functional module.Acquisition module 210 also can adopt other modes to be the current display frame that user presents to obtain the client of application, as taken a picture by the display screen of outside high speed video camera to the equipment at the client place of application, and by the picture transmission of photograph to acquisition module 210, thus the current display frame that the client making acquisition module 210 get application is user to be presented.The present embodiment does not limit acquisition module 210 and obtains the specific implementation that the client applied is the current display frame that user presents.
Be previously provided with display frame set in acquisition module 210, usually include multiple display frame in this display frame set, and each display frame is to there being a classification, namely each display frame has the classification belonging to it.Classification belonging to the current display frame that the client that acquisition module 210 can utilize classification that in display frame set, each display frame is corresponding to determine to apply presents for user.
A concrete example is, after the current display frame that acquisition module 210 presents for user in utilize screen picture to capture client that the modes such as service get application, this current display frame can be mated with the display frame in display frame set; Here coupling is the coupling of key position in picture normally, and such as, the content of the content of the window label position of current display frame with the window label position of the display frame in display frame set is mated by acquisition module 210; Again such as, the key icon part in current display frame is mated with the key icon part of the display frame in display frame set by acquisition module 210; The matching degree of both key positions meet certain coupling require time, acquisition module 210 using classification (classification namely in display frame set belonging to corresponding display frame) corresponding for display frame corresponding in display frame set as the classification belonging to the current display frame of client.Above-mentioned this current display frame is mated with the display frame in display frame set time, acquisition module 210 can according to display frame in display frame set put in order carry out traversal coupling.
In addition, the classification belonging to current display frame that acquisition module 210 also can adopt other modes to determine the client of application to present for user, such as, acquisition module 210 can determine belonging to current display frame for word (word etc. as in window label) that current display frame that user presents comprises according to the client of application classification.The present embodiment does not limit the specific implementation of the classification belonging to current display frame that client that acquisition module 210 determines to apply presents for user.
Comparison module 220 is mainly suitable for the operation result of functional module and default operation result to compare.
Concrete, in comparison module 220, each functional module has all been pre-arranged the operation result (namely presetting operation result) of expection, that is, be previously stored with the operation result of each functional module expection corresponding respectively in comparison module 220, and the operation result of this expection should be true(-)running result when functional module is normally run.
The default operation result stored in comparison module 220 can be default return value, also can for presetting the classification belonging to return value and display frame.
The default return value that the return value of the functional module that acquisition module 210 can get by comparison module 220 is corresponding with this functional module prestored compares, to judge whether both are identical; If both are identical, then the operation result of presentation function module conforms to default operation result; If both are not identical, then the operation result of presentation function module does not conform to default operation result.
The classification belonging to the current display frame of client that acquisition module 210 also can get by the comparison module 220 default display frame classification corresponding with this functional module prestored compares, to judge that whether classification belonging to the current display frame of client is default display frame classification corresponding to this functional module; If the default display frame classification that to be this functional module corresponding of the classification belonging to the current display frame of client, then the operation result of presentation function module conforms to default operation result; If the default display frame classification that not to be this functional module corresponding of the classification belonging to the current display frame of client, then the operation result of presentation function module does not conform to default operation result.
Comparison module 220 can above-mentioned judge that whether the classification belonging to the current display frame of client is default display frame classification corresponding to this functional module before, first judge whether the classification belonging to the current display frame of client is miscue display frame classification, comparison module 220 is when judging that the classification belonging to the current display frame of client is miscue display frame classification, and the operation result of presentation function module does not conform to default operation result; Comparison module 220 when judging the classification belonging to the current display frame of client for miscue display frame classification, then continues to judge that whether classification belonging to the current display frame of client is default display frame classification corresponding to this functional module again.
The comparison procedure of the classification belonging to the comparison procedure of default return value and display frame can combine by comparison module 220.A concrete example: whether the return value of comparison module 220 arbitration functions module is identical with the default return value of this functional module, if the return value of functional module is not identical with the default return value of this functional module, then the operation result of presentation function module does not conform to default operation result; If the return value of functional module is identical with the default return value of this functional module, then comparison module 220 can continue to judge that whether classification belonging to the current display frame of the client default display frame classification corresponding with functional module be identical, if both are not identical, then the operation result of presentation function module does not conform to default operation result; If both are identical, then the operation result of presentation function module conforms to default operation result.
Another concrete example is: whether the return value of comparison module 220 arbitration functions module is identical with the default return value of this functional module, if the return value of functional module is not identical with the default return value of this functional module, then the operation result of presentation function module does not conform to default operation result, if the return value of functional module is identical with the default return value of this functional module, then comparison module 220 can continue to judge whether the classification belonging to the current display frame of client is miscue display frame classification, if be miscue display frame classification, then the operation result of presentation function module does not conform to default operation result, if be not miscue display frame classification, then comparison module 220 continues to judge that whether classification belonging to the current display frame of the client default display frame classification corresponding with functional module be identical, if both are not identical, then the operation result of presentation function module does not conform to default operation result, if both are identical, then the operation result of presentation function module conforms to default operation result.
Alarm module 230 is mainly suitable for when the operation result of functional module does not conform to default operation result, exports the service end warning message of application.
Concrete, alarm module 230 can when comparison module 220 judges that the return value of functional module is not identical with the default return value of this functional module, think that the service end of application may have problems, alarm module 230 makes attendant know in time by the service end warning message exporting application, and the service end of application may have problems this information, is conducive to the service end Problems existing getting rid of application as soon as possible.
At comparison module 220, alarm module 230 can judge that the return value of functional module is identical with the default return value of this functional module, and comparison module 220 is when judging that classification belonging to the current display frame of client is not identical with default display frame classification, think that the service end of application may have problems, alarm module 230 makes attendant know in time by the service end warning message exporting application, and the service end of application may have problems this information, is conducive to the service end Problems existing getting rid of application as soon as possible.
At comparison module 220, alarm module 230 can judge that the return value of functional module is identical with the default return value of this functional module, and the classification that comparison module 220 is judged belonging to the current display frame of client is when being miscue display frame classification, think that the service end of application may have problems, alarm module 230 makes attendant know in time by the service end warning message exporting application, and the service end of application may have problems this information, is conducive to the service end Problems existing getting rid of application as soon as possible.
At comparison module 220, alarm module 230 can judge that the return value of functional module is identical with the default return value of this functional module, and comparison module 220 judges that the classification belonging to the current display frame of client is not miscue display frame classification, and comparison module 220 is when judging that classification belonging to the current display frame of client is not identical with default display frame classification, think that the service end of application may have problems, alarm module 230 makes attendant know in time by the service end warning message exporting application, and the service end of application may have problems this information, be conducive to the service end Problems existing getting rid of application as soon as possible.
Embodiment three, computer equipment.
This computer equipment can be the calculating unit of single computer, multiple stage computer composition, single network server, the server group of multiple webserver composition or the cloud be made up of a large amount of computer/webserver based on cloud computing.The computer equipment of the present embodiment comprises the service end real-time monitoring device of the application described in above-described embodiment two, no longer describes in detail at this.
It should be noted that the present invention can be implemented in the assembly of software and/or software restraint, such as, application-specific integrated circuit (ASIC) (ASIC), general object computer or any other similar hardware device can be adopted to realize.In one embodiment, software program of the present invention can perform to realize step mentioned above or function by processor.Similarly, software program of the present invention (comprising relevant data structure) can be stored in computer readable recording medium storing program for performing, such as, and RAM memory, magnetic or CD-ROM driver or floppy disc and similar devices.In addition, steps more of the present invention or function can adopt hardware to realize, such as, as coordinating with processor thus performing the circuit of each step or function.
In addition, a part of the present invention can be applied to computer program, such as computer program instructions, when it is performed by computer, by the operation of this computer, can call or provide according to method of the present invention and/or technical scheme.And call the program command of method of the present invention, may be stored in fixing or moveable recording medium, and/or be transmitted by the data flow in broadcast or other signal bearing medias, and/or be stored in the working storage of the computer equipment run according to described program command.At this, comprise a device according to one embodiment of present invention, this device comprises the memory for storing computer program instructions and the processor for execution of program instructions, wherein, when this computer program instructions is performed by this processor, trigger this plant running based on the aforementioned method according to multiple embodiment of the present invention and/or technical scheme.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and when not deviating from spirit of the present invention or essential characteristic, the present invention can be realized in other specific forms.Therefore, no matter from which point, all should embodiment be regarded as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, and all changes be therefore intended in the implication of the equivalency by dropping on claim and scope are included in the present invention.Any Reference numeral in claim should be considered as the claim involved by limiting.In addition, obviously " comprising " one word do not get rid of other unit or step, odd number does not get rid of plural number.Multiple unit of stating in system claims or device also can be realized by software or hardware by a unit or device.First, second word such as grade is used for representing title, and does not represent any specific order.

Claims (17)

1. a service end method of real-time for application, comprising:
Call the functional module in the client-side program of application;
Obtain the operation result of described functional module;
The operation result of described functional module and default operation result are compared;
When the operation result of described functional module does not conform to described default operation result, export the service end warning message of application.
2. method according to claim 1, wherein, described functional module comprises: one or more interface function.
3. method according to claim 1, wherein, described in the functional module called in the client-side program of application comprise:
Corresponding functional module in client-side program is called, using the input parameter of the command parameter in described script command as described functional module in the mode of script command.
4. method according to claim 1, wherein:
The operation result of described functional module comprises: the return value of functional module; Or
The operation result of described functional module comprises: the classification belonging to the display frame that the return value of functional module and the client of application present for user.
5. method according to claim 4, wherein, the operation result of the described functional module of described acquisition comprises:
The return value of described functional module is obtained by the hook arranged in client-side program;
And described when the operation result of described functional module does not conform to described default operation result, the service end warning message exporting application comprises:
When the return value of described functional module is not identical with default return value, export the service end warning message of application.
6. the method according to claim 4 or 5, wherein, the operation result of the described functional module of described acquisition comprises:
When getting the return value of described functional module, call screen picture acquisition service to obtain the current display frame of the client of application;
Current for described client display frame is mated with the display frame in display frame set;
Using the classification belonging to the display frame of mating with the current display frame of described client in described display frame set as the classification belonging to the current display frame of described client.
7. method according to claim 6, wherein, described when the operation result of described functional module does not conform to described default operation result, the service end warning message exporting application comprises:
When the classification belonging to the current display frame of described client does not conform to default display frame classification, export the service end warning message of application.
8. method according to claim 6, wherein, described when the operation result of described functional module does not conform to described default operation result, the service end warning message exporting application also comprises:
When the classification belonging to the current display frame of described client is miscue display frame classification, export the service end warning message of application.
9. a service end real-time monitoring device for application, comprising:
Calling module, is suitable for the functional module called in the client-side program of application;
Acquisition module, is suitable for the operation result obtaining described functional module;
Comparison module, is suitable for the operation result of described functional module and default operation result to compare;
Alarm module, is suitable for when the operation result of described functional module does not conform to described default operation result, exports the service end warning message of application.
10. device according to claim 9, wherein, described functional module comprises: one or more interface function.
11. devices according to claim 9, wherein, described calling module is specifically suitable for:
Corresponding functional module in client-side program is called, using the input parameter of the command parameter in described script command as described functional module in the mode of script command.
12. devices according to claim 9, wherein:
The operation result of described functional module comprises: the return value of functional module; Or
The operation result of described functional module comprises: the classification belonging to the display frame that the return value of functional module and the client of application present for user.
13. devices according to claim 12, wherein, described acquisition module is specifically suitable for:
The return value of described functional module is obtained by the hook arranged in client-side program;
And described alarm module is specifically suitable for:
When the return value of described functional module is not identical with default return value, export the service end warning message of application.
14. devices according to claim 12 or 13, wherein, described acquisition module is specifically suitable for:
When getting the return value of described functional module, call screen picture acquisition service to obtain the current display frame of the client of application;
Current for described client display frame is mated with the display frame in display frame set;
Using the classification belonging to the display frame of mating with the current display frame of described client in described display frame set as the classification belonging to the current display frame of described client.
15. devices according to claim 14, wherein, described alarm module is specifically suitable for:
When the classification belonging to the current display frame of described client does not conform to default display frame classification, export the service end warning message of application.
16. devices according to claim 14, wherein, described alarm module is also specifically suitable for:
When the classification belonging to the current display frame of described client is miscue display frame classification, export the service end warning message of application.
17. 1 kinds of computer equipments, comprise the service end real-time monitoring device of the application in claim 9-16 described in arbitrary claim.
CN201410797765.2A 2014-12-18 2014-12-18 Method and device for monitoring server of application in real time and computer equipment Pending CN104579825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410797765.2A CN104579825A (en) 2014-12-18 2014-12-18 Method and device for monitoring server of application in real time and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410797765.2A CN104579825A (en) 2014-12-18 2014-12-18 Method and device for monitoring server of application in real time and computer equipment

Publications (1)

Publication Number Publication Date
CN104579825A true CN104579825A (en) 2015-04-29

Family

ID=53095089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410797765.2A Pending CN104579825A (en) 2014-12-18 2014-12-18 Method and device for monitoring server of application in real time and computer equipment

Country Status (1)

Country Link
CN (1) CN104579825A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201817A (en) * 2016-06-21 2016-12-07 微梦创科网络科技(中国)有限公司 Dynamic Display content monitor method, system and device
CN110324423A (en) * 2019-07-08 2019-10-11 深圳市网心科技有限公司 A kind of service registration discovery method, system, equipment and medium
CN112437294A (en) * 2020-11-25 2021-03-02 腾讯科技(深圳)有限公司 Method, device and equipment for testing identity hiding function and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130120131A1 (en) * 2011-11-10 2013-05-16 At&T Intellectual Property I, L.P. Methods, Systems, and Products for Security Services
CN103336726A (en) * 2013-07-10 2013-10-02 北京百度网讯科技有限公司 Method and device detecting multitasking conflicts in Linux system
CN103544100A (en) * 2012-07-12 2014-01-29 腾讯科技(深圳)有限公司 Method, system and client side for testing APP of portable data processing equipment
CN104065526A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Server fault alarming method and device thereof
CN104182333A (en) * 2013-05-23 2014-12-03 阿里巴巴集团控股有限公司 Performance testing method and equipment
CN108449207A (en) * 2018-03-16 2018-08-24 北京邦邦共赢网络科技有限公司 A kind of method and apparatus of monitoring server operating status

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130120131A1 (en) * 2011-11-10 2013-05-16 At&T Intellectual Property I, L.P. Methods, Systems, and Products for Security Services
CN103544100A (en) * 2012-07-12 2014-01-29 腾讯科技(深圳)有限公司 Method, system and client side for testing APP of portable data processing equipment
CN104065526A (en) * 2013-03-22 2014-09-24 腾讯科技(深圳)有限公司 Server fault alarming method and device thereof
CN104182333A (en) * 2013-05-23 2014-12-03 阿里巴巴集团控股有限公司 Performance testing method and equipment
CN103336726A (en) * 2013-07-10 2013-10-02 北京百度网讯科技有限公司 Method and device detecting multitasking conflicts in Linux system
CN108449207A (en) * 2018-03-16 2018-08-24 北京邦邦共赢网络科技有限公司 A kind of method and apparatus of monitoring server operating status

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201817A (en) * 2016-06-21 2016-12-07 微梦创科网络科技(中国)有限公司 Dynamic Display content monitor method, system and device
CN110324423A (en) * 2019-07-08 2019-10-11 深圳市网心科技有限公司 A kind of service registration discovery method, system, equipment and medium
CN112437294A (en) * 2020-11-25 2021-03-02 腾讯科技(深圳)有限公司 Method, device and equipment for testing identity hiding function and storage medium

Similar Documents

Publication Publication Date Title
CN106951364B (en) Test method and device
CN107025174B (en) Method, device and readable storage medium for user interface anomaly test of equipment
CN111782492B (en) Page first screen loading duration testing method and device, computer equipment and medium
CN111753701B (en) Method, device, equipment and readable storage medium for detecting violation of application program
CN109684008B (en) Card rendering method, device, terminal and computer readable storage medium
CN107888446B (en) Protocol robustness testing method and device
CN109558331B (en) Application program defect detection method, device, equipment and storage medium
CN111211929A (en) Fault positioning method, fault positioning device, control equipment and intelligent equipment
CN111177623A (en) Information processing method and device
CN104579825A (en) Method and device for monitoring server of application in real time and computer equipment
CN111522749A (en) Page testing method and device, readable storage medium and electronic equipment
CN108595332B (en) Software testing method and device
CN112948224B (en) Data processing method, device, terminal and storage medium
CN112416735B (en) Application program detection method and device, terminal equipment and storage medium
CN111464637A (en) Unmanned vehicle data processing method, device, equipment and medium
CN115878358A (en) Abnormal log analysis method and device, electronic equipment and storage medium
CN116738091A (en) Page monitoring method and device, electronic equipment and storage medium
CN115904883A (en) RPA flow execution visualization abnormity monitoring method, device and medium
CN115934179A (en) Service function control method and equipment
CN112650557B (en) Command execution method and device
CN111124841B (en) Alarm method and device for abnormal page and computer system
CN114281631A (en) Method and device for testing image processing chip and electronic equipment
CN110061864B (en) Method and system for automatically verifying domain name configuration
CN110569184A (en) test method and terminal equipment
CN111722886A (en) Tool starting method and device, computer equipment and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429

RJ01 Rejection of invention patent application after publication