CN103412812A - Method and device for monitoring running status of browser - Google Patents

Method and device for monitoring running status of browser Download PDF

Info

Publication number
CN103412812A
CN103412812A CN2013103738817A CN201310373881A CN103412812A CN 103412812 A CN103412812 A CN 103412812A CN 2013103738817 A CN2013103738817 A CN 2013103738817A CN 201310373881 A CN201310373881 A CN 201310373881A CN 103412812 A CN103412812 A CN 103412812A
Authority
CN
China
Prior art keywords
browser
webpage
time
loaded
mistiming
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
CN2013103738817A
Other languages
Chinese (zh)
Other versions
CN103412812B (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310373881.7A priority Critical patent/CN103412812B/en
Publication of CN103412812A publication Critical patent/CN103412812A/en
Application granted granted Critical
Publication of CN103412812B publication Critical patent/CN103412812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for monitoring the running status of a browser. The method comprises the steps of obtaining loading completed information of a first webpage after the browser is started and a browser helper object (BHO) plug-in registered in a registry in advance is loaded; obtaining start time of process of the current browser and loading completed time of the first webpage, calculating time difference between the start time of the current browser and the loading completed time of the first webpage, and judging that surfing the Internet through the browser cannot be achieved if the time difference exceeds the preset first threshold value. In addition, the invention further discloses a device for monitoring the running status of the browser. The device for monitoring the running status of the browser can prompt users that surfing the Internet through the browser cannot be achieved in real time and recommend proper repair tools to solve the problem to the users.

Description

Browser execution state monitoring method and device
Technical field
The present invention relates to technical field of the computer network, relate in particular to a kind of browser execution state monitoring method and device.
Background technology
In the growing epoch of network, browser becomes the main tool that users carry out network activity.For example, the user can carry out by browser the operations such as news browsing, video-see, file download.But along with the passing of user's surf time, it is more and more slower that browser execution speed may become.Cause the slack-off reason of browser execution speed be likely the software opened of user is more and more, browser is opened simultaneously webpage quantity too much, the loading of low memory, extender etc., this has brought serious obstruction for upper net operation of user.
In prior art, the script of webpage design bad or simultaneously the too much resource caused of process (CPU, internal memory etc.) of operation excessively to take be the major reason that causes browser stuck, slack-off.When in the face of numerous processes or webpage, the user can't comparatively effectively raise speed to browser.
In order to detect whether normal operation of IE browser, mainly by the form that plug-in unit scans, the IE browser to be detected, particularly, simulation starts twice of IE browser, once under the form of loading of plug-in, to start the IE browser, be once under the form of loading of plug-in not, to start the IE browser, the mistiming by twice startup of IE browser judges whether the loading of IE browser is slow.The defect of this technical scheme is, needs the scanning of user's manual triggers could detect, Sampling network running environment automatically, so point out not in time, and, when networking operational environment goes wrong, need the user initiatively to repair.And if the user does not know to have these fix tools, the problem occurred will can not get solving, and in addition, can not repair the very first time of user's accessed web page prompting user.In addition, the result that this technical scheme detects is not very accurate, and the situation that user's true environment can not be opened webpage can not be detected.
Summary of the invention
In view of the above problems, the present invention has been proposed in order to a kind of browser execution state monitoring method and device that overcomes the problems referred to above or address the above problem at least in part is provided.
According to an aspect of the present invention, provide a kind of browser execution state monitoring method, it is included in that browser starts and the browser auxiliary object BHO plug-in unit registered in registration table in advance obtains the message that first webpage has loaded after loading; And obtain the start-up time of current browser process and from described message, obtaining the time that first webpage has loaded, calculate the start-up time of current browser process and the mistiming of the time that first webpage has loaded, if should surpass predetermined first threshold the mistiming, judge by the browser problem of having surfed the Net.
According to one embodiment of the present invention, above-mentioned browser execution state monitoring method of the present invention also comprises: obtain the beginning load time of each webpage loaded and the time loaded after browser startup and the loading of BHO plug-in unit in browser; And calculate the beginning load time of each webpage and the mistiming of time of having loaded, if should surpass the Second Threshold of being scheduled to the mistiming, judge that this webpage opens slowly on browser.
According to another embodiment of the present invention, above-mentioned browser execution state monitoring method of the present invention also comprises: at browser, start and after the BHO plug-in unit loads, while based on webpage, opening, whether receive that network connection error information judges that can webpage normally open on browser on browser.
According to another aspect of the present invention, provide a kind of browser execution state monitoring apparatus.Described browser execution state monitoring apparatus comprises: acquisition module, and it is suitable for starting and the browser auxiliary object BHO plug-in unit registered in registration table in advance obtains the message that first webpage of user has loaded after loading at browser; And monitoring modular, it is suitable for the time loaded from start-up time of obtaining current browser process described message and first webpage, calculate the start-up time of current browser process and the mistiming of the time that first webpage has loaded, if should surpass predetermined first threshold the mistiming, judge by the browser problem of having surfed the Net.
According to one embodiment of the present invention, described acquisition module also obtains the beginning load time of each webpage loaded in browser and the time loaded after browser startup and the loading of BHO plug-in unit; Described monitoring modular calculates the beginning load time of each webpage and the mistiming of time of having loaded, if should surpass the Second Threshold of being scheduled to the mistiming, judges that this webpage opens slowly on browser.
According to another embodiment of the invention, the network connection error information of receiving when described monitoring modular is also opened on browser based on webpage judges that can webpage normally open on browser.
Utilize browser execution state monitoring method of the present invention and device, can the real-time prompting user by the browser problem of having surfed the Net, comprise that the prompting user browser loads slow, webpage and opens slowly or open failure.In addition, can also recommend to take suitable fix tool to solve problem to the user.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, for can clearer understanding technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
The accompanying drawing explanation
By reading hereinafter detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skills.Accompanying drawing is only be used to the purpose of preferred implementation is shown, and do not think limitation of the present invention.And, in whole accompanying drawing, mean identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the browser execution state monitoring method according to an embodiment of the invention; And
Fig. 2 shows browser execution state monitoring apparatus according to another implementation of the invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although in accompanying drawing, shown exemplary embodiment of the present disclosure, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and the scope of the present disclosure intactly can be conveyed to those skilled in the art.
Browser execution state monitoring method of the present invention and device are based on BHO(Browser Helper Object, browser auxiliary object) the technology realization.
BHO be Microsoft release as the industrywide standard of browser to the open interactive interface of third party programmer, by simple code, just can enter " interactive interface " (the INTERACTIVED Interface) in browser field, be the com component of having realized special interface.By this interface, the programmer can write the behavior of Code obtaining browser.The BHO plug-in unit of having developed need to be placed in registration table, and its position of placing in registration table is:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\E?xplorer\Browser?Helper?Objects。
In addition, because BHO is com component, and necessarily realize the IObjectWithSite interface, these assemblies, except in registration table, being registered as COM Server, also must be registered as sub-key by their CLSID under HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVer sion/Explorer/Browser Helper Objects.Microsoft, in the design browser, has reserved space for these assemblies.When browser started, at first browser can look in above-mentioned registry-location the BHO CLSID that sees if there is registration; If have create respectively a BHO example.In the process of browser work, BHO can receive a lot of events, and such as browser is browsed new address, advances or retreated, generates new window, browser exits etc., BHO can realize mutual with browser in the response of these events.
The original purpose of BHO is to make personalized browser for helper person better, and provide more succinct interactive function for program, but the programmer can utilize the interaction characteristic of BHO now, with code, control browser behavior, realize more IE browser personalisation instrument, such as revising, replace browser toolbar, add the program pushbutton of oneself etc.In addition, all right hold-down hook subfunction, the every act and every move of supervision browser.
That write in advance and the BHO that be placed on the relevant position in registration table of browser execution state monitoring method of the present invention and device utilization realizes.Below specifically describe browser execution state monitoring method of the present invention and device.
Fig. 1 shows the process flow diagram according to the browser execution state monitoring method of one embodiment of the present invention.
As shown in Figure 1, at step S110, start and the browser auxiliary object BHO plug-in unit registered in registration table in advance obtains the message that first webpage has loaded after loading at browser.Particularly, when browser started, browser can find the BHO plug-in unit of registering therein in advance and load this BHO plug-in unit in registration table, set up alternately and connected.At this moment, the BHO plug-in unit can obtain first webpage of user has loaded on browser message OnDocumentComplete.In fact, in message OnDocumentComplete, comprise network address URL that browser opens and the character string of browser institute event title, this character string joins in list box to show the event of browser, can obtain by this message the relevant information that webpage has loaded.
Next, at step S120, obtain time that browser starts and from described message, obtaining the time that first webpage has loaded, calculate the start-up time of current browser and the mistiming of the time that first webpage has loaded, if should surpass predetermined first threshold the mistiming, judge by the browser problem of having surfed the Net.Particularly, the time that described browser starts is easy to obtain from the in-process of current browser, and obtains in can be at any time.In addition, from time that first webpage that obtains browser described message OnDocumentComplete has loaded.Thus, can calculate the time of browser startup and the mistiming that first webpage has loaded.Judge whether this mistiming surpassed predefined first threshold, if surpassed described first threshold with regard to judgement by the browser problem of surf the Net, otherwise judge and surf the Net normally by browser.Described predetermined first threshold for example can be set to 2 seconds according to practical experience.
Below illustrate and how to obtain the time that the IE browser starts for the first time.
For example, when the default web page of IE browser is 360 homepage, owing in registration table, having registered in advance the BHO plug-in unit write, so IE browser one starts, will in registration table, finds the BHO plug-in unit, and load this BHO plug-in unit.This BHO plug-in unit can get all behaviors of current browser.When starting, IE browser one will open 360 homepage, at this moment in order to confirm whether these 360 homepages of opening are first webpages that current I E browser is opened, can adopt following method: after the IE browser starts, by BHO, appoint and look for an interim position in registration table, for example a path HKEY_CURRENT_USER in registration table " Software AppDataLow Software 360sd " in do a mark, this mark comprises two, one is SysStartTime, one is IeOpenTimes, wherein SysStartTime records the start-up time of IE browser, IeOpenTimes records the number of times that the IE browser is loaded, these two marks are actually the data for interim operation, only as mark.After the IE browser was opened 360 homepages, BHO can remove to read registration table, was the startup for the first time of this start to judge that this IE starts.If SysStartTime item void value in the path of above-mentioned registration table, think that it is to start for the first time that this IE starts, and just writes current system on the SysStartTime item start-up time; If value and current I E browser that perhaps the SysStartTime item has value still to put down in writing in the path of above-mentioned registration table are inconsistent start-up time, also think that it is to start for the first time that this IE browser starts, and write down the start-up time of current I E browser.When IE starts for the second time, BHO also can go to look into the value of the SysStartTime in the path of above-mentioned registration table, the SysStartTime item has had value if find and the IE browser put down in writing is consistent start-up time with current I E browser start-up time, prove that it has not been to start for the first time that this IE starts, be to start for the second time or start for the third time.And can know that by the numerical value that IeOpenTimes puts down in writing it is which time starts that IE starts.By said method, just can judge whether the IE browser is to have started for the first time.
After the time that acquisition IE starts for the first time, BHO is again from obtaining 360 homepages in time that IE has loaded OnDocumentComplete message, calculate the mistiming of the two, surpass predefined threshold value in the time of 2 seconds when the described mistiming, judgement has problem by the online of IE browser.
Alternatively, above-mentioned two mark SysStartTime and IeOpenTimes also can write in a local file.But, preferably described mark is write in registration table, because fast from the speed that file reads mark from the velocity ratio that reads mark registration table, also has the IO(input and output from file, reading mark) operation.
Above-mentioned example is to using the explanation that 360 homepage carries out as the default web page of IE browser, alternatively, blank homepage or other webpage homepage by default also can be set.
Whether above-mentioned browser execution state monitoring method of the present invention can also be monitored webpage opening on browser slow.Particularly,
At step S130, after browser startup and the loading of BHO plug-in unit, BHO can obtain the beginning load time of each webpage loaded in browser and the time loaded.Due to BHO, can obtain the information of any operation that current browser carries out, so be easy to, obtain the beginning load time of each webpage and the time loaded.
Next, at step S140, calculate the beginning load time of each webpage and the mistiming of time of having loaded, if should surpass the Second Threshold of being scheduled to the mistiming, judge that this webpage opens slowly on browser.Wherein said Second Threshold can be determined according to practical experience, for example can be set to 2 seconds.Usually when webpage is opened on browser time was long, browser or webpage may exist problem.
In addition, can above-mentioned browser execution state monitoring method of the present invention can also monitor on browser and normally open, particularly, at step S150: at browser, start and after the BHO plug-in unit loads, while based on webpage, opening, whether receive that network connection error information judges that can webpage normally open on browser on browser.For example, for the webpage of opening on the IE browser, when webpage, open when normal, BHO can not receive DISPID_NAVIGATEERROR message, BHO can receive NAVIGATEERROR message when webpage is opened unsuccessfully, can judge that by this message webpage can not normally open on browser.
In addition, above-mentioned browser execution state monitoring method of the present invention can also comprise step S160: on browser interface or by antivirus software by the problem clew that monitors to the user.Like this, can, in the problem of the very first time of user's accessed web page prompting user network running environment appearance, be convenient to the current state that the user knows browser, thereby take adequate measures to go to solve the problem monitored.For example, if the problem that prompting exists on Webpage, the problem that can monitor with a yellow bar prompting on the top of Webpage.If with the problem that the antivirus software prompting exists, in the browser window lower right corner, there will be one to play the problem that window monitors with prompting.
After step S160, above-mentioned browser execution state monitoring method of the present invention can also comprise step S170: the prompting user calls the problem that corresponding fix tool reparation monitors.For the user, although sometimes know the problem that network environment occurs, but but likely do not know to take which type of fix tool to go to solve corresponding problem, although or know and take which type of fix tool, also will take time searching, download etc.Therefore, solve fast, in time corresponding problem for the ease of the user, can recommend some to solve the fix tool of corresponding problem to the user.The fix tool of recommending can be for a plurality of fix tools of different problems or a fix tool that solves a plurality of problems.Problem that for example can not enter net by browser may exist many reasons, in order to investigate all possible causes and to repair, can adopt 360 suspension first aid boxs.360 suspension first aid boxs are a kind of fix tools that can solve various problems, it by multiple network abnormality detection program (for example, can comprise network hardware configuration detection program, network connects the configuration detection program, DHCP service detection program, DNS service detection program, the HOSTS trace routine, browser configuration detection program, check the trace routine that can computer surf the Net, the first repair procedure such as LSP(Layered Service Provider, hierarchical service provides agreement) repair procedure, with the second repair procedure such as powerful repair procedure) effectively integrate in a Network anomaly detection kit, when the network abnormal, according to setting the corresponding Network anomaly detection program of rule invocation, carry out Network anomaly detection, and then correspondingly process according to testing result, can realize the complete detection of abnormal network cause, diagnose out in time fast the reason of Network Abnormal, and immediately repair, recover the problem that network connects, greatly improve Network anomaly detection and remediation efficiency.
Wherein, network hardware configuration detection program (be the hardware that connect to use of Sampling network whether normal program) is be used to checking network join dependency hardware, if whether network interface card is normal, whether netting twine inserts etc.Network hardware configuration detection program can be enumerated the network interface card on user computer, by an algorithm logic, find the network interface card of the current use of user, if do not find, may be just this network interface card disabled or network interface card drive and to go wrong, can enable the reparation of network interface card or the reparation that network interface card drives; If found, can further to netting twine insertion situation, detect, the prompting user checks whether netting twine is plugged.
Whether whether network connects configuration detection program (being whether correct program of Sampling network attribute configuration) correct be used to checking the network attribute configuration, as correct as IP address, subnet mask, gateway configuration etc.During particular exam, network connects configuration detection program (1) and detect the IP address that obtains whether legal (as 0 or 169.254) under the DHCP mode; (2) whether detect IP and gateway at the same network segment; (3) detect whether can arrive gateway, SendARP(sends the local area network ARP packet, whether unimpededly with checking, arrives gateway).If the problem of detecting, for the user of dynamic obtaining IP address, can be used the Ipconfig release/renew order of Windows system, again obtain the IP address; For the user of manual configuration IP, check whether the setting of IP address, subnet mask and gateway is correct.
Whether normally DHCP service detection program (namely detecting DHCP service program) serves be used to checking DHCP whether work (the DHCP service is the service that dynamically obtains the IP address).If DHCP detected, do not open, but static IP arrange not to or gateway obstructed, think the mistake of DHCP forbidding; If detect, opened DHCP, checked first that whether the EnableDHCP key assignments is 1, then checks DCHP service operation state; In addition, whether the registry entry that also detects DHCP is correct, as HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services under Dhcp the key assignments of DependOnService under the XP system, whether be Tcpip, Adf, NetBT, whether system is NSI after XP, Tdx, Afd.After detecting problem, being that dynamic IP is set to the errors repair of DHCP forbidding, is to start service to the errors repair of DHCP service, is to rewrite this registration table to the errors repair of DHCP registration table.
Whether normally DNS service detection program (namely detecting DNS service program) serves be used to checking DNS whether work (the DNS service is the domain name mapping service), adopt at random from several network address commonly used, choosing the mode whether an inspection can carry out domain name mapping, to the abnormal reparation of DNS service, can first remove the Cache of DNS, carry out again the domain name mapping inspection, if or can not resolve, check HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services Tcpip Paramet ers Interfaces Adapter Name, whether EnableDHCP is 1, if 1 is obtained DNS again, if not 1 can be set to static dns (114.114.114.114, 8.8.8.8).
Whether normally HOSTS trace routine (namely detecting hosted file configuration program) be used to checking the hosted file configuration, if the hosted file arrangement abnormalities can cause indivedual webpages to open.The HOSTS trace routine checks whether hosted file has the content of specific character string content such as the beginning of non-" # ", if have, repair, back up original hosted file, generate new hosted file, in new hosted file, the content that the specific character string content is as initial as non-" # " is added the " # " annotation.
Whether normally whether browser configuration detection program (namely detecting browser configuration program) as normal as the configuration of IE browser be used to checking browser, as, whether use whether acting server, auto-configuration script, Flash plug-in unit are installed etc.The IE browser of take is example, during inspection, checks whether IE browser " instrument "-" internet option "-" connection "-" LAN (Local Area Network) setting " is provided with acting server, and this is to cause could not get on to the Net because some softwares of climbing over the walls can arrange the agency.For this problem, can adopt the mode of removing the agency to repair.For the problem that auto-configuration script causes, can cancel the use auto-configuration script.The problem caused is not installed for the Flash plug-in unit, can solves by the Flash plug-in unit is installed.
Check that whether normally whether normally trace routine (namely detecting the browser program of accessed web page) that can computer surf the Net for checking accessed web page, webpage of its download of URL by a setting judges whether the energy accesses network.When this program detects problem, the normal accessed web page of prompting user, the user can carry out subsequent treatment according to this prompting, as call other detection normally the accessed web page reason program detection concrete reason and repair etc.
LSP repair procedure (being equivalent to the first repair procedure) for detection of and repair the Network Abnormal that the LSP protocol anomaly causes.LSP is the interface of the agreements such as TCP/IP, and browser, chat tool etc. all will obtain corresponding information by this interface.When the LSP appearance was abnormal, this interface called just can not work, and there will be and for example can only go up the situation that QQ can not open webpage.Winsock, as the web socket instrument of the Windows of application program, can be expanded by LSP mechanism, and Winsock LSP can be used for practical purposes very widely, comprises that the Internet head of a family controls (parental control) and web content screening.In the certain operations system, delete incorrect (also referred to as " buggy ") LSP and may cause the Winsock catalogue in registration table to be damaged, the loss that causes potentially all-network to connect.Some softwares can be kidnapped by LSP, destroy the Winsock chain, and the registry entry that LSP is corresponding is:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\WinSock2\Para?meters\Protocol_Catalog9\Catalog_Entries,
If in the front of this registry entry, insert illegal registration table, kidnap, if unloaded this software so the Winsock chain just may break, thereby cause, could not get on to the Net.For this situation, need to carry out the LSP reparation, if rewritten registration table.
Powerful repair procedure (being equivalent to the second repair procedure) is be used to recovering Winsock to original state, and corresponding registry entry is:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Winsock;
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\WinSock2
Can repair by replacement TCP/IP and Winsock, if used netsh interface ip reset order and netshwinsock reset order.
In addition, when utilizing browser execution state monitoring method of the present invention to monitor the IE browser problem is arranged, for example, can under safe mode, attempt repairing or reinstall IE with " IE reparation ".When finding that IE starts when slow, can to the user arrange blank homepage or ratio faster homepage by default homepage solve this problem.
In addition, for webpage, open problem slowly, can be optimized by the optimization accelerator of antivirus software, described optimization accelerator is according to the default principle of optimality, by the program display that moving in system in different classification, the user can decide which program is carried out to optimization process according to the characteristics of difference classification, can effectively process for the various situations (the stuck and background program such as system took various flow etc.) of system thus.Utilize this optimization accelerator, the program that not only can turn off some unnecessary processes, service, backstage, can also discharge more internal memory, can close the more process of network speed that accounts for, to in-problem program, the program that needn't move, account for the program that internal memory is many and process, and opens problem slowly thereby solve the webpage caused therefrom.
For example in 360 security guards, optimize the acceleration ball in accelerating module, can check that online is slow and load slow reason, and solve for described reason that IE starts slowly and webpage is opened problem slowly.For example, described acceleration ball can some services solve the IE startup slowly and webpage is opened problem slowly by closing, at this moment, (for example can close the too much service of the system resources such as some committed memories, windows update upgrade service), when the characteristics of such service were to move, committed memory was very many, and closed rear computer to the user and also can not produce harmful effect.Described acceleration ball can also be removed dll file useless in internal memory, for example rubbish dll file residual in system or other temporary file is removed, to improve the performance of system.Secondly, for desktop, window and menu speed aspect, can carry out following optimization process: demonstration and the reaction velocity of each order in (1) quickening system: reduce the time delay setting while clicking menu, can allow the menu opening speed faster; (2) optimized user interface assembly: when interface is seemingly-dead, automatically refresh the enhancing system stability when blocking; (3) optimizer process: allow the beginning menu have independently process priority and process, can prevent seemingly-dead.By above-mentioned processing, just can realize the purpose of optimization system resource, thereby can reduce resources occupation rate, shorten the invalid stand-by period, improve user experience.
In addition, after executing above-mentioned processing, can also be further to user's display reminding content, this suggestion content can be message or the window ejected, and can be also the prompting printed words that are presented on the assigned address of program listing.This suggestion content is mainly used in showing by optimizing the concrete quantity of all kinds of resources such as internal memory, CPU, disk space and/or network throughput of saving, so that the user understands the effect of optimization to the user.
When the situation that webpage can not be opened occurring, this may be because IE has problem, may be also that webpage has problem, at this moment can point out the user to call the patient computer functional module in 360 security guards, to " any webpage is not all opened; but the chat softwares such as QQ, MSN can normally be used " problem solve functional module, carry out webpage and open abnormal cause and determine, and then process for reason.
In the specific implementation, also can realize by the optimizer (for example, the browser doctor) by the browser side, for example, can in the interface of the optimizer of browser, click " key accelerates " key and trigger the optimization instruction.When the user clicks " key accelerates " key, optimizer will meet optimizes the default worker thread that the process composition task list for clearance arranged sends to optimizer, after default worker thread was received task list, cleaning met the process arranged of optimizing according to task list.
Wherein, the above-mentioned optimization process related to comprises following at least one: the closing of the closing of the closing of the closing of webpage label subprocess or thread, browser extension process, browser plug-in process, non-browser process/service, internal memory discharges, clear up system rubbish.
Enumerate solution that part can recommend to the user by browser surf the Net method and the fix tool of the problem that exists for above, just be not limited to these, all can be prompted and recommend the user as long as can solve by the surf the Net instrument of problem of existence of browser.
Fig. 2 shows the browser execution state monitoring apparatus 200 according to one embodiment of the present invention.As shown in Figure 2, browser execution state monitoring apparatus 200 of the present invention comprises acquisition module 210 and monitoring modular 220.
Wherein, time of having loaded with first webpage in browser starts and the browser auxiliary object BHO plug-in unit registered in registration table in advance obtains current browser after loading start-up time of acquisition module 210.Particularly, when browser starts, browser can find in advance the BHO plug-in unit of registration therein and load this BHO plug-in unit and set up mutual connection in registration table, at this moment the BHO plug-in unit can obtain first webpage has loaded on browser message OnDocumentComplete, network address URL that browser opens and the character string of browser institute event title in this message OnDocumentComplete, have been comprised, this character string joins in list box to show the event of browser, by this message, can obtain webpage has loaded on browser message, therefore from message OnDocumentComplete, obtaining the time that first webpage has loaded.The time that described browser starts can obtain from the in-process of browser, and obtains in can be at any time, concrete acquisition methods with reference to front about the method described in step S120 in the browser execution state monitoring method.
The time that the start-up time of the current browser that monitoring modular 220 obtains according to acquisition module 210 and first webpage have loaded, the mistiming of calculating the two, if should surpass the first threshold of being scheduled to the mistiming, judge by the browser problem of having surfed the Net.Described predetermined first threshold is such as being set to 2 seconds according to practical experience etc.
In addition, described acquisition module 210, after browser startup and the loading of BHO plug-in unit, can also obtain the beginning load time of each webpage loaded in browser and the time loaded by BHO.Described monitoring modular 220 calculates the beginning load time of each webpage and the mistiming of time of having loaded, if should surpass the Second Threshold of being scheduled to the mistiming, judges that this webpage opens slowly on browser.Wherein, by the BHO plug-in unit, can easily obtain the beginning load time of each webpage loaded and the time loaded in browser.Described Second Threshold can determine according to practical experience, such as being set to 2 seconds etc.Usually when webpage is opened on browser time was long, browser or webpage may exist problem.
The network connection error information of receiving when in addition, described monitoring modular 220 can also be opened based on webpage on browser judges that can webpage normally open on browser.When webpage is opened on browser, receive network connection error information, described monitoring modular 220 these webpages of judgement can not normally be opened on browser, otherwise judge that this webpage can normally open on browser.For example, for the webpage of opening on the IE browser, when webpage, open when normal, BHO can not receive DISPID_NAVIGATEERROR message, BHO can receive NAVIGATEERROR message when webpage is opened unsuccessfully, can judge that by this message webpage can not normally open on browser.
In addition, browser execution state monitoring apparatus 200 of the present invention can also comprise reminding module 230, and described reminding module 230 is suitable for pointing out the user problem that described monitoring modular monitors on browser interface or by antivirus software.Like this, can, in the problem of the very first time of user's accessed web page prompting user network running environment appearance, be convenient to the current state that the user knows browser.
In addition, described reminding module 230 can also point out the user to call the problem that corresponding fix tool reparation monitors.This is convenient to the user and solves fast, in time corresponding problem.
Although described in conjunction with the specific embodiments the present invention, be not to be defined in particular form described herein.But scope of the present invention is only by accompanying claim restriction.In the claims, term " comprises " not getting rid of and has other parts or step.In addition, although each feature can be included in different claims, these features can be advantageously combined, and the content comprised in different claims does not mean that the combination of feature is infeasible and/or disadvantageous.In addition, single implication is not got rid of a plurality of.Therefore, the implication of " ", " first ", " second " etc. is not got rid of a plurality of.In addition, the Reference numeral in claim should not be interpreted as the restriction to scope.
The above is only the specific embodiment of the present invention; it should be noted that; for the person of ordinary skill of the art; under the prerequisite that does not break away from spirit of the present invention; can make some improvement, modification and distortion, these improve, revise and distortion all should be considered as dropping in the application's protection domain.

Claims (10)

1. browser execution state monitoring method comprises:
At browser, start and the browser auxiliary object BHO plug-in unit registered in registration table in advance obtains the message that first webpage has loaded after loading; And
Obtain the start-up time of current browser process and from described message, obtaining the time that first webpage has loaded, calculate the time of current browser startup and the mistiming of the time that first webpage has loaded, if should surpass predetermined first threshold the mistiming, judge by the browser problem of having surfed the Net.
2. method according to claim 1 also comprises:
After browser startup and the loading of BHO plug-in unit, obtain the beginning load time of each webpage loaded and the time loaded in browser; And
Calculate the beginning load time of each webpage and the mistiming of time of having loaded, if should surpass the Second Threshold of being scheduled to the mistiming, judge that this webpage opens slowly on browser.
3. method according to claim 1 and 2 also comprises:
At browser, start and after the BHO plug-in unit loads, while based on webpage, opening, whether receive that network connection error information judges that can webpage normally open on browser on browser.
4. according to the described method of any one in claim 1-3, also comprise:
On browser interface or by antivirus software by the problem clew that monitors to the user.
5. method according to claim 4 also comprises:
The prompting user calls the problem that corresponding fix tool reparation monitors.
6. method according to claim 5, wherein,
Described fix tool detects the reason of the problem generation monitored; And repair or adopt corresponding reparation software to repair according to detected reason prompting user is manual.
7. browser execution state monitoring apparatus, it comprises:
Acquisition module, it is suitable for starting and the browser auxiliary object BHO plug-in unit registered in registration table in advance obtains the message that first webpage has loaded after loading at browser; And
Monitoring modular, it is suitable for the time loaded from start-up time of obtaining current browser process described message and first webpage, calculate the start-up time of current browser process and the mistiming of the time that first webpage has loaded, if should surpass predetermined first threshold the mistiming, judge by the browser problem of having surfed the Net.
8. device according to claim 7, wherein,
Described acquisition module also obtains the beginning load time of each webpage loaded in browser and the time loaded after browser startup and the loading of BHO plug-in unit;
Described monitoring modular calculates the beginning load time of each webpage and the mistiming of time of having loaded, if should surpass the Second Threshold of being scheduled to the mistiming, judges that this webpage opens slowly on browser.
9. according to the described device of claim 7 or 8, wherein,
The network connection error information of receiving when described monitoring modular is also opened on browser based on webpage judges that can webpage normally open on browser.
10. according to the described device of any one in claim 7-9, also comprise:
Reminding module, it is suitable for pointing out the user problem that described monitoring modular monitors on browser interface or by antivirus software.
CN201310373881.7A 2013-08-23 2013-08-23 Browser execution state monitoring method and device Active CN103412812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310373881.7A CN103412812B (en) 2013-08-23 2013-08-23 Browser execution state monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310373881.7A CN103412812B (en) 2013-08-23 2013-08-23 Browser execution state monitoring method and device

Publications (2)

Publication Number Publication Date
CN103412812A true CN103412812A (en) 2013-11-27
CN103412812B CN103412812B (en) 2016-04-13

Family

ID=49605825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310373881.7A Active CN103412812B (en) 2013-08-23 2013-08-23 Browser execution state monitoring method and device

Country Status (1)

Country Link
CN (1) CN103412812B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973682A (en) * 2014-04-30 2014-08-06 北京奇虎科技有限公司 Method and device for having access to webpage
CN104200157A (en) * 2014-09-02 2014-12-10 广州金山网络科技有限公司 Webpage exception handling method and equipment
CN104268198A (en) * 2014-09-22 2015-01-07 北京金山安全软件有限公司 Browser plug-in control method and device and terminal
CN104361076A (en) * 2014-11-12 2015-02-18 腾讯科技(成都)有限公司 Method and device for processing abnormality of browser
CN104850595A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Method and device for optimizing webpage opening time
CN105389258A (en) * 2015-12-10 2016-03-09 腾讯科技(深圳)有限公司 Program detection method and apparatus
CN107749919A (en) * 2017-09-22 2018-03-02 努比亚技术有限公司 A kind of application program page display method and equipment
CN108039986A (en) * 2017-12-12 2018-05-15 北京星河星云信息技术有限公司 Monitor the method, apparatus and storage medium of web application performances
CN110879757A (en) * 2018-09-05 2020-03-13 广州弘度信息科技有限公司 Restarting method and device for abnormal operation of client and computer equipment
CN111095221A (en) * 2017-10-09 2020-05-01 华为技术有限公司 Method and terminal for processing refresh display exception
CN111783010A (en) * 2020-01-19 2020-10-16 北京无限光场科技有限公司 Webpage blank page monitoring method, device, terminal and storage medium
CN112650959A (en) * 2019-10-11 2021-04-13 腾讯科技(深圳)有限公司 Page loading duration statistical method, device, equipment and storage medium
CN112835764A (en) * 2021-02-01 2021-05-25 长沙市到家悠享网络科技有限公司 Front-end monitoring method, device, equipment and medium
CN113766146A (en) * 2021-09-07 2021-12-07 北京百度网讯科技有限公司 Audio and video processing method and device, electronic equipment, storage medium and program product
CN116672721A (en) * 2023-07-31 2023-09-01 欢喜时代(深圳)科技有限公司 Game popularization webpage real-time management method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999004342A1 (en) * 1997-07-21 1999-01-28 Webtv Networks, Inc. Automatic regeneration of user data from a network
CN101159000A (en) * 2007-10-17 2008-04-09 深圳市迅雷网络技术有限公司 Web page safety information detecting system and method
CN102479151A (en) * 2010-11-26 2012-05-30 腾讯科技(深圳)有限公司 Testing method and device of webpage access speed
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999004342A1 (en) * 1997-07-21 1999-01-28 Webtv Networks, Inc. Automatic regeneration of user data from a network
CN101159000A (en) * 2007-10-17 2008-04-09 深圳市迅雷网络技术有限公司 Web page safety information detecting system and method
CN102479151A (en) * 2010-11-26 2012-05-30 腾讯科技(深圳)有限公司 Testing method and device of webpage access speed
CN102722559A (en) * 2012-05-31 2012-10-10 奇智软件(北京)有限公司 Method, device and system for controlling processes of abnormal pages

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973682A (en) * 2014-04-30 2014-08-06 北京奇虎科技有限公司 Method and device for having access to webpage
CN104200157A (en) * 2014-09-02 2014-12-10 广州金山网络科技有限公司 Webpage exception handling method and equipment
CN104200157B (en) * 2014-09-02 2018-01-23 广州金山网络科技有限公司 A kind of webpage abnormality eliminating method and equipment
CN104268198B (en) * 2014-09-22 2018-04-17 北京金山安全软件有限公司 Browser plug-in control method and device and terminal
CN104268198A (en) * 2014-09-22 2015-01-07 北京金山安全软件有限公司 Browser plug-in control method and device and terminal
CN104361076A (en) * 2014-11-12 2015-02-18 腾讯科技(成都)有限公司 Method and device for processing abnormality of browser
CN104361076B (en) * 2014-11-12 2018-02-09 腾讯科技(成都)有限公司 The abnormality eliminating method and device of browser
CN104850595A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Method and device for optimizing webpage opening time
CN104850595B (en) * 2015-04-27 2018-07-27 小米科技有限责任公司 Optimize the method and apparatus of webpage opening time
WO2017096734A1 (en) * 2015-12-10 2017-06-15 腾讯科技(深圳)有限公司 Program detection method and device
CN105389258A (en) * 2015-12-10 2016-03-09 腾讯科技(深圳)有限公司 Program detection method and apparatus
CN105389258B (en) * 2015-12-10 2020-08-14 腾讯科技(深圳)有限公司 Program detection method and device
CN107749919A (en) * 2017-09-22 2018-03-02 努比亚技术有限公司 A kind of application program page display method and equipment
CN107749919B (en) * 2017-09-22 2021-05-25 努比亚技术有限公司 Application program page display method and device and computer readable storage medium
CN111095221A (en) * 2017-10-09 2020-05-01 华为技术有限公司 Method and terminal for processing refresh display exception
US11151017B2 (en) 2017-10-09 2021-10-19 Huawei Technologies Co., Ltd. Method for processing refresh and display exceptions, and terminal
EP3663925A4 (en) * 2017-10-09 2020-09-23 Huawei Technologies Co., Ltd. Method for processing refreshing display abnormality, and terminal
CN111095221B (en) * 2017-10-09 2023-11-03 华为技术有限公司 Method and terminal for refreshing display exception handling
CN108039986A (en) * 2017-12-12 2018-05-15 北京星河星云信息技术有限公司 Monitor the method, apparatus and storage medium of web application performances
CN110879757B (en) * 2018-09-05 2024-02-27 广州弘度信息科技有限公司 Restarting method and device for abnormal operation of client and computer equipment
CN110879757A (en) * 2018-09-05 2020-03-13 广州弘度信息科技有限公司 Restarting method and device for abnormal operation of client and computer equipment
CN112650959A (en) * 2019-10-11 2021-04-13 腾讯科技(深圳)有限公司 Page loading duration statistical method, device, equipment and storage medium
CN111783010B (en) * 2020-01-19 2023-09-19 北京有竹居网络技术有限公司 Webpage blank page monitoring method, device, terminal and storage medium
CN111783010A (en) * 2020-01-19 2020-10-16 北京无限光场科技有限公司 Webpage blank page monitoring method, device, terminal and storage medium
CN112835764A (en) * 2021-02-01 2021-05-25 长沙市到家悠享网络科技有限公司 Front-end monitoring method, device, equipment and medium
CN113766146A (en) * 2021-09-07 2021-12-07 北京百度网讯科技有限公司 Audio and video processing method and device, electronic equipment, storage medium and program product
CN113766146B (en) * 2021-09-07 2022-09-16 北京百度网讯科技有限公司 Audio and video processing method and device, electronic equipment and storage medium
US11863842B2 (en) 2021-09-07 2024-01-02 Beijing Baidu Netcom Science Technology Co., Ltd. Method and apparatus for processing audio and video, electronic device and storage medium
CN116672721A (en) * 2023-07-31 2023-09-01 欢喜时代(深圳)科技有限公司 Game popularization webpage real-time management method and system
CN116672721B (en) * 2023-07-31 2023-10-13 欢喜时代(深圳)科技有限公司 Game popularization webpage real-time management method and system

Also Published As

Publication number Publication date
CN103412812B (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN103412812B (en) Browser execution state monitoring method and device
CN103001801B (en) Network restoration method and apparatus
Felderer et al. Model‐based security testing: a taxonomy and systematic classification
CN103023699B (en) A kind of network restoration method and system
EP3036633B1 (en) Cloud deployment infrastructure validation engine
US7962798B2 (en) Methods, systems and media for software self-healing
CN103152218A (en) Method and device for inspecting and restoring computer network state
Han et al. Modeling and verification of adaptive navigation in web applications
CN106453509B (en) Processing method that browser is closed extremely, system, browser and server
EP2901346A1 (en) Application security testing
Schneider et al. Online model-based behavioral fuzzing
US20060168568A1 (en) Method, system and computer program product for testing computer programs
CN105447383B (en) Browser execution environment detection method, client, server and system
JP6282217B2 (en) Anti-malware system and anti-malware method
CN108234480A (en) Intrusion detection method and device
CN105100065A (en) Cloud-based webshell attack detection method, cloud-based webshell attack detection device and gateway
Hassine et al. A framework for the recovery and visualization of system availability scenarios from execution traces
CN111737114A (en) Login function testing method and device
KR100614931B1 (en) Vulnerability analysis apparatus and method of web application
Cisco Release Notes for VPNSC 2.0
Cisco Release Notes for CiscoWorks for Windows 6.1
Cisco Release Notes for Cisco Internetwork Performance Monitor, Release 2.3
Cisco Release Notes for Voice Health Monitor 1.0 on Windows 2000
Cisco CiscoWorks for Windows Release Notes
Cisco Release Notes for the Catalyst 2950 Cisco IOS Release 12.0(5.2)WC(1)

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

Effective date of registration: 20220707

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right