CN110445632A - A kind of method and apparatus for preventing client collapse - Google Patents

A kind of method and apparatus for preventing client collapse Download PDF

Info

Publication number
CN110445632A
CN110445632A CN201810418618.8A CN201810418618A CN110445632A CN 110445632 A CN110445632 A CN 110445632A CN 201810418618 A CN201810418618 A CN 201810418618A CN 110445632 A CN110445632 A CN 110445632A
Authority
CN
China
Prior art keywords
client
request
data
collapse
target component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810418618.8A
Other languages
Chinese (zh)
Other versions
CN110445632B (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810418618.8A priority Critical patent/CN110445632B/en
Publication of CN110445632A publication Critical patent/CN110445632A/en
Application granted granted Critical
Publication of CN110445632B publication Critical patent/CN110445632B/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/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications

Abstract

The invention discloses the method and apparatus of prevention client collapse, are related to field of computer technology.One specific embodiment of this method includes: to receive the request of data of client, parses the request of data to obtain target component information;According to the target component information, by Ruin model, if the information for responding the request of data is returned to whether the client causes its collapse by judgement;If the client is caused to collapse, error information is returned into the client.The embodiment can be realized judge whether to collapse determine how customer in response end, avoid directly collapse give user's bring very poor experience.

Description

A kind of method and apparatus for preventing client collapse
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus for preventing client collapse.
Background technique
In current mobile internet environment, 90% flow both is from mobile client.Mobile client end subscriber Experience it is extremely important for Internet company, and the collapse of mobile client application software can then be brought very not to user Good experience.Collapse be to have relationship with complicated user environment, for example (ROM is the abbreviation of ROM image to mobile phone ROM, is Read-only memory mirror image) version, mobile phone memory at that time, network environment etc., if these environment go wrong, client is again The message for receiving some complexity that background server is sent then will lead to collapse.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
Collapse can bring very bad user experience, and lead to the loss of precious customer flow.Existing client The only communication of simple interface, does not analyze for the complex environment of client, can not keep away between end and server-side Exempt from the generation of collapse.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus for preventing client collapse, judgement can be realized Whether can collapse determine how customer in response end, avoid directly collapse give user's bring very poor experience.
To achieve the above object, according to an aspect of an embodiment of the present invention, provide it is a kind of prevent client collapse Method, the request of data including receiving client, parses the request of data to obtain target component information;According to the target Parameter information, by Ruin model, if the information for responding the request of data is returned to whether the client causes by judgement It is collapsed;If the client is caused to collapse, error information is returned into the client.
Optionally, further includes: the request of data for receiving client parses the request of data to obtain target component letter Breath;The target component information is recorded, the information for responding the request of data is issued, receives the response letter to obtain client State and preservation after breath;According to target component information and its corresponding state, Ruin model is generated.
Optionally, further includes: error information is returned into the client, the client jumps logic according to preset, Jump to specified address;Or pop-up dialog box is to prompt user's service unavailable.
Optionally, the Ruin model uses sorting algorithm or Factorization machine algorithm.
Optionally, the target component includes at least one of: Platform Type, system version, maximum allocated memory, when The total memory of preceding distribution, free memory, current process CPU usage, data network, manufacturing firm, type, request interface it is unique Mark and client application software version.
In addition, according to an aspect of an embodiment of the present invention, providing a kind of device for preventing client collapse, including connect It receives module and parses the request of data for receiving the request of data of client to obtain target component information;Computing module, For according to the target component information, by Ruin model, if the information that judgement will respond the request of data returns to institute State whether client causes its collapse;Respond module, if for causing the client to collapse, error information is returned described in Client.
Optionally, further includes: Ruin model generation module issues described in response for recording the target component information The information of request of data receives the state after the response message and preservation to obtain client;According to target component information and Its corresponding state generates Ruin model.
Optionally, the respond module, is also used to: error information being returned to the client, the client is according to pre- If jump logic, jump to specified address;Or pop-up dialog box is to prompt user's service unavailable.
Optionally, the Ruin model uses sorting algorithm or Factorization machine algorithm.
Optionally, the target component includes at least one of: Platform Type, system version, maximum allocated memory, when The total memory of preceding distribution, free memory, current process CPU usage, data network, manufacturing firm, type, request interface it is unique Mark and client application software version.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes method described in the embodiment of any of the above-described prevention client collapse.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter Calculation machine program realizes method described in the embodiment of any of the above-described prevention client collapse when described program is executed by processor.
Another aspect according to an embodiment of the present invention provides a kind of method for preventing client collapse, comprising: send Request of data, wherein the target component in the request of data includes at least one of: Platform Type, system version, maximum Storage allocation currently distributes total memory, free memory, current process CPU usage, data network, manufacturing firm, type, asks Ask the unique identification and client application software version of interface;Receive the error information returned.
Optionally, after the error information for receiving return, further includes:
Logic is jumped according to preset, jumps to specified address;Or pop-up dialog box is to prompt user's service can not With.
In addition, another aspect according to an embodiment of the present invention, provides a kind of device for preventing client collapse, packet It includes: sending module, for sending request of data, wherein the target component in the request of data includes at least one of: flat Platform type, maximum allocated memory, currently distributes total memory, free memory, current process CPU usage, data network at system version Network, manufacturing firm, type, the unique identification of request interface and client application software version;Receiving module is returned for receiving Error information.
Optionally, it after the receiving module receives the error information returned, is also used to:
Logic is jumped according to preset, jumps to specified address;Or pop-up dialog box is to prompt user's service can not With.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes method described in the embodiment of any of the above-described prevention client collapse.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter Calculation machine program realizes method described in the embodiment of any of the above-described prevention client collapse when described program is executed by processor.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that in client to server-side request data When, target component information that server-side is included by the request of the client come judge the message of respond request for It is whether excessively complicated or have and may cause collapse for client.If it is determined that can cause to collapse, then control issues, with It avoids client and causes to collapse because response message is received.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the method for prevention client collapse according to an embodiment of the present invention;
Fig. 2 is the schematic diagram that can refer to the main flow of the method for prevention client collapse of embodiment according to the present invention;
Fig. 3 is the schematic diagram of the main modular of the device of prevention client collapse according to an embodiment of the present invention;
Fig. 4 is the schematic diagram that can refer to the main modular of the device of prevention client collapse of embodiment according to the present invention;
Fig. 5 is showing for the main flow for the method collapsed according to embodiments of the present invention applied to the prevention client of client It is intended to;
Fig. 6 is showing for the main modular of the device collapsed according to embodiments of the present invention applied to the prevention client of client It is intended to;
Fig. 7 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 8 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the method for prevention client collapse according to an embodiment of the present invention, as shown in Figure 1, the prevention client The method of collapse includes:
Step S101 receives the request of data of client, parses the request of data to obtain target component information.
In embodiment, the target component may include at least one of: Platform Type (platform), system Version (OSversion), currently distributes total memory (MemTotal), free memory at maximum allocated memory (MemMax) (MemFree), current process CPU usage (cpuUsed), data network (communicationMode), manufacturing firm (manufactor), the unique identification (functionId) and client application software version of type (model), request interface (appVersion).Wherein, Platform Type such as android perhaps ios system version such as android8.0 or Ios11.1, manufacturing firm such as Huawei, millet, apple etc..
Step S102, according to the target component information, by Ruin model, if judgement will respond the request of data Information return to whether the client causes its collapse.
In embodiment, target component information is updated in Ruin model, the calculated result of acquisition is indicated if it is 0 It normally (not will cause client collapse), indicate collapse (will cause client collapse) if it is 1.
Wherein, the Ruin model, which can be, obtains the prediction whether this calling can collapse by inputting target component As a result.Preferably, the Ruin model can use sorting algorithm, Factorization machine FM etc..
Error information is returned to the client if the client is caused to collapse by step S103.
Preferably, being obtained and being responded according to the request of data if that is, normal if the calculated result that step S102 is obtained is 0 Then the response message is returned to the client by information.If the calculated result that step S102 is obtained is 1, that is, if collapse The client is returned according to the error information (errorcode) of predetermined format.
Preferably, if user can be prompted to receive just after the error information of predetermined format to be returned to the client Normal response message will cause the collapse of its client.It is unavailable it is possible to further pop up dialog box prompt user's service, Or show the official documents and correspondence of default, picture.
Alternatively, it is also possible to by traffic distribution to other places, specific implementation process are as follows: can preset and jump in client Logic jumps to specified address after receiving the error information of predetermined format, such as similar commodity etc.
It can be seen that client data can be asked based on the received according to the method for prevention client collapse described above It asks, to judge whether the message of respond request is excessively complicated or have and may cause collapse for client.If sentenced Disconnected to cause to collapse, then control issues, and causes to collapse because response message is received to avoid client.I.e. the present invention can be kept away Exempt to go wrong due to user environment, such as the version of mobile phone ROM, mobile phone memory at that time, network environment etc., and causes visitor The complicated message that family termination is sent by background server causes to collapse.
In addition, can be moved back in the method for prevention client collapse of the present invention its " collapse " for the sudden strain of a muscle of application program.
It can refer to embodiment as of the invention one, as shown in Fig. 2, the Ruin model can be obtained by following process :
Step S201: receiving the request of data of client, parses the request of data to obtain target component information.
Step S202: recording the target component information, issues the information for responding the request of data.
Step S203: it obtains client and receives the state after the response message and preservation.
Wherein, it includes normal and collapse that the client of acquisition, which receives the state after the response message, preferably, by normal It is set as 0, collapse is set as 1, that is to say, that mark is denoted as 0 if state is normally, and mark is denoted as 1 if state is collapse. As embodiment, target component information and corresponding states can be all recorded in preset table and be saved.
Step S204: judge whether to obtain the target component information and its corresponding state of predetermined quantity, if then carrying out Step S205, otherwise return step S201.
Wherein, the target component information and its corresponding state of the predetermined quantity constitute historical data.Preferably, this is gone through History data are used to carry out model training, more as far as possible under positive and negative sample size unanimous circumstances.
Step S205: Ruin model is generated.
Wherein, the Ruin model, which can be, obtains the prediction whether this calling can collapse by inputting target component As a result.
Preferably, the Ruin model can use sorting algorithm, Factorization machine FM etc..
It is worth noting that considering since Factorization machine FM more considers the relationship in model between each weight Association between feature, it is therefore preferred to can use following Factorization machine FM (Factorization Machine) As Ruin model.
Wherein, v ∈ Rn, k,<vi, vj>expression are the dot products between the vector that two sizes are k, and k is the dimension of hidden vector Degree:
It should be noted that xixjThese represent be target component platform, OSversion, MemMax, MemTotal, MemFree, cpuUsed, communicationMode, manufactor, model, functionId and The value of appVersion.
wiThat represent is xiWeight, be the optimal ginseng calculated inside Ruin model by residual error function gradient descent method Number.The matrix decomposition of FM Factorization machine is based on one it is assumed that the value i.e. in matrix is equal to multiplying for the two hidden vectors learnt Product, i.e. wij=vivjTwo of them feature vi、vjCorrelation parameter wijIt indicates.
In embodiment, normal ring according to the target component information of client, can be predicted by the Ruin model of generation Answer whether the request of data of client will cause its collapse.And when the request of data at customer in response end will cause its collapse, then Error information can be returned to, to avoid the collapse of client.Wherein, the collapse can refer to that the sudden strain of a muscle of application APP is moved back, That is Crash.
Fig. 3 is the device of prevention client collapse according to an embodiment of the present invention, as shown in figure 3, the prevention client The device 300 of collapse includes receiving module 301, computing module 302 and respond module 303.Wherein, receiving module 301 receives visitor The request of data at family end parses the request of data to obtain target component information.Then, computing module 302 is according to the mesh Parameter information is marked, by Ruin model, if the information for responding the request of data is returned to whether the client is made by judgement At its collapse.If the client is caused to collapse, error information is returned to the client by respond module 303.
It is worth noting that the target component may include at least one of: Platform Type (platform) is System version (OSversion), currently distributes total memory (MemTotal), free memory at maximum allocated memory (MemMax) (MemFree), current process CPU usage (cpuUsed), data network (communicationMode), manufacturing firm (manufactor), the unique identification (functionId) and client application software version of type (model), request interface (appVersion)。
In one preferably embodiment, the device of the prevention client collapse further includes Ruin model generation module 304 (as shown in Figure 4), and the Ruin model generation module 304 records the target component information, issues the response number According to the information of request, the state after the response message and preservation are received to obtain client.Then, according to target component information And its corresponding state, generate Ruin model.
Further, the Ruin model, which can be, obtains whether this calling can collapse by inputting target component Prediction result.Further, the Ruin model can use sorting algorithm, Factorization machine FM etc..
As one embodiment, error information can be returned to the client by respond module 303, the client according to It is preset to jump logic, jump to specified address.Or dialog box can be popped up to prompt user's service unavailable.
It should be noted that the specific implementation content of the device in prevention client collapse of the present invention, in institute above It states and has been described in detail in the method for prevention client collapse, therefore no longer illustrate in this duplicate contents.
Fig. 5 is the method for prevention client collapse according to an embodiment of the present invention, as shown in figure 5, being applied to client, institute Stating the method that prevention client is collapsed includes:
Step S501 sends request of data, wherein the target component in the request of data includes at least one of: flat Platform type, maximum allocated memory, currently distributes total memory, free memory, current process CPU usage, data network at system version Network, manufacturing firm, type, the unique identification of request interface and client application software version.
Step S502 receives the error information of return.
Preferably, can jump logic after the error information for receiving server return according to preset, jump to Specified address.Or dialog box can be popped up to prompt user's service unavailable.
As can be seen that the method that the prevention client applied to client is collapsed, after sending request of data, such as It will cause collapse after fruit server prediction to the data of client reception normal response, then the client can receive server The error information of return.
Fig. 6 is the device of prevention client collapse according to an embodiment of the present invention, as shown in fig. 6, the prevention client The device 600 of collapse includes sending module 601 and receiving module 602.Wherein, sending module 601 can send request of data, Described in target component in request of data include at least one of: Platform Type, system version, maximum allocated memory, when The total memory of preceding distribution, free memory, current process CPU usage, data network, manufacturing firm, type, request interface it is unique Mark and client application software version.And the receiving module 602 then can receive the error information of return.
Preferably, can jump logic after receiving module 602 receives the error information returned according to preset, jump To specified address.Or dialog box can be popped up to prompt user's service unavailable.
Fig. 7 is shown can be applied to method or prevention that the prevention client of server is collapsed using the embodiment of the present invention The exemplary system architecture 700 of the device of client collapse.Or Fig. 7 shows and can be applied to visitor using the embodiment of the present invention The exemplary system architecture 700 of the device of the method or prevention client collapse of the prevention client collapse at family end.
As shown in fig. 7, system architecture 700 may include terminal device 701,702,703, network 704 and server 705. Network 704 between terminal device 701,702,703 and server 705 to provide the medium of communication link.Network 704 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 701,702,703 and be interacted by network 704 with server 705, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 701,702,703 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 701,702,703 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 705 can be to provide the server of various services, such as utilize terminal device 701,702,703 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that the method for prevention client collapse is generally by server 705 provided by the embodiment of the present invention It executes, correspondingly, the device of prevention client collapse is generally positioned in server 705.
It should be understood that the number of terminal device, network and server in Fig. 7 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 8, it illustrates the computer systems 800 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 8 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 8, computer system 800 includes central processing unit (CPU) 801, it can be read-only according to being stored in Program in memory (ROM) 802 or be loaded into the program in random access storage device (RAM) 803 from storage section 808 and Execute various movements appropriate and processing.In RAM803, also it is stored with system 800 and operates required various programs and data. CPU801, ROM 802 and RAM803 is connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to bus 804。
I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 808 including hard disk etc.; And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because The network of spy's net executes communication process.Driver 810 is also connected to I/O interface 805 as needed.Detachable media 811, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 810, in order to read from thereon Computer program be mounted into storage section 808 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.In In such embodiment, which can be downloaded and installed from network by communications portion 809, and/or from can Medium 811 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 801, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include receiving module, computing module and respond module.Wherein, the title of these modules is not constituted under certain conditions to the module The restriction of itself.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: to receive the request of data of client, parses the request of data to obtain target component information;According to described Target component information, by Ruin model, if whether the information for responding the request of data is returned to the client by judgement Cause its collapse;If the client is caused to collapse, error information is returned into the client.
Technical solution according to an embodiment of the present invention, can be realized judge whether to collapse determine how customer in response End avoids directly collapsing and gives user's bring very poor experience.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (18)

1. a kind of method for preventing client collapse characterized by comprising
The request of data for receiving client, parses the request of data to obtain target component information;
According to the target component information, by Ruin model, if the information for responding the request of data is returned to institute by judgement State whether client causes its collapse;
If the client is caused to collapse, error information is returned into the client.
2. the method according to claim 1, wherein further include:
The request of data for receiving client, parses the request of data to obtain target component information;
The target component information is recorded, the information for responding the request of data is issued, receives the response to obtain client State and preservation after information;
According to target component information and its corresponding state, Ruin model is generated.
3. the method according to claim 1, wherein further include:
Error information is returned into the client, the client jumps logic according to preset, jumps to specified address;Or Dialog box is popped up to prompt user's service unavailable.
4. the method according to claim 1, wherein the Ruin model uses sorting algorithm or Factorization machine Algorithm.
5. method according to claim 1 to 4, which is characterized in that the target component includes at least one of: Platform Type, maximum allocated memory, currently distributes total memory, free memory, current process CPU usage, data at system version Network, manufacturing firm, type, the unique identification of request interface and client application software version.
6. a kind of device for preventing client collapse characterized by comprising
Receiving module parses the request of data for receiving the request of data of client to obtain target component information;
Computing module is used for according to the target component information, by Ruin model, if judgement will respond the request of data Information return to whether the client causes its collapse;
Respond module, if error information is returned to the client for causing the client to collapse.
7. device according to claim 6, which is characterized in that further include:
Ruin model generation module issues the information for responding the request of data, for recording the target component information to obtain State and preservation after taking client to receive the response message;It is collapsed according to target component information and its corresponding state, generation Routed model.
8. device according to claim 6, which is characterized in that the respond module is also used to:
Error information is returned into the client, the client jumps logic according to preset, jumps to specified address;Or Dialog box is popped up to prompt user's service unavailable.
9. device according to claim 6, which is characterized in that the Ruin model uses sorting algorithm or Factorization machine Algorithm.
10. according to device described in claim 6-9, which is characterized in that the target component includes at least one of: platform Type, maximum allocated memory, currently distributes total memory, free memory, current process CPU usage, data network at system version Network, manufacturing firm, type, the unique identification of request interface and client application software version.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
13. a kind of method for preventing client collapse characterized by comprising
Request of data is sent, wherein the target component in the request of data includes at least one of: Platform Type, system version Sheet, maximum allocated memory, currently distribute total memory, free memory, current process CPU usage, data network, manufacturing firm, Type, the unique identification of request interface and client application software version;
Receive the error information returned.
14. according to the method for claim 13, which is characterized in that after the error information for receiving return, further includes:
Logic is jumped according to preset, jumps to specified address;Or pop-up dialog box is to prompt user's service unavailable.
15. a kind of device for preventing client collapse characterized by comprising
Sending module, for sending request of data, wherein the target component in the request of data includes at least one of: flat Platform type, maximum allocated memory, currently distributes total memory, free memory, current process CPU usage, data network at system version Network, manufacturing firm, type, the unique identification of request interface and client application software version;
Receiving module, for receiving the error information returned.
16. device according to claim 15, which is characterized in that the receiving module receive the error information that returns it Afterwards, it is also used to:
Logic is jumped according to preset, jumps to specified address;Or pop-up dialog box is to prompt user's service unavailable.
17. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in claim 13 or 14 is any.
18. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in claim 13 or 14 is any is realized when row.
CN201810418618.8A 2018-05-04 2018-05-04 Method and device for preventing client from crashing Active CN110445632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810418618.8A CN110445632B (en) 2018-05-04 2018-05-04 Method and device for preventing client from crashing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810418618.8A CN110445632B (en) 2018-05-04 2018-05-04 Method and device for preventing client from crashing

Publications (2)

Publication Number Publication Date
CN110445632A true CN110445632A (en) 2019-11-12
CN110445632B CN110445632B (en) 2023-09-01

Family

ID=68427526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810418618.8A Active CN110445632B (en) 2018-05-04 2018-05-04 Method and device for preventing client from crashing

Country Status (1)

Country Link
CN (1) CN110445632B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416857A (en) * 2020-03-16 2020-07-14 广州市百果园信息技术有限公司 Client crash processing method, device, system, equipment and storage medium
CN111709778A (en) * 2020-05-29 2020-09-25 北京百度网讯科技有限公司 Travel flow prediction method and device, electronic equipment and storage medium
CN113742377A (en) * 2020-11-04 2021-12-03 北京沃东天骏信息技术有限公司 Method and device for processing data
CN117278524A (en) * 2023-09-26 2023-12-22 北京网藤科技有限公司 Method and system for solving problem of displaying warning prompt when browser opens local server

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136784A1 (en) * 2004-12-06 2006-06-22 Microsoft Corporation Controlling software failure data reporting and responses
US20120072488A1 (en) * 2010-01-11 2012-03-22 Ensighten, Llc Conditional Logic for Delivering Computer-Executable Program Instructions and Content
CN102393842A (en) * 2011-06-28 2012-03-28 用友软件股份有限公司 Command processing device and command processing method
CN103019879A (en) * 2013-01-07 2013-04-03 北京奇虎科技有限公司 Method and system for processing crash information of browser
CN103077108A (en) * 2013-01-07 2013-05-01 北京奇虎科技有限公司 Method and system for warning browser crash
US20130159767A1 (en) * 2011-12-20 2013-06-20 International Business Machines Corporation Client selectable server-side error resolution
CN103226486A (en) * 2013-04-23 2013-07-31 北京奇虎科技有限公司 Optimization method and device for browser operation
US8707433B1 (en) * 2011-05-03 2014-04-22 Symantec Corporation Fake exception handler detection
CN104506658A (en) * 2015-01-13 2015-04-08 厦门美图之家科技有限公司 Early-warning method and system for collapse of application program
CN104572327A (en) * 2014-12-24 2015-04-29 北京奇虎科技有限公司 Method, device and system for processing browser crash
US20150281267A1 (en) * 2014-03-27 2015-10-01 Cylent Systems, Inc. Malicious Software Identification Integrating Behavioral Analytics and Hardware Events
CN106156064A (en) * 2015-03-30 2016-11-23 阿里巴巴集团控股有限公司 Data base is carried out the method and device of flow-control
CN106201442A (en) * 2016-07-15 2016-12-07 广东欧珀移动通信有限公司 The execution method and device of application program
WO2017000480A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 Time synchronization method, server and system, and storage medium
US20170083399A1 (en) * 2013-12-30 2017-03-23 Limited Liability Company Mail.Ru Systems and methods for assisting user in software application crashes
WO2017107438A1 (en) * 2015-12-25 2017-06-29 乐视控股(北京)有限公司 Method for controlling reporting of crash data, server and client
CN107102928A (en) * 2017-04-18 2017-08-29 广州视源电子科技股份有限公司 A kind of application crash information uploading method and device
CN107172122A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of abnormality eliminating method and device
CN107506256A (en) * 2017-09-07 2017-12-22 北京京东尚科信息技术有限公司 A kind of method and apparatus of crash data monitoring
CN107729931A (en) * 2017-10-09 2018-02-23 北京京东尚科信息技术有限公司 Picture methods of marking and device

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136784A1 (en) * 2004-12-06 2006-06-22 Microsoft Corporation Controlling software failure data reporting and responses
US20120072488A1 (en) * 2010-01-11 2012-03-22 Ensighten, Llc Conditional Logic for Delivering Computer-Executable Program Instructions and Content
US8707433B1 (en) * 2011-05-03 2014-04-22 Symantec Corporation Fake exception handler detection
CN102393842A (en) * 2011-06-28 2012-03-28 用友软件股份有限公司 Command processing device and command processing method
US20130159767A1 (en) * 2011-12-20 2013-06-20 International Business Machines Corporation Client selectable server-side error resolution
CN103019879A (en) * 2013-01-07 2013-04-03 北京奇虎科技有限公司 Method and system for processing crash information of browser
CN103077108A (en) * 2013-01-07 2013-05-01 北京奇虎科技有限公司 Method and system for warning browser crash
CN103226486A (en) * 2013-04-23 2013-07-31 北京奇虎科技有限公司 Optimization method and device for browser operation
US20170083399A1 (en) * 2013-12-30 2017-03-23 Limited Liability Company Mail.Ru Systems and methods for assisting user in software application crashes
US20150281267A1 (en) * 2014-03-27 2015-10-01 Cylent Systems, Inc. Malicious Software Identification Integrating Behavioral Analytics and Hardware Events
CN104572327A (en) * 2014-12-24 2015-04-29 北京奇虎科技有限公司 Method, device and system for processing browser crash
CN104506658A (en) * 2015-01-13 2015-04-08 厦门美图之家科技有限公司 Early-warning method and system for collapse of application program
CN106156064A (en) * 2015-03-30 2016-11-23 阿里巴巴集团控股有限公司 Data base is carried out the method and device of flow-control
WO2017000480A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 Time synchronization method, server and system, and storage medium
WO2017107438A1 (en) * 2015-12-25 2017-06-29 乐视控股(北京)有限公司 Method for controlling reporting of crash data, server and client
CN106201442A (en) * 2016-07-15 2016-12-07 广东欧珀移动通信有限公司 The execution method and device of application program
CN107172122A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of abnormality eliminating method and device
CN107102928A (en) * 2017-04-18 2017-08-29 广州视源电子科技股份有限公司 A kind of application crash information uploading method and device
CN107506256A (en) * 2017-09-07 2017-12-22 北京京东尚科信息技术有限公司 A kind of method and apparatus of crash data monitoring
CN107729931A (en) * 2017-10-09 2018-02-23 北京京东尚科信息技术有限公司 Picture methods of marking and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张杰;景雯;张景安;: "网络高负载下的崩溃估计模型仿真", 计算机仿真, no. 09 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416857A (en) * 2020-03-16 2020-07-14 广州市百果园信息技术有限公司 Client crash processing method, device, system, equipment and storage medium
CN111709778A (en) * 2020-05-29 2020-09-25 北京百度网讯科技有限公司 Travel flow prediction method and device, electronic equipment and storage medium
CN111709778B (en) * 2020-05-29 2023-04-07 北京百度网讯科技有限公司 Travel flow prediction method and device, electronic equipment and storage medium
CN113742377A (en) * 2020-11-04 2021-12-03 北京沃东天骏信息技术有限公司 Method and device for processing data
CN117278524A (en) * 2023-09-26 2023-12-22 北京网藤科技有限公司 Method and system for solving problem of displaying warning prompt when browser opens local server

Also Published As

Publication number Publication date
CN110445632B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN109460513A (en) Method and apparatus for generating clicking rate prediction model
CN109032760A (en) Method and apparatus for application deployment
CN110445632A (en) A kind of method and apparatus for preventing client collapse
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN108694637A (en) Order processing method, apparatus, server and storage medium
CN108595628A (en) Method and apparatus for pushed information
CN110245011A (en) A kind of method for scheduling task and device
CN108805594A (en) Information-pushing method and device
CN108390872A (en) Certificate management method, device, medium and electronic equipment
CN109766082A (en) The method and apparatus that the application program page jumps
CN110427304A (en) O&amp;M method, apparatus, electronic equipment and medium for banking system
CN109257320A (en) Message storage method and device
CN109255337A (en) Face critical point detection method and apparatus
CN110471848A (en) A kind of method and apparatus of dynamic returned packet
CN109684188A (en) Test method and device
CN109992406A (en) The method and client that picture requesting method, response picture are requested
CN109413056A (en) Method and apparatus for handling information
CN109688086A (en) Authority control method and device for terminal device
CN107347093A (en) Collocation method and device for distributed server system
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN107958359A (en) Shelf choosing method and device
CN109597912A (en) Method for handling picture
CN107908662A (en) The implementation method and realization device of search system
CN111951040A (en) Information sending method and device, electronic equipment and storage medium
JP6099467B2 (en) Application search server and application ranking generation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant