CN102750190A - Method and device for processing terminal bugs - Google Patents

Method and device for processing terminal bugs Download PDF

Info

Publication number
CN102750190A
CN102750190A CN2012102079413A CN201210207941A CN102750190A CN 102750190 A CN102750190 A CN 102750190A CN 2012102079413 A CN2012102079413 A CN 2012102079413A CN 201210207941 A CN201210207941 A CN 201210207941A CN 102750190 A CN102750190 A CN 102750190A
Authority
CN
China
Prior art keywords
terminal
leak
state information
running state
current
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
CN2012102079413A
Other languages
Chinese (zh)
Other versions
CN102750190B (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210207941.3A priority Critical patent/CN102750190B/en
Publication of CN102750190A publication Critical patent/CN102750190A/en
Application granted granted Critical
Publication of CN102750190B publication Critical patent/CN102750190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for processing terminal bugs, belonging to the field of computers. The method comprises the following steps of: periodically collecting the current running status information of a terminal; and when the terminal has bugs, determining whether the bugs existing in the terminal are fixed according to the current running status information of the terminal. The device comprises a collecting module and a first determining module. The fluency of a user using the terminal cannot be influenced when the bugs in the terminal are fixed.

Description

A kind of method and device that the terminal leak is handled
Technical field
The present invention relates to computer realm, particularly a kind of method and device that the terminal leak is handled.
Background technology
Usually there is leak in the terminal; This leak is the defective that exists on concrete realization or the security of system strategy of hardware, software, agreement at terminal; The assailant can visit or destroy terminal system through this leak under undelegated situation, to the safety formation danger side of body at terminal.
At present security protection class software can be installed on the terminal; Security protection class software can detect the leak that the terminal exists; From network, download the corresponding patch of this leak, the patch of downloading is installed is repaired this leak, so provide safeguard for the safety at terminal with realization.
Wherein, Need occupied terminal CPU (Central Processing Uint during security protection class software patching bugs; Central processing unit) and ample resources such as internal memory; Can reduce the performance at terminal, so when the user when using terminal and the class of security protection simultaneously software to repair the leak of terminal existence, can influence the fluency that the user uses the terminal.
Summary of the invention
Use the fluency at terminal to exert an influence to the user during for fear of the leak in repairing the terminal, the invention provides a kind of method and device that the terminal leak is handled.Said technical scheme is following:
A kind of method that the terminal leak is handled, said method comprises:
The current running state information of acquisition terminal periodically;
When having leak in the said terminal, confirm the current whether leak of said terminal existence the reparation according to the current running state information in said terminal.
The current running state information of said periodically acquisition terminal comprises:
Start preset timer, make said timer carry out timing;
When said timer overflows, said timer reclocking is set, and gathers the current running state information in said terminal.
The running state information at said terminal comprises the proportion and the network-in-dialing situation of CPU usage, available memory space at least;
Saidly confirm that according to the current running state information in said terminal the current leak that whether said terminal is existed repairs, comprising:
Proportion and network-in-dialing situation to said CPU usage, available memory space are judged;
If it is not off-state above preset proportion and/or said network-in-dialing situation that said CPU usage surpasses the proportion of preset utilization rate, said available memory space, then determine current can not the reparation to the leak that exists in the said terminal;
If it is connected state above preset proportion and said network-in-dialing situation that said CPU usage surpasses the proportion of preset utilization rate, said available memory space, then determine current can the reparation to the leak that exists in the said terminal.
Said method also comprises:
If determine current can not the reparation, then wait the running state information at said terminal to be collected to the leak that exists in the said terminal;
When collecting the current running state information in said terminal, confirm current whether can the reparation to the leak that exists in the said terminal according to the current running state information in said terminal.
Said method also comprises:
In the process that the leak that in to said terminal, exists is repaired; When collecting the current running state information in said terminal; Confirm that according to the current running state information in said terminal the current leak that whether can continue to exist in the said terminal repairs; If can not, the leak that then stops to continue existing in the said terminal is repaired.
Said method also comprises:
The leak that in stopping to continue said terminal, exists is repaired and when collecting the current running state information in said terminal, confirms currently whether start continuation the leak that exists in the said terminal is repaired according to the current running state information in said terminal.
Said method also comprises:
If close the user and to determine the leak that exists in can not be to said terminal before the said terminal and repair always, then when the user closes said terminal, the leak that exists in the said terminal is repaired and after repairing completion, closed said terminal.
Said confirm that according to the current running state information in said terminal the current leak that whether said terminal is existed is repaired before, also comprise:
When collecting the current running state information in said terminal, confirm currently whether can carry out Hole Detection to said terminal according to the current running state information in said terminal.
Said method also comprises:
Can not carry out Hole Detection to said terminal if determine, then wait the current running state information in said terminal to be collected;
When collecting the current running state information in said terminal, then confirm currently whether Hole Detection is carried out at said terminal according to the current running state information in said terminal.
Said method also comprises:
If before the user closes said terminal, determine and to carry out Hole Detection to said terminal, then when the user closes said terminal, Hole Detection is carried out at said terminal always;
Have leak if detect said terminal, the leak that then said terminal is existed is repaired and after repairing completion, is closed said terminal; There is not leak if detect said terminal, then closes said terminal.
A kind of device that the terminal leak is handled, said device comprises:
Acquisition module is used for the periodically current running state information of acquisition terminal;
First determination module is used for when there is leak in said terminal, confirms the current whether leak of said terminal existence the reparation according to the current running state information in said terminal.
Said acquisition module comprises:
Start unit is used to start preset timer, makes said timer carry out timing;
Collecting unit is used for when said timer overflows, and said timer reclocking is set, and gathers the current running state information in said terminal.
The running state information at said terminal comprises the proportion and the network-in-dialing situation of CPU usage, available memory space at least;
Said first determination module comprises:
Judging unit is used for the proportion and the network-in-dialing situation of said CPU usage, available memory space are judged;
First confirms the unit; If being used for said CPU usage is not off-state above preset proportion and/or said network-in-dialing situation above the proportion of presetting utilization rate, said available memory space, then determine current can not the reparation to the leak that exists in the said terminal;
Second confirms the unit; If being used for said CPU usage is connected state above the proportion of preset utilization rate, said available memory space above preset proportion and said network-in-dialing situation, then determine current can the reparation to the leak that exists in the said terminal.
Said device also comprises:
Second determination module if be used for determining current can not the reparation the leak that said terminal exists, then waits the running state information at said terminal to be collected; When collecting the current running state information in said terminal, confirm current whether can the reparation to the leak that exists in the said terminal according to the current running state information in said terminal.
Said device also comprises:
Stopping modular; Be used in the process that the leak that said terminal is existed is repaired; When collecting the current running state information in said terminal; Confirm that according to the current running state information in said terminal the current leak that whether can continue to exist in the said terminal repairs, if can not, the leak that then stops to continue existing in the said terminal is repaired.
Said device also comprises:
Start module; Be used for the leak that said terminal exists being repaired and when collecting the current running state information in said terminal when stopping to continue, confirm currently whether start continuation the leak that exists in the said terminal is repaired according to the current running state information in said terminal.
Said device also comprises:
First closing module; Determine always and can not repair before the said terminal if be used for closing, then when the user closes said terminal, the leak that exists in the said terminal is repaired and after repairing completion, closed said terminal the leak that said terminal exists the user.
Said device also comprises:
The 3rd determination module is used for when collecting the current running state information in said terminal, confirms currently whether can carry out Hole Detection to said terminal according to the current running state information in said terminal.
Said device also comprises:
The 4th determination module can not carry out Hole Detection to said terminal if be used for determining, and then waits the current running state information in said terminal to be collected; When collecting the current running state information in said terminal, then confirm currently whether Hole Detection is carried out at said terminal according to the current running state information in said terminal.
Said device also comprises:
Second closing module if be used for before the user closes said terminal, determining and can not carrying out Hole Detection to said terminal always, is then carried out Hole Detection to said terminal when the user closes said terminal; Have leak if detect said terminal, the leak that then said terminal is existed is repaired and after repairing completion, is closed said terminal; There is not leak if detect said terminal, then closes said terminal.
In embodiments of the present invention, the current running state information of acquisition terminal periodically; When having leak in the terminal, confirm the current whether leak of terminal existence the reparation according to the current running state information in terminal.So when the user at the use terminal and during the more resource of occupied terminal; Can determine the ruuning situation at terminal according to the current running state information in terminal; And confirm currently the leak that exists in the terminal not to be repaired, to ensure that the user uses the fluency at terminal.
Description of drawings
Fig. 1 is a kind of method flow diagram that the terminal leak is handled that the embodiment of the invention 1 provides;
Fig. 2 is a kind of method flow diagram that the terminal leak is handled that the embodiment of the invention 2 provides;
Fig. 3 is first kind of apparatus structure synoptic diagram that the terminal leak is handled that the embodiment of the invention 3 provides;
Fig. 4 is second kind of apparatus structure synoptic diagram that the terminal leak is handled that the embodiment of the invention 3 provides;
Fig. 5 is the third apparatus structure synoptic diagram that terminal leak is handled that the embodiment of the invention 3 provides.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Embodiment 1
As shown in Figure 1, the embodiment of the invention provides a kind of method that the terminal leak is handled, and comprising:
Step 101: the current running state information of acquisition terminal periodically;
Step 102: when having leak in the terminal, confirm the current whether leak of terminal existence the reparation according to the current running state information in terminal.
In embodiments of the present invention, the current running state information of acquisition terminal periodically; When having leak in the terminal, confirm the current whether leak of terminal existence the reparation according to the current running state information in terminal.So when the user at the use terminal and during the more resource of occupied terminal; Can determine the ruuning situation at terminal according to the current running state information in terminal; And confirm currently the leak that exists in the terminal not to be repaired, to ensure that the user uses the fluency at terminal.
Embodiment 2
As shown in Figure 2, the embodiment of the invention provides a kind of method that the terminal leak is handled, and comprising:
Step 201: the current running state information of acquisition terminal periodically, this running state information comprises the proportion and the network-in-dialing situation of CPU usage, available memory space at least;
Particularly, start preset timer, make this timer carry out timing, when timer overflows, this timer reclocking is set, and the current running state information of acquisition terminal.
Wherein, the current running state information of acquisition terminal periodically when starting up of terminal starts.When each timer overflows; Can from the operating system at terminal, call API (the Application Programing Interface that is used to gather running state information; API) function; The running state information of the api function acquisition terminal through being used to gather running state information, the running state information of collection comprises the proportion and the network-in-dialing situation of CPU usage, available memory space at least.
Further, the running state information at terminal can also comprise whether the user uses keyboard input, user whether to use the sign of the process that mouse input and terminal moving.
Wherein, Need to prove: detecting before the terminal do not exist before the leak or is repairing the leak of terminal existence; Can be always the running state information of acquisition terminal periodically; And, just stop the running state information of acquisition terminal detecting the terminal when not having leak or when having repaired the leak that the terminal exists.
Wherein, The title of the running status that the needs that periodically comprise in the basis status list of having stored are gathered; Call the api function of the corresponding running status of the title that is used to gather this running status, gather the corresponding running state information of title of this running status through this api function.
Wherein, the title of the running status in the status list comprises CPU usage at least, the proportion of available memory space and network-in-dialing situation; Can also comprise the keyboard input condition, the process that mouse input condition and terminal are being moved etc.
Wherein, the user can be in advance adds or the title of the running status of deletion needs collection to status list according to self needs, but the user cannot delete the CPU usage that comprises in the status list, the proportion and the network-in-dialing situation of available memory space.In addition, the user can also be provided with the time size of timer timing.
Step 202: confirm currently whether can carry out Hole Detection to the terminal according to the current running state information in terminal; If can carry out Hole Detection to the terminal; Then execution in step 203, wherein, Hole Detection is carried out at the terminal can detect the terminal and whether have leak;
Wherein, If the running state information at terminal comprises the proportion and the network-in-dialing situation of CPU usage, available memory space size; Then this step can be specially, and the proportion and the network-in-dialing situation of CPU usage, available memory space is judged, if CPU usage surpasses preset utilization rate; The proportion of available memory space surpasses preset proportion and/or the network-in-dialing situation is an off-state, then determines currently can not carry out Hole Detection to the terminal; If CPU usage surpasses preset utilization rate, the proportion of available memory space surpasses preset proportion and the network-in-dialing situation is a connected state, then determines currently can carry out Hole Detection to the terminal.
Further; Currently can not carry out Hole Detection if determine to the terminal; The running state information of latent period property ground acquisition terminal then, when collecting the running state information at terminal, the CPU usage that comprises according to the running state information at terminal, the proportion and the network-in-dialing situation of available memory space determine whether Hole Detection is carried out at the terminal; Can not carry out Hole Detection to the terminal if determine; Then continue to wait for the running state information of acquisition terminal, can carry out Hole Detection to the terminal if determine, then execution in step 203.
Wherein, Hole Detection is carried out at the terminal need consume a large amount of CPU usages and memory headroom; If the active user is using the terminal and need take bigger terminal resource, the proportion that makes the CPU usage at current terminal surpass the available memory space at preset utilization rate and/or current terminal surpasses preset proportion, and carry out Hole Detection to the terminal this moment; Can reduce the performance at terminal greatly, use the fluency at terminal to bring bigger influence to the user.
Wherein, if there is leak in the terminal, then before the leak of repairing the terminal existence; Need from network, download the corresponding patch of this leak, if the current network-in-dialing situation in terminal is an off-state, even detect the leak that exists at terminal; Also can't download the corresponding patch of this leak; To such an extent as to can't repair this leak,, then there is no need Hole Detection is carried out at the terminal if therefore the network-in-dialing situation at current terminal is an off-state.
Wherein, Need to prove:, currently can not carry out Hole Detection and cause determining, when the user is connected to network with the terminal to the terminal if because the network-in-dialing situation at terminal is an off-state; Make the network-in-dialing situation at terminal become connected state and when the network-in-dialing situation that collects the terminal is connected state by off-state; Just can determine and can carry out Hole Detection to the terminal, so comparing prior art needs the manually opened security protection class of user software just Hole Detection to be carried out at the terminal after the user is connected to network with the terminal, and scheme of the present invention is intelligence more; Not only make things convenient for the user, can also carry out real-time guard the terminal.
Step 203: Hole Detection is carried out at the terminal, have leak in the terminal, then wait for the running state information that acquisition terminal is current if detect, when collecting the current running state information in terminal, execution in step 204;
Further, there is not leak in the terminal, then the current running state information of dwelling period property ground acquisition terminal if detect.
Wherein, can use the method for existing Hole Detection that Hole Detection is carried out at the terminal, whether have leak to detect the terminal.
If before the user closes a terminal, determine and to carry out Hole Detection to the terminal always; Then when receiving the shutdown command of user's submission; Hole Detection is carried out at the terminal, do not have leak, then close a terminal if detect the terminal; There is leak in the terminal if detect, then the leak that exists in the terminal repaired and after repair accomplishing, closed a terminal.
Wherein, the leak that exists in the terminal is repaired, can be specially: the patch that the leak that from the network download terminal, exists is corresponding, the terminal of patch to realize existing in the reparation terminal of downloading is installed; To go out the detailed process that leak that the terminal is existed repairs identical therewith in other places among this paper, no longer repeat specification.
Wherein, need to prove: the terminal is being carried out in the process of Hole Detection, also continuing the periodically current running state information of acquisition terminal.
Step 204: when collecting the current running state information in terminal; Confirm current whether can the reparation according to the current running state information in terminal to the leak that exists in the terminal; Can repair the leak that exists in the terminal if determine, the leak that then terminal is existed is repaired and execution in step 205;
Wherein, If the running state information at terminal comprises the proportion and the network-in-dialing situation of CPU usage, available memory space size; Then this step can be specially, and the proportion and the network-in-dialing situation of CPU usage, available memory space is judged, if CPU usage surpasses preset utilization rate; The proportion of available memory space does not surpass preset proportion and/or the network-in-dialing situation is an off-state, then determines current can not the reparation the leak that the terminal exists; Do not surpass preset utilization rate if judge CPU usage, the proportion of available memory space surpasses preset proportion and the network-in-dialing situation is a connected state, then determines current can the reparation the leak that exists in the terminal.
Wherein, If the current CPU usage in terminal surpasses the proportion of preset utilization rate and/or internal memory free space and does not surpass preset proportion; Then show the current terminal of using of user, and need take bigger CPU usage and memory headroom, can use the terminal glibly in order to guarantee the user; Determine and currently can not carry out the leak reparation to the terminal, the leak that again terminal is existed when waiting terminal idle is repaired.
Whether further, use keyboard input, user whether to use the relevant information of the process that mouse input and terminal moving if the running state information at terminal also comprises the user, then this step also comprises:
Do not surpass preset utilization rate when judging CPU usage; After the proportion of available memory space surpasses preset proportion and network-in-dialing situation and is connected state; Whether use keyboard input, user whether to use the sign of the process that mouse input and terminal moving according to the user, also confirm current whether can the reparation further the leak that the terminal exists.
Particularly; The sign of the process of moving according to the terminal judges whether comprise preset process in the process of moving at the terminal; If comprise; Then whether judges uses keyboard input and/or user whether to use the mouse input again, uses keyboard input and/or user to use the mouse input if judge the user, then determines current can't the reparation the leak that exists in the terminal; If do not exist sign, the user of preset process not to use keyboard input and/or user not to use the mouse input in the sign of the process that the terminal is being moved, then confirm and to repair the leak that the terminal exists.
Wherein, Set up a consumer process tabulation in advance; Comprise the sign of preset process in this consumer process tabulation, take the bigger CPU and the software of memory headroom for needs, the sign of the process that the user can be corresponding with this software is arranged in the consumer process tabulation in advance.
The sign of the process of wherein, moving according to the terminal judges whether comprise preset process in the process of moving at the terminal, can be specially:
Judge the sign that whether has the preset process that comprises in the consumer process tabulation in the sign of the process that the terminal is being moved; If comprise; Then judge and comprise preset process in the process of moving at the terminal,, then judge and do not comprise preset process in the process of moving at the terminal if do not comprise.
Further, can repair the leak that exists in the terminal if determine, then this step can also comprise:
The sign of the process of moving according to the terminal; Judge and whether comprise network access process in the process of moving at the terminal; If comprise, in the process that the leak that the terminal is existed is repaired, according to the corresponding patch of leak of preset network bandwidth download terminal existence.
Particularly; Judge the sign that whether comprises the network access process that comprises in the network process tabulation of having stored in the sign of the process that the terminal is being moved; If comprise, then judge in the process of moving at the terminal and comprise network access process, obtain the preset network bandwidth; And in the process that the leak that the terminal is existed is repaired, according to the corresponding patch of leak of preset network bandwidth download terminal existence; If do not comprise, then judge and do not comprise network access process in the process of moving at the terminal.
Wherein, network access process needs accesses network, and for example, network access process can be the process that is used for running browser, the process that is used to download, and is used to watch the process of Online Video and/or is used for the process that operational network is played.
Wherein, If comprise network access process in the process that the terminal is being moved, show that then the user possibly use terminal access network, in the present embodiment; Download the corresponding patch of leak according to pre-set bandwidths and can reserve enough bandwidth confession user uses, guarantee that the user can smooth accesses network.
Wherein, If determine current can not be to there being leak reparation in the terminal; The current running state information of latent period property ground acquisition terminal then when collecting the current running state information in terminal, determines whether and can repair the leak that exists in the terminal according to the current running state information in terminal; If determine current can not the reparation to the leak that the terminal exists; Then continue the current running state information of latent period property ground acquisition terminal, can repair the leak that the terminal exists if determine, the leak that then terminal is existed is repaired.
Can not repair the leak that the terminal exists if before the user closes a terminal, determine always, then when receiving the shutdown command of user's submission, begin the leak that the terminal exists is repaired, and after reparation is accomplished, close a terminal.
Wherein, need to prove: in the process that the leak that the terminal is existed is repaired, also continue the current running state information of periodic acquisition terminal, and when collecting the running state information at terminal, beginning execution in step 205.
Step 205:, when collecting the current running state information in terminal, confirm that according to the current running state information in terminal current whether stopping to proceed to repair to the leak that the terminal exists if before having repaired the leak that the terminal exists;
Wherein, If the running state information at terminal comprises the proportion and the network-in-dialing situation of CPU usage, available memory space size; Then this step can be specially, and the proportion and the network-in-dialing situation of CPU usage, available memory space is judged, if CPU usage surpasses preset utilization rate; The proportion of available memory space does not surpass preset proportion and/or the network-in-dialing situation is an off-state, then determines current can not the continuation leak that the terminal exists is repaired; Do not surpass preset utilization rate if judge CPU usage, the proportion of available memory space surpasses preset proportion and the network-in-dialing situation is a connected state, then determines current can the continuation leak that exists in the terminal is repaired.
Whether further, use keyboard input, user whether to use the relevant information of the process that mouse input and terminal moving if the running state information at terminal also comprises the user, then this step also comprises:
Do not surpass preset utilization rate when judging CPU usage; After the proportion of available memory space surpasses preset proportion and network-in-dialing situation and is connected state; According to the user whether use keyboard input, user whether use process that mouse input and terminal moving sign, confirm further that also current whether can the continuation repair the leak that the terminal exists.
Further; In the process that the leak that the terminal is existed is repaired; When CPU usage proportion big and/or available memory space less etc., if also continue the leak that the terminal exists is repaired, can be bigger to the performance impact at terminal; Therefore determine the leak that stops the terminal exists and repair, can ensure that the user can use the terminal glibly.
Step 206: stop the leak that the terminal exists is repaired if determine current needs, the leak that then stops to continue the terminal exists is repaired;
Wherein, after stopping to continue the leak that the terminal exists repaired, also continue the current running state information of acquisition terminal periodically, and when collecting the current running state information in terminal, beginning execution in step 207.
Step 207: when collecting the current running state information in terminal, the running state information current according to the terminal determines whether that the leak that continues the terminal exists repairs;
Wherein, If the running state information at terminal comprises the proportion and the network-in-dialing situation of CPU usage, available memory space size; Then this step can be specially, and the proportion and the network-in-dialing situation of CPU usage, available memory space is judged, if CPU usage surpasses preset utilization rate; The proportion of available memory space does not surpass preset proportion and/or the network-in-dialing situation is an off-state, then determines current can not the continuation leak that the terminal exists is repaired; Do not surpass preset utilization rate if judge CPU usage, the proportion of available memory space surpasses preset proportion and the network-in-dialing situation is a connected state, then determines current can the continuation leak that exists in the terminal is repaired.
Whether further, use keyboard input, user whether to use the relevant information of the process that mouse input and terminal moving if the running state information at terminal also comprises the user, then this step also comprises:
Do not surpass preset utilization rate when judging CPU usage; After the proportion of available memory space surpasses preset proportion and network-in-dialing situation and is connected state; According to the user whether use keyboard input, user whether use process that mouse input and terminal moving sign, confirm further that also current whether can the continuation repair the leak that the terminal exists.
Step 208: if determine continuation the leak that the terminal exists is repaired, then started the leak that continues the terminal exists and repair, and current when collecting the current running state information in terminal in the process of repairing, return execution in step 205;
Repair if before the user closes a terminal, determine the leak that can not continue always, then when receiving the shutdown command of user's submission, begin the leak that the terminal exists is repaired, and after reparation is accomplished, close a terminal the terminal exists.
Step 209:, then stop to continue the current running state information of acquisition terminal if repaired the leak that the terminal exists.
In embodiments of the present invention, the current running state information of acquisition terminal periodically; When having leak in the terminal, confirm the current whether leak of terminal existence the reparation according to the current running state information in terminal.So when the user at the use terminal and during the more resource of occupied terminal; Can determine the ruuning situation at terminal according to the current running state information in terminal; And confirm currently the leak that exists in the terminal not to be repaired, to ensure that the user uses the fluency at terminal.
Embodiment 3
As shown in Figure 3, the embodiment of the invention provides a kind of device that the terminal leak is handled, and comprising:
Acquisition module 301 is used for the periodically current running state information of acquisition terminal;
First determination module 302 is used for when there is leak in the terminal, confirms the current whether leak of terminal existence the reparation according to the current running state information in terminal.
Wherein, referring to Fig. 4, acquisition module 301 comprises:
Start unit 3011 is used to start preset timer, makes this timer carry out timing;
Collecting unit 3012 is used for when this timer overflows, and this timer reclocking is set, and the current running state information of acquisition terminal.
Wherein, the running state information at terminal comprises the proportion and the network-in-dialing situation of CPU usage, available memory space at least;
Wherein, referring to Fig. 4, first determination module 302 comprises:
Judging unit 3021 is used for the proportion and the network-in-dialing situation of CPU usage, available memory space are judged;
First confirms unit 3022, is off-state above preset proportion and/or network-in-dialing situation if be used for CPU usage not above the proportion of presetting utilization rate, available memory space, then determines current can not the reparation the leak that exists in the terminal;
Second confirms unit 3023, is connected state above the proportion of preset utilization rate, available memory space above preset proportion and network-in-dialing situation if be used for CPU usage, then determines current can the reparation the leak that exists in the terminal.
Further, referring to Fig. 5, this device also comprises:
Second determination module 303 if be used for determining current can not the reparation the leak that the terminal exists, is then waited for the running state information of acquisition terminal; When collecting the current running state information in terminal, confirm current whether can the reparation to the leak that exists in the terminal according to the current running state information in terminal.
Further, referring to Fig. 5, this device also comprises:
Stopping modular 304; Be used in the process that the leak that the terminal is existed is repaired; When collecting the current running state information in terminal; Confirm that according to the current running state information in terminal the current leak that whether can continue to exist in the terminal repairs, if can not, the leak that then stops to continue existing in the terminal is repaired.
Further, referring to Fig. 5, this device also comprises:
Start module 305; Be used for the leak that the terminal exists being repaired and when collecting the current running state information in terminal when stopping to continue, confirm currently whether start continuation the leak that exists in the terminal is repaired according to the current running state information in terminal.
Further, referring to Fig. 5, this device also comprises:
First closing module 306 if be used for determining and can not repairing the leak that the terminal exists before closing a terminal the user always, then repaired the leak that exists in the said terminal when the user closes a terminal and after repairing completion, is closed said terminal.
Further, referring to Fig. 5, this device also comprises:
The 3rd determination module 307 is used for when collecting the current running state information in terminal, confirms currently whether can carry out Hole Detection to the terminal according to the current running state information in terminal.
Further, referring to Fig. 5, this device also comprises:
The 4th determination module 308 can not carry out Hole Detection to the terminal if be used for determining, and then waits for the running state information that acquisition terminal is current; When collecting the current running state information in terminal, then confirm currently whether Hole Detection is carried out at the terminal according to the current running state information in terminal.
Further, referring to Fig. 5, this device also comprises:
Second closing module 309 if be used for before the user closes a terminal, determining and can not carrying out Hole Detection to the terminal always, is then carried out Hole Detection to the terminal when the user closes a terminal; Have leak if detect the terminal, the leak that then terminal is existed is repaired and after repairing completion, is closed a terminal; There is not leak if detect the terminal, then closes a terminal.
In embodiments of the present invention, the current running state information of acquisition terminal periodically; When having leak in the terminal, confirm the current whether leak of terminal existence the reparation according to the current running state information in terminal.So when the user at the use terminal and during the more resource of occupied terminal; Can determine the ruuning situation at terminal according to the current running state information in terminal; And confirm currently the leak that exists in the terminal not to be repaired, to ensure that the user uses the fluency at terminal.
The all or part of step that one of ordinary skill in the art will appreciate that realization the foregoing description can be accomplished through hardware; Also can instruct relevant hardware to accomplish through program; Described program can be stored in a kind of computer-readable recording medium; The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (20)

1. the method that the terminal leak is handled is characterized in that, said method comprises:
The current running state information of acquisition terminal periodically;
When having leak in the said terminal, confirm the current whether leak of said terminal existence the reparation according to the current running state information in said terminal.
2. the method for claim 1 is characterized in that, the current running state information of said periodically acquisition terminal comprises:
Start preset timer, make said timer carry out timing;
When said timer overflows, said timer reclocking is set, and gathers the current running state information in said terminal.
3. the method for claim 1 is characterized in that, the running state information at said terminal comprises the proportion and the network-in-dialing situation of central processor CPU utilization rate, available memory space at least;
Saidly confirm that according to the current running state information in said terminal the current leak that whether said terminal is existed repairs, comprising:
Proportion and network-in-dialing situation to said CPU usage, available memory space are judged;
If it is not off-state above preset proportion and/or said network-in-dialing situation that said CPU usage surpasses the proportion of preset utilization rate, said available memory space, then determine current can not the reparation to the leak that exists in the said terminal;
If it is connected state above preset proportion and said network-in-dialing situation that said CPU usage surpasses the proportion of preset utilization rate, said available memory space, then determine current can the reparation to the leak that exists in the said terminal.
4. the method for claim 1 is characterized in that, said method also comprises:
If determine current can not the reparation, then wait the running state information at said terminal to be collected to the leak that exists in the said terminal;
When collecting the current running state information in said terminal, confirm current whether can the reparation to the leak that exists in the said terminal according to the current running state information in said terminal.
5. the method for claim 1 is characterized in that, said method also comprises:
In the process that the leak that in to said terminal, exists is repaired; When collecting the current running state information in said terminal; Confirm that according to the current running state information in said terminal the current leak that whether can continue to exist in the said terminal repairs; If can not, the leak that then stops to continue existing in the said terminal is repaired.
6. method as claimed in claim 5 is characterized in that, said method also comprises:
The leak that in stopping to continue said terminal, exists is repaired and when collecting the current running state information in said terminal, confirms currently whether start continuation the leak that exists in the said terminal is repaired according to the current running state information in said terminal.
7. like the described method of each claim of claim 1 to 6, it is characterized in that said method also comprises:
If close the user and to determine the leak that exists in can not be to said terminal before the said terminal and repair always, then when the user closes said terminal, the leak that exists in the said terminal is repaired and after repairing completion, closed said terminal.
8. the method for claim 1 is characterized in that, said confirm that according to the current running state information in said terminal the current leak that whether said terminal is existed is repaired before, also comprise:
When collecting the current running state information in said terminal, confirm currently whether can carry out Hole Detection to said terminal according to the current running state information in said terminal.
9. method as claimed in claim 8 is characterized in that, said method also comprises:
Can not carry out Hole Detection to said terminal if determine, then wait the current running state information in said terminal to be collected;
When collecting the current running state information in said terminal, then confirm currently whether Hole Detection is carried out at said terminal according to the current running state information in said terminal.
10. like claim 8 or 9 described methods, it is characterized in that said method also comprises:
If before the user closes said terminal, determine and to carry out Hole Detection to said terminal, then when the user closes said terminal, Hole Detection is carried out at said terminal always;
Have leak if detect said terminal, the leak that then said terminal is existed is repaired and after repairing completion, is closed said terminal; There is not leak if detect said terminal, then closes said terminal.
11. the device that the terminal leak is handled is characterized in that, said device comprises:
Acquisition module is used for the periodically current running state information of acquisition terminal;
First determination module is used for when there is leak in said terminal, confirms the current whether leak of said terminal existence the reparation according to the current running state information in said terminal.
12. device as claimed in claim 11 is characterized in that, said acquisition module comprises:
Start unit is used to start preset timer, makes said timer carry out timing;
Collecting unit is used for when said timer overflows, and said timer reclocking is set, and gathers the current running state information in said terminal.
13. device as claimed in claim 11 is characterized in that, the running state information at said terminal comprises the proportion and the network-in-dialing situation of central processor CPU utilization rate, available memory space at least;
Said first determination module comprises:
Judging unit is used for the proportion and the network-in-dialing situation of said CPU usage, available memory space are judged;
First confirms the unit; If being used for said CPU usage is not off-state above preset proportion and/or said network-in-dialing situation above the proportion of presetting utilization rate, said available memory space, then determine current can not the reparation to the leak that exists in the said terminal;
Second confirms the unit; If being used for said CPU usage is connected state above the proportion of preset utilization rate, said available memory space above preset proportion and said network-in-dialing situation, then determine current can the reparation to the leak that exists in the said terminal.
14. device as claimed in claim 11 is characterized in that, said device also comprises:
Second determination module if be used for determining current can not the reparation the leak that said terminal exists, then waits the running state information at said terminal to be collected; When collecting the current running state information in said terminal, confirm current whether can the reparation to the leak that exists in the said terminal according to the current running state information in said terminal.
15. device as claimed in claim 11 is characterized in that, said device also comprises:
Stopping modular; Be used in the process that the leak that said terminal is existed is repaired; When collecting the current running state information in said terminal; Confirm that according to the current running state information in said terminal the current leak that whether can continue to exist in the said terminal repairs, if can not, the leak that then stops to continue existing in the said terminal is repaired.
16. device as claimed in claim 15 is characterized in that, said device also comprises:
Start module; Be used for the leak that said terminal exists being repaired and when collecting the current running state information in said terminal when stopping to continue, confirm currently whether start continuation the leak that exists in the said terminal is repaired according to the current running state information in said terminal.
17., it is characterized in that said device also comprises like the described device of each claim of claim 11 to 16:
First closing module; Determine always and can not repair before the said terminal if be used for closing, then when the user closes said terminal, the leak that exists in the said terminal is repaired and after repairing completion, closed said terminal the leak that said terminal exists the user.
18. device as claimed in claim 11 is characterized in that, said device also comprises:
The 3rd determination module is used for when collecting the current running state information in said terminal, confirms currently whether can carry out Hole Detection to said terminal according to the current running state information in said terminal.
19. device as claimed in claim 18 is characterized in that, said device also comprises:
The 4th determination module can not carry out Hole Detection to said terminal if be used for determining, and then waits the current running state information in said terminal to be collected; When collecting the current running state information in said terminal, then confirm currently whether Hole Detection is carried out at said terminal according to the current running state information in said terminal.
20., it is characterized in that said device also comprises like claim 18 or 19 described devices:
Second closing module if be used for before the user closes said terminal, determining and can not carrying out Hole Detection to said terminal always, is then carried out Hole Detection to said terminal when the user closes said terminal; Have leak if detect said terminal, the leak that then said terminal is existed is repaired and after repairing completion, is closed said terminal; There is not leak if detect said terminal, then closes said terminal.
CN201210207941.3A 2012-06-21 2012-06-21 A kind of method that terminal leak is processed and device Active CN102750190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210207941.3A CN102750190B (en) 2012-06-21 2012-06-21 A kind of method that terminal leak is processed and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210207941.3A CN102750190B (en) 2012-06-21 2012-06-21 A kind of method that terminal leak is processed and device

Publications (2)

Publication Number Publication Date
CN102750190A true CN102750190A (en) 2012-10-24
CN102750190B CN102750190B (en) 2016-02-24

Family

ID=47030408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210207941.3A Active CN102750190B (en) 2012-06-21 2012-06-21 A kind of method that terminal leak is processed and device

Country Status (1)

Country Link
CN (1) CN102750190B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217166A1 (en) * 2002-05-17 2003-11-20 Mario Dal Canto System and method for provisioning universal stateless digital and computing services
CN1862496A (en) * 2006-02-08 2006-11-15 珠海金山软件股份有限公司 Energy-saving apparatus capable of optimizing system resource and method thereof
CN2850148Y (en) * 2005-01-28 2006-12-20 朱寿祥 Unidirectional physics isolation type network safety device
CN1968153A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method and apparatus for hot upgrade of network processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217166A1 (en) * 2002-05-17 2003-11-20 Mario Dal Canto System and method for provisioning universal stateless digital and computing services
CN2850148Y (en) * 2005-01-28 2006-12-20 朱寿祥 Unidirectional physics isolation type network safety device
CN1862496A (en) * 2006-02-08 2006-11-15 珠海金山软件股份有限公司 Energy-saving apparatus capable of optimizing system resource and method thereof
CN1968153A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method and apparatus for hot upgrade of network processor

Also Published As

Publication number Publication date
CN102750190B (en) 2016-02-24

Similar Documents

Publication Publication Date Title
CN101673216B (en) Closing application program method and apparatus
CN102253863A (en) Method for closing processes
US9934105B2 (en) Fault tolerance for complex distributed computing operations
CN102866908A (en) Method for cleaning Android background applications and services
CN101271415B (en) Monitoring watchdog implementing method of built-in equipment
CN103679022B (en) Virus scan method and apparatus
CN101937344B (en) Computer and method for quickly starting same
WO2014005328A1 (en) Method and device for allocating resource
CN102984580A (en) Internal storage cleaning method and system
CN102981955A (en) Automatic continuous restarting method based on Linux system
CN101354677A (en) Method for detecting and restoring application program running state and restoring device thereof
CN105138905A (en) Isolation operation method for Linux application program
CN101883003A (en) Mandatory running method of computer operating system
CN103268277A (en) Method and system for outputting log information
CN103516557A (en) Method and system for testing
WO2014166231A1 (en) Method and device for setting application program state
CN102156534A (en) Hardware energy-saving processing method and device
CN103313427A (en) Method and device for starting data network of mobile terminal and mobile terminal
CN103514014A (en) Method for designing boot system of embedded terminal equipment
CN101887386A (en) Method and system for processing failure of redundant array of independent disk controller
CN102314382A (en) Method and module for emergently probing system information
CN105025365A (en) Intelligent television platform offline download method and system
CN102222486B (en) Display control method and display equipment
CN106372502A (en) Application closure limiting method and apparatus, and terminal
CN102750190A (en) Method and device for processing terminal bugs

Legal Events

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

Effective date of registration: 20230625

Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 2 East 403 room, SEG science and technology garden, Futian District, Guangdong, Shenzhen 518000, China

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.