TWI585687B - The method, device, and system of the plug - Google Patents

The method, device, and system of the plug Download PDF

Info

Publication number
TWI585687B
TWI585687B TW098119738A TW98119738A TWI585687B TW I585687 B TWI585687 B TW I585687B TW 098119738 A TW098119738 A TW 098119738A TW 98119738 A TW98119738 A TW 98119738A TW I585687 B TWI585687 B TW I585687B
Authority
TW
Taiwan
Prior art keywords
plug
plugin
level
running
program
Prior art date
Application number
TW098119738A
Other languages
Chinese (zh)
Other versions
TW201044273A (en
Inventor
li-ming Zhang
Po Wen
yong-wei Kong
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to TW098119738A priority Critical patent/TWI585687B/en
Publication of TW201044273A publication Critical patent/TW201044273A/en
Application granted granted Critical
Publication of TWI585687B publication Critical patent/TWI585687B/en

Links

Landscapes

  • Stored Programmes (AREA)

Description

外掛程式運行的方法、裝置及系統Method, device and system for running plug-in program

本發明係有關電腦領域,尤其有關一種外掛程式運行的方法、裝置及系統。The invention relates to the field of computers, and in particular to a method, device and system for operating a plug-in program.

隨著網路技術的發展,一些網路工具已經被越來越廣泛地使用了,例如:即時通訊工具已逐漸成為用戶生活中不可或缺的網路工具。同時,隨著這些網路工作的普遍使用,用戶也對它們產生了更多的需求。在這種背景下,往往這些網路工具的開發商獨自開發的軟體已經不能滿足用戶的需求了,亦即,這些網路工具的核心業務程式提供的服務已經不能滿足客戶的需求了。因此,透過制定規範,允許符合規範的程式模組,亦即外掛程式,接入對應的網路工具的軟體中,從而,外掛程式和核心業務程式共同為用戶提供更多的服務。這已經成為了一種不可阻擋的潮流。With the development of network technology, some network tools have been used more and more widely. For example, instant messaging tools have gradually become an indispensable network tool in user life. At the same time, with the widespread use of these network jobs, users have also created more demand for them. In this context, the software developed by the developers of these network tools is often unable to meet the needs of users, that is, the services provided by the core business programs of these network tools can no longer meet the needs of customers. Therefore, by formulating specifications, the program modules that conform to the specifications, that is, the plug-ins, are allowed to access the software of the corresponding network tools, so that the plug-in program and the core business program together provide more services for the users. This has become an unstoppable trend.

目前,外掛程式的運行模式有以下幾種方法:Currently, there are several ways to run the plugin:

1、外掛程式和核心業務程式運行於同一個進程中,這樣,外掛程式的支持體系簡單,外掛程式和核心業務程式交互效率高,但是因為在一個進程內,一旦外掛程式出現問題,會直接導致核心業務程式出現異常或者崩潰,並且由於核心業務程式內的模組眾多,較難具體定位是哪個模組或者外掛程式出現了問題;1. The plug-in program and the core business program run in the same process. Thus, the support system of the plug-in program is simple, and the plug-in program and the core business program have high interaction efficiency, but because in a process, once the plug-in has a problem, it will directly lead to The core business program is abnormal or crashes, and because of the large number of modules in the core business program, it is difficult to specifically locate which module or plug-in has a problem;

2、外掛程式在核心業務程式運行進程之外運行,並且每個外掛程式一個進程,這樣,能夠防止因外掛程式而導致核心業務程式被影響,但是當外掛程式數量較多的時候,將大量佔用用戶端的系統資源,降低用戶體驗;2. The plug-in program runs outside the running process of the core business program, and each plug-in program has a process. This prevents the core business program from being affected by the plug-in program, but when the number of plug-ins is large, it will be occupied a lot. System resources of the client to reduce the user experience;

3、外掛程式在核心業務程式運行進程之外運行,並且全部外掛程式運行於一個特定進程中,這樣,能夠節省用戶端的系統資源,但是當某個外掛程式出現異常,有可能導致所有的外掛程式不可用或者異常,同時也不利於具體定位是哪個外掛程式出現了問題。3. The plugin runs outside the running process of the core business program, and all the plugins run in a specific process, thus saving the system resources of the client, but when an external program is abnormal, it may cause all the plugins. Not available or abnormal, but also not conducive to the specific positioning of which plug-in problem.

由此可見,現有的外掛程式運行方式對外掛程式穩定性要求比較高,或者佔用的用戶端資源比較多。但是,隨著外掛程式開發者的增多,其技術水準良莠不齊,外掛程式的穩定性也很難保證,通常都不如核心業務程式,外掛程式會經常崩潰或者出現故障,這樣,採用上述方法1或3,會因為個別外掛程式運行不穩定,從而導致核心業務程式或者所有外掛程式運行不正常。同時用戶端的資源都是有限的,採用上述方法2會過多地佔用用戶端的資源,從而也會導致用戶端的運行速度緩慢,甚至會導致用戶端系統崩潰。It can be seen that the existing plug-in running mode has higher stability requirements for plug-ins, or more user resources are occupied. However, with the increase of plug-in developers, the technical level is not good, and the stability of the plug-in is difficult to guarantee. Usually it is not like the core business program. The plug-in will often crash or malfunction, so use the above method 1 or 3. , because the individual plug-ins run unstable, resulting in the core business program or all plug-ins running abnormally. At the same time, the resources of the client are limited. The above method 2 will occupy the resources of the client too much, which may cause the client to run slowly, and may even cause the client system to crash.

有鑒於此,本發明實施例提供一種外掛程式運行的方法,用以解決現有技術中外掛程式運行方式帶來的系統運行不穩定的問題。In view of this, the embodiment of the present invention provides a method for operating a plug-in program to solve the problem of unstable system operation caused by the operation mode of the plug-in in the prior art.

本發明實施例提供的一種外掛程式運行的方法,包括:獲取待運行外掛程式的穩定級別;根據保存的穩定級別與外掛程式運行模式的對應關係,以確定獲取的穩定級別對應的外掛程式運行模式;根據確定的外掛程式運行模式來運行所述待運行外掛程式。A method for operating a plug-in program according to an embodiment of the present invention includes: obtaining a stability level of a plug-in program to be run; determining a plug-in running mode corresponding to the obtained stable level according to a correspondence between the saved stable level and the plug-in running mode. The running plugin is run according to the determined plugin running mode.

本發明實施例提供的一種外掛程式運行的用戶端,包括:第一獲取單元,用以獲取待運行外掛程式的穩定級別;儲存單元,用以保存穩定級別與運行模式的對應關係;第一確定單元,用以根據儲存單元保存的穩定級別與運行模式的對應關係,確定獲取的穩定級別對應的外掛程式運行模式;運行單元,用以根據確定的外掛程式運行模式來運行所述待運行外掛程式。The user terminal of the plug-in running according to the embodiment of the present invention includes: a first acquiring unit, configured to obtain a stable level of the plug-in program to be run; and a storage unit, configured to save a correspondence between the stable level and the running mode; a unit, configured to determine, according to a correspondence between a stable level and a running mode saved by the storage unit, a plug-in running mode corresponding to the obtained stable level; and an operating unit configured to run the to-be-running plug-in according to the determined plug-in running mode .

本發明實施例提供的一種外掛程式運行的系統,包括:用戶端,用以從伺服器保存的外掛程式的穩定級別中,獲取待運行外掛程式的穩定級別,根據保存的穩定級別與運行模式的對應關係,以確定獲取的穩定級別對應的外掛程式運行模式,根據確定的外掛程式運行模式來運行所述待運行外掛程式;伺服器,用以保存外掛程式的穩定級別。A system for operating a plug-in program according to an embodiment of the present invention includes: a user end, configured to obtain a stable level of a plug-in to be run from a stable level of a plug-in saved by a server, according to a saved stable level and an operating mode. Corresponding relationship, determining a plug-in running mode corresponding to the obtained stable level, running the to-be-operated plug-in according to the determined plug-in running mode; and the server is configured to save the stable level of the plug-in.

本發明實施例中,獲取待運行外掛程式的穩定級別,根據保存的穩定級別與運行模式的對應關係,以確定獲取的穩定級別對應的外掛程式運行模式,根據確定的外掛程式運行模式來運行所述待運行外掛程式,這樣,根據外掛程式的不同的穩定級別,選擇不同的外掛程式運行模式,從而可以提高系統運行的穩定性,也可以有效控制外掛程式對資源的佔用。In the embodiment of the present invention, the stability level of the plug-in to be run is obtained, and according to the corresponding relationship between the saved stable level and the running mode, the plug-in running mode corresponding to the obtained stable level is determined, and the operating mode is determined according to the determined plug-in running mode. The running plug-in program is mentioned, so that different plug-in running modes are selected according to different stability levels of the plug-in, thereby improving the stability of the system operation and effectively controlling the resource occupation of the plug-in.

在本發明實施例中,當在用戶端上運行的網路工具的核心業務程式提供的業務不能滿足用戶的需求時,需要運行該網路工具的外掛程式來滿足用戶的需求,其外掛程式運行的過程,參見圖1,具體包括:步驟101:獲取待運行外掛程式的穩定級別。In the embodiment of the present invention, when the service provided by the core business program of the network tool running on the user end cannot meet the requirements of the user, the plug-in program of the network tool needs to be run to meet the user's needs, and the plug-in program runs. The process of referring to FIG. 1 specifically includes: Step 101: Obtain a stability level of the plug-in to be run.

這裏,可以從伺服器保存的外掛程式的穩定級別中,獲取待運行外掛程式的穩定級別。也可以從本地保存的外掛程式的穩定級別中,獲取待運行外掛程式的穩定級別。外掛程式的穩定級別可以根據設定時間內外掛程式的運行狀態進行劃分,例如,穩定級別劃分為三個級別,分別為穩定、普通、及不穩定。這裏,設定一個上限閾值,一個下限閾值,當設定時間內,該外掛程式運行出現異常的次數大於等於上限閾值時,則該外掛程式的穩定級別為不穩定;當設定時間內,該外掛程式運行出現異常的次數小於等於下限閾值時,則該外掛程式的穩定級別為穩定,當設定時間內,該外掛程式運行出現異常的次數處於下限閾值與上限閾值之間時,則該外掛程式的穩定級別為普通。當然,穩定級別也可以只劃分為兩個級別,穩定與普通,那麼只需設定一個閾值,當設定時間內,該外掛程式運行出現異常的次數大於該閾值時,則該外掛程式的穩定級別為普通,否則為穩定。也可以將穩定級別劃分為四個級別,穩定、比較穩定、普通和不穩定,那麼就需要設定三個閾值,第一閾值,第二閾值,第三閾值,其大小異常遞減,那麼,當設定時間內,該外掛程式運行出現異常的次數大於等於第一閾值時,則該外掛程式的穩定級別為不穩定;當設定時間內,該外掛程式運行出現異常的次數大於等於第二閾值,且小於第一閾值時,則該外掛程式的穩定級別為普通;當設定時間內,該外掛程式運行出現異常的次數大於等於第三閾值,且小於第二閾值時,則該外掛程式的穩定級別為比較穩定;當設定時間內,該外掛程式運行出現異常的次數小於第三閾值時,則該外掛程式的穩定級別為穩定。Here, the stability level of the plug-in to be run can be obtained from the stable level of the plug-in saved by the server. It is also possible to obtain the stability level of the plug-in to be run from the stable level of the locally saved plug-in. The stability level of the plug-in can be divided according to the running status of the plug-in in the set time. For example, the stability level is divided into three levels, which are stable, normal, and unstable. Here, an upper threshold is set, and a lower threshold is set. When the number of occurrences of the abnormality of the plugin is greater than or equal to the upper threshold, the stability level of the plugin is unstable; when the set time, the plugin runs. When the number of occurrences of the abnormality is less than or equal to the lower threshold, the stability level of the plugin is stable. When the number of times the abnormality of the plugin is abnormal is between the lower threshold and the upper threshold, the stability level of the plugin is For ordinary. Of course, the stability level can also be divided into only two levels, stable and normal. Then, only one threshold is set. When the number of abnormalities of the plug-in running is greater than the threshold within the set time, the stability level of the plug-in is Ordinary, otherwise stable. It is also possible to divide the stability level into four levels, stable, relatively stable, normal and unstable, then it is necessary to set three thresholds, a first threshold, a second threshold, and a third threshold, whose size is abnormally decremented, then, when setting The stability level of the plugin is unstable when the number of times the exception occurs in the plug-in program is greater than or equal to the first threshold; when the set time is exceeded, the number of times the plug-in program runs abnormally is greater than or equal to the second threshold, and is less than When the first threshold is used, the stability level of the plugin is normal; when the number of times the abnormality of the plugin operation is greater than or equal to the third threshold and less than the second threshold, the stability level of the plugin is compared. Stable; when the number of times the exception occurs during the set time is less than the third threshold, the stability level of the plugin is stable.

這裏,伺服器或本地用戶端可以建立外掛程式與穩定級別的對應的關係,當確定了待運行外掛程式的外掛程式資訊後,例如標識資訊,就可以獲得該待運行外掛程式的穩定級別。Here, the server or the local client can establish a corresponding relationship between the plug-in and the stability level. After determining the plug-in information of the plug-in to be run, for example, identifying the information, the stability level of the plug-in to be run can be obtained.

步驟102:根據保存的穩定級別與運行模式的對應關係,以確定獲取的穩定級別對應的外掛程式運行模式。Step 102: Determine a plug-in running mode corresponding to the obtained stable level according to the correspondence between the saved stable level and the running mode.

這裏,可以預先設置穩定級別與運行模式的對應關係,並在用戶端的儲存單元中進行保存。其中,外掛程式運行模式包括:針對外掛程式的不同穩定級別,啟動不同的載入器進程運行所述待運行外掛程式,穩定級別與外掛程式運行模式的對應關係包括:穩定級別為穩定時,外掛程式運行模式為放入共用的載入器進程中運行外掛程式;穩定級別為普通時,外掛程式運行模式為啟動獨立的載入器進程運行外掛程式。其中,載入器進程為可執行的程式,可以由用戶端上運行的網路工具的核心服務程式創建,也可以由用戶端中的其他程式創建,包括共用的載入器進程和獨立的載入器進程。共用的載入器進程可以運行多個外掛程式,獨立的載入器進程只運行一個外掛程式。這樣,多個穩定級別為穩定的外掛程式運行在一個共用的載入器進程中,可以減少對用戶端資源的佔用;穩定級別為普通的外掛程式在獨立的載入器進程中運行,可以減少該外掛程式對核心業務程式,以及穩定級別為穩定的外掛程式的影響,提高系統的穩定性。Here, the correspondence between the stability level and the operation mode may be set in advance and saved in the storage unit of the client. The plug-in running mode includes: starting different running processes for different plug-in programs to run the plug-in running program, and the correspondence between the stable level and the plug-in running mode includes: when the stable level is stable, the plug-in The program running mode is to run the plugin in the shared loader process; when the stability level is normal, the plugin running mode is to start the independent loader process to run the plugin. The loader process is an executable program that can be created by the core service program of the network tool running on the client, or by other programs in the client, including the shared loader process and the independent load. Into the process. A shared loader process can run multiple plugins, and a separate loader process runs only one plugin. In this way, multiple stable levels of stable plug-ins running in a common loader process can reduce the occupation of client resources; the stability level is normal plug-in running in a separate loader process, which can be reduced The plug-in increases the stability of the system by affecting the core business process and the stability of the plug-in.

這裏,當穩定級別包括穩定、普通與不穩定時,穩定級別與外掛程式運行模式的對應關係還包括:穩定級別為不穩定時,外掛程式運行模式為放棄運行外掛程式,或者通知用戶選擇是否運行該外掛程式。當用戶選擇運行時,啟動獨立的載入器運行該外掛程式;當用戶選擇不運行時,放棄運行外掛程式。Here, when the stability level includes stability, normality, and instability, the correspondence between the stability level and the plug-in operating mode further includes: when the stability level is unstable, the plug-in running mode is to abandon the running plug-in, or notify the user to select whether to run. The plugin. When the user chooses to run, start the independent loader to run the plugin; when the user chooses not to run, give up running the plugin.

當穩定級別包括穩定、比較穩定、普通與不穩定時,穩定級別與外掛程式運行模式的對應關係還包括:穩定級別為比較穩定時,外掛程式運行模式為放入共用的載入器進程中運行外掛程式,這裏,共用的載入器可以是與穩定級別為穩定對應的共用的載入器,也可以是另外一個共用的載入器。When the stability level includes stability, stability, normality and instability, the correspondence between the stability level and the plug-in operating mode includes: when the stability level is relatively stable, the plug-in running mode is put into the shared loader process. The plugin, here, the shared loader can be a shared loader that is stable with a stable level, or it can be another shared loader.

這樣,步驟101中獲取的待運行外掛程式的穩定級別不同,其運行模式就不同。Thus, the stability level of the to-be-operated plug-in obtained in step 101 is different, and the operation mode is different.

步驟103:根據步驟102確定的外掛程式運行模式來運行待運行外掛程式。Step 103: Run the plug-in to be run according to the plug-in running mode determined in step 102.

本實施例中,外掛程式的運行過程中,可能會出現異常,因此,本實施例外掛程式運行的方法還包括:當外掛程式運行異常時,用戶端獲取外掛程式運行的異常資訊,保存該異常資訊,或者將該異常資訊發送給伺服器進行保存,其中,所述異常資訊包括:異常原因,以及運行的外掛程式的外掛程式資訊。異常原因又具體包括:載入器進程崩潰、外掛程式執行線程僵死、或外掛程式長時間佔用過高的記憶體或者處理器。外掛程式資訊又具體包括:外掛程式的標識資訊、名稱、版本等等。In this embodiment, an exception may occur during the running process of the plug-in program. Therefore, the method for running the exception program in the present embodiment further includes: when the plug-in program runs abnormally, the client acquires the abnormal information of the plug-in running, and saves the abnormality. The information is sent to the server for saving, and the abnormal information includes: the cause of the abnormality, and the plug-in information of the running plug-in. The cause of the exception includes: the loader process crashes, the plug-in execution thread is dead, or the memory or processor that the plug-in program takes too long. The plugin information specifically includes: the identification information, name, version, and the like of the plugin.

這樣,用戶端或者伺服器就可以根據外掛程式運行的異常資訊來確定外掛程式的穩定級別,並可以定期進行調整,也就是根據保存的異常資訊,以確定外掛程式在設定時間內出現的異常次數,並根據所述異常次數來調整所述外掛程式的穩定級別。其具體的調整過程包括:當設定時間觸發後,也就是設定時間到達後,獲取所述設定時間內使用次數超過閾值的外掛程式的外掛程式資訊,根據保存的異常資訊,以確定獲取的外掛程式資訊在設定時間內出現的異常次數,根據所述異常次數自動調整所述外掛程式的穩定級別。當然,為了下一次定期調整,需將異常次數以及使用次數進行重定。這裏,還可以人工進行調整,客服人員統計一定時間內外掛程式的運行狀態,當設定時間內,外掛程式運行異常的次數超過設定值時,修改該外掛程式的穩定級別。In this way, the client or the server can determine the stability level of the plug-in according to the abnormal information of the plug-in running, and can periodically adjust, that is, according to the saved abnormal information, to determine the abnormal number of times the plug-in appears within the set time. And adjusting the stability level of the plugin according to the number of abnormalities. The specific adjustment process includes: after setting the time trigger, that is, after the set time arrives, acquiring the plug-in information of the plug-in program whose usage times exceed the threshold in the set time, and determining the acquired plug-in according to the saved abnormal information. The number of abnormalities of the information within the set time, and the stability level of the plug-in is automatically adjusted according to the number of abnormalities. Of course, for the next regular adjustment, the number of abnormalities and the number of uses need to be reset. Here, it can also be manually adjusted. The customer service personnel can count the running status of the plug-in program within a certain period of time. When the number of times the plug-in program runs abnormally exceeds the set value within the set time, the stability level of the plug-in program is modified.

在用戶端運行網路工具的外掛程式運行過程可以由該網路工具的核心業務程式來管理,也可以由用戶端中其他的程式來管理。其中,在本實施例中,核心業務程式不僅提供該網路工具的核心業務,也包括管理外掛程式的程式。載入器進程是用戶端中的獨立的可執行程式,核心業務程式也可以是一個載入進程。The plug-in running process of running the network tool on the client side can be managed by the core business program of the network tool, or can be managed by other programs in the client side. In this embodiment, the core business program not only provides the core business of the network tool, but also includes a program for managing the plug-in program. The loader process is a stand-alone executable in the client, and the core business program can be a load process.

下面結合說明書附圖而對本發明實施例作進一步詳細描述,參見圖2,外掛程式運行的具體過程如下:步驟201:核心業務程式獲取待運行外掛程式的穩定級別。The embodiments of the present invention are further described in detail below with reference to the accompanying drawings. Referring to FIG. 2, the specific process of the plug-in running is as follows: Step 201: The core service program obtains the stability level of the plug-in to be run.

這裏,當核心業務程式向伺服器請求獲取待運行外掛程式的穩定級別時,伺服器根據該請求,以獲取該待運行外掛程式的外掛程式資訊,例如標識資訊,在保存的外掛程式與外掛程式的穩定級別的對應關係中,查詢該標識資訊的對應的待運行外掛程式的穩定級別,將查詢到的穩定級別返回給核心業務程式,並將記錄的待運行外掛程式的使用次數遞增。其中,穩定級別包括穩定、普通和不穩定。Here, when the core service program requests the server to obtain the stability level of the to-be-runned plug-in, the server obtains the plug-in information of the to-be-runned plug-in according to the request, for example, the identification information, the saved plug-in and the plug-in program. In the correspondence between the stable levels, the stability level of the corresponding to-be-running plug-in that queries the identification information is returned, the queried stable level is returned to the core business program, and the number of times the recorded plug-in plug-in is used is incremented. Among them, the level of stability includes stability, generality and instability.

當核心業務程式從本地用戶端獲取待運行外掛程式的穩定級別時,用戶端在保存的外掛程式的穩定級別中,查詢該待運行外掛程式的穩定級別,將查詢到的穩定級別返回給核心業務程式,並將記錄的待運行外掛程式的使用次數遞增。同樣地,穩定級別包括穩定、普通和不穩定。When the core service program obtains the stable level of the to-be-runned plug-in from the local client, the client queries the stability level of the to-be-run plug-in in the stable level of the saved plug-in, and returns the queried stable level to the core service. The program, and increments the number of times the recorded plug-in is used. Similarly, the level of stability includes stability, generality, and instability.

步驟202:核心業務程式判斷待運行外掛程式的穩定級別是為穩定、普通、或不穩定,當穩定級別為穩定時,執行步驟203;當穩定級別為普通時,執行步驟206;當穩定級別為不穩定時,執行步驟207。Step 202: The core service program determines that the stability level of the to-be-running plug-in is stable, normal, or unstable. When the stability level is stable, step 203 is performed; when the stability level is normal, step 206 is performed; when the stability level is If it is unstable, go to step 207.

步驟203:核心業務程式判斷共用的載入器進程是否存在,當存在時,執行步驟205,當不存在時,執行步驟204。Step 203: The core service program determines whether the shared loader process exists. When it exists, step 205 is performed, and when it does not exist, step 204 is performed.

步驟204:核心業務程式創建一個共用的載入器進程。Step 204: The core business program creates a shared loader process.

步驟205:共用的載入器進程運行待運行的外掛程式。Step 205: The shared loader process runs a plugin to be run.

步驟206:核心業務程式為穩定級別為普通的待運行外掛程式建立一個獨立的載入進程,該載入進程運行待運行的外掛程式。Step 206: The core business program establishes a separate loading process for the normal to-be-running plug-in, and the loading process runs the plug-in to be run.

步驟207:外掛程式運行過程結束。Step 207: The plugin running process ends.

在上述實施例中,當不存在共用的載入器進程時,步驟204創建了一個共用的載入器進程,這裏,也可以直接把核心業務程式作為共用的載入器,在核心業務程式進程中運行穩定級別為穩定的外掛程式。In the above embodiment, when there is no shared loader process, step 204 creates a shared loader process. Here, the core business process can also be directly used as a shared loader in the core business process. A stable plugin that runs at a stable level.

在本發明實施例中,當外掛程式運行出現異常時,用戶端還可以獲取該外掛程式的異常資訊,並保存這些異常資訊,或者發送給伺服器。外掛程式都是在載入器進程中運行的,因此,外掛程式運行出現異常,也就是載入器進程出現異常時,用戶端獲取到載入器進程的異常資訊,並保存這些異常資訊,或者發送給伺服器,參見圖3,其體過程如下:步驟301:獲取載入器進程的異常資訊,異常資訊包括:載入器進程的異常原因,以及在該載入器進程中運行的外掛程式的外掛程式資訊。In the embodiment of the present invention, when the plug-in program runs abnormally, the user terminal may also obtain the abnormal information of the plug-in program, and save the abnormal information or send the information to the server. The plugin is running in the loader process. Therefore, if the plugin runs abnormally, that is, when the loader process is abnormal, the client obtains the exception information of the loader process and saves the exception information, or Send to the server, see Figure 3, the process is as follows: Step 301: Get the exception information of the loader process, the exception information includes: the cause of the exception of the loader process, and the plug-in running in the loader process Plugin information.

這裏,當載入器進程為獨立的載入器進程時,則異常資訊包括:異常原因,以及在該獨立的載入器進程中運行的外掛程式的外掛程式資訊,當載入器進程為共用的載入器進程時,則異常資訊包括:異常原因,以及在該共用的載入器進程中運行的所有外掛程式的外掛程式資訊。異常資訊還可以包括:載入器進程的異常上下文。這裏,異常上下文包括:載入器進程的記憶體影像,函數堆疊上下文,載入器進程載入的外掛程式等技術資訊。透過對這些資訊的分析可以知道上下文對應的時刻,載入器進程內所運行的外掛程式,目前正在執行的指令等等。Here, when the loader process is a separate loader process, the exception information includes: the cause of the exception, and the plugin information of the plugin running in the independent loader process, when the loader process is shared When the loader process, the exception information includes: the cause of the exception, and the plugin information of all the plugins running in the shared loader process. The exception information can also include: the exception context of the loader process. Here, the exception context includes: memory image of the loader process, function stacking context, plug-in program loaded by the loader, and other technical information. Through the analysis of this information, you can know the time corresponding to the context, the plug-in running in the loader process, the instructions currently being executed, and so on.

用戶端可以透過檢測而獲得載入器進程的異常原因。異常原因有可能是載入器進程崩潰了、外掛程式執行線程僵死了、或者外掛程式長時間佔用過高的記憶體或者處理器。這裏,載入器進程可以自檢發現異常原因,也可以由用戶端的其他檢查程式對載入器進程進行檢測,以發現異常原因。The client can obtain the cause of the abnormality of the loader process through detection. The cause of the exception may be that the loader process has crashed, the plugin execution thread has been deadlocked, or the plugin has taken up too much memory or processor for a long time. Here, the loader process can self-test to find the cause of the exception, or the other process of the client can detect the loader process to find the cause of the exception.

用戶端還可以透過週期性的心跳報告的形式,得到載入器進程的異常資訊,亦即,載入器進程週期性向核心業務程式發送一個消息,就是所謂的心跳,當用戶端核心業務程式在設定時間內沒有收到載入器進程的心跳報告,則表明載入器進程出現異常。The client can also obtain the abnormal information of the loader process through the form of a periodic heartbeat report, that is, the loader process periodically sends a message to the core business program, which is called a heartbeat, when the client core business program is If the heartbeat report of the loader process is not received within the set time, it indicates that the loader process has an exception.

步驟302:將獲取到的異常資訊,發送給伺服器。Step 302: Send the obtained abnormal information to the server.

這裏,用戶端可以直接將獲得的異常資訊發送給伺服器,也可以對設定時間內的異常資訊進行處理,例如:統計設定時間內每個外掛程式出現的異常次數,然後再發送給伺服器。Here, the UE can directly send the obtained abnormal information to the server, and can also process the abnormal information within the set time, for example, statistics the abnormal number of occurrences of each plug-in in the set time, and then send it to the server.

本步驟當然也可是只是保存獲取到的異常資訊,並不發送給伺服器,直接對設定時間內的異常資訊進行處理。In this step, of course, only the acquired abnormal information is saved, and is not sent to the server, and the abnormal information in the set time is directly processed.

用戶端或者伺服器收集到異常資訊後,可以根據收集到的異常資訊,定期對外掛程式的穩定級別進行調整,參見圖4,定期調整任一外掛程式的穩定級別的過程如下:步驟401:到達設定的時間後,獲取在該設定時間內外掛程式的使用次數。After the client or the server collects the abnormal information, it can periodically adjust the stability level of the plug-in according to the collected abnormal information. Referring to Figure 4, the process of periodically adjusting the stability level of any plug-in is as follows: Step 401: Arrive After the set time, the number of times the plug-in is used within the set time is obtained.

在設定的時間內,當用戶端每訪問一次伺服器,獲取待運行外掛程式的穩定等級時,伺服器就會遞增一次該待運行外掛程式的使用次數,這樣,伺服器會保存了每一個外掛程式在設定時間內的使用次數。或者,當用戶端每次從本地獲取待運行外掛程式的穩定等級時,就會遞增一次該待運行外掛程式的使用次數,這樣,用戶端會保存了每一個外掛程式在設定時間內的使用次數。During the set time, when the client accesses the server once and obtains the stable level of the plug-in to be run, the server increments the number of times the plug-in is used, so that the server saves each plug-in. The number of times the program is used during the set time. Alternatively, each time the client obtains the stable level of the to-be-runned plug-in from the local, the number of times the plug-in is to be incremented is incremented, so that the client saves the number of times each plug-in is used within the set time. .

這裏,本實施例中需調整的外掛程式在設定的一個月內運行了120次。Here, the plug-in to be adjusted in this embodiment runs 120 times in a set month.

步驟402:將獲取的使用次數與設定的閾值相比較,當獲取的使用次數大於等於設定的閾值時,執行步驟403,否則,流程結束,該外掛程式使用率不高,不需要調整穩定級別。Step 402: Compare the obtained usage times with the set threshold. When the acquired usage times are greater than or equal to the set threshold, step 403 is performed. Otherwise, the process ends, the plug-in usage rate is not high, and the stability level does not need to be adjusted.

步驟403:根據保存的異常資訊,以獲取該外掛程式出現的異常次數。Step 403: According to the saved abnormal information, the abnormal number of occurrences of the plug-in is obtained.

用戶端或伺服器每次獲取的異常資訊中包括了外掛程式資訊,因此,可以查詢該外掛程式的外掛程式資訊在設定的時間內的異常資訊中出現的異常次數,例如:一個月內出現了30次。The exception information obtained by the client or the server each time includes the plug-in information. Therefore, the number of abnormalities in the abnormal information of the plug-in program in the set time can be queried, for example, within one month. 30 times.

步驟404:根據獲取的該外掛程式的使用次數以及異常次數,以調整該外掛程式的穩定級別。Step 404: Adjust the stability level of the plugin according to the number of times the plugin is used and the number of abnormalities.

這裏,穩定級別劃分為三個級別,分別為穩定、普通、及不穩定。設定一個上限閾值,一個下限閾值,例如上限閾值為20%,下限閾值為5%,當異常次數除以使用次數得到的值大於等於上限閾值時,則該外掛程式的穩定級別為不穩定;當異常次數除以使用次數得到的值小於等於下限閾值時,則該外掛程式的穩定級別為穩定,當異常次數除以使用次數得到的值處於下限閾值與上限閾值之間時,則該外掛程式的穩定級別為普通。例如該外掛程式初始的穩定級別為普通,而在本次調整週期內,亦即,設定的一個月內,使用次數是120次,異常次數為30次,那麼,30/120=25%,25%>20%,則將該外掛程式的穩定級別調整為不穩定。Here, the stability level is divided into three levels, which are stable, normal, and unstable. Set an upper threshold, a lower threshold, for example, the upper threshold is 20%, and the lower threshold is 5%. When the number of abnormal times divided by the number of uses is greater than or equal to the upper threshold, the stability level of the plugin is unstable; When the number of abnormal times divided by the number of uses is less than or equal to the lower threshold, the stability level of the plugin is stable. When the number of abnormal times divided by the number of uses is between the lower threshold and the upper threshold, the plugin is The stability level is normal. For example, the initial stability level of the plug-in program is normal, and in this adjustment period, that is, within one month set, the number of uses is 120 times, and the number of abnormal times is 30 times, then, 30/120=25%, 25 %>20%, the stability level of the plugin is adjusted to be unstable.

當然,穩定級別也可以只劃分為兩個級別,穩定與普通,那麼只需設定一個閾值,當異常次數除以使用次數得到的值大於該閾值時,則該外掛程式的穩定級別為普通,否則為穩定。也可以將穩定級別劃分為四個級別,穩定、比較穩定、普通和不穩定,那麼就需要設定三個閾值,第一閾值、第二閾值、及第三閾值,其大小異常遞減,那麼,當異常次數除以使用次數得到的值大於等於第一閾值時,則該外掛程式的穩定級別為不穩定;當異常次數除以使用次數得到的值大於等於第二閾值,且小於第一閾值時,則該外掛程式的穩定級別為普通;當異常次數除以使用次數得到的值大於等於第三閾值,且小於第二閾值時,則該外掛程式的穩定級別為比較穩定;當異常次數除以使用次數得到的值小於第三閾值時,則該外掛程式的穩定級別為穩定。Of course, the stability level can also be divided into only two levels, stable and normal, then only one threshold is set. When the number of abnormal times divided by the number of uses is greater than the threshold, the stability level of the plugin is normal, otherwise For stability. It is also possible to divide the stability level into four levels, stable, relatively stable, normal and unstable, then it is necessary to set three thresholds, the first threshold, the second threshold, and the third threshold, whose size is abnormally decremented, then, when When the number of abnormal times divided by the number of uses is greater than or equal to the first threshold, the stability level of the plugin is unstable; when the number of abnormal times divided by the number of uses is greater than or equal to the second threshold and less than the first threshold, The stability level of the plugin is normal; when the number of abnormal times divided by the number of uses is greater than or equal to the third threshold and less than the second threshold, the stability level of the plugin is relatively stable; when the number of abnormal times is divided by When the value obtained by the number of times is less than the third threshold, the stability level of the plugin is stable.

步驟405:將使用次數與異常次數重定,亦即,將記錄的使用次數與異常次數清零,重新開始下一個調整週期內的計數。Step 405: The number of times of use and the number of abnormal times are reset, that is, the number of times of use and the number of abnormal times are cleared, and the counting in the next adjustment period is restarted.

在本發明實施例中,外掛程式的穩定級別可以劃分為多種,那麼用戶端在運行外掛程式的過程中,可以使用多個共用的載入器進程,例如,穩定級別分為:穩定、比較穩定、普通、及不穩定,那麼,可以將所有穩定級別為穩定的外掛程式放入一個共用的載入器進程中運行,將所有穩定級別為比較穩定的外掛程式放入另一個共用的載入器進程中運行。則,用戶端上保存的穩定級別與外掛程式運行模式的對應關係包括:當獲取的穩定級別為穩定時,外掛程式運行模式為放入第一共用的載入器進程中運行外掛程式;當獲取的穩定級別為比較穩定時,外掛程式運行模式為放入第二共用的載入器進程中運行外掛程式;當獲取的穩定級別為普通時,外掛程式運行模式為啟動獨立的載入器進程運行外掛程式;當獲取的穩定級別為不穩定時,外掛程式運行模式為放棄運行外掛程式。In the embodiment of the present invention, the stability level of the plug-in program can be divided into multiple types, and the user can use multiple shared loader processes in the process of running the plug-in program. For example, the stability level is divided into: stable and stable. Normal, and unstable, then all stable plugins with stable levels can be put into a common loader process, and all stable plugins with stable levels can be put into another shared loader. Running in the process. Then, the correspondence between the stability level saved on the client and the running mode of the plugin includes: when the stable level of the acquisition is stable, the running mode of the plugin is to run the plugin in the first shared loader process; When the stability level is relatively stable, the plug-in running mode is to run the plug-in in the second shared loader process; when the stable level is obtained, the plug-in running mode is to start the independent loader process. Plug-in; when the stable level obtained is unstable, the plug-in running mode is to abandon the running plug-in.

根據本發明實施例之上述方法可以構建一種外掛程式運行的用戶端,參見圖5,包括:第一獲取單元510、儲存單元520、第一確定單元530以及運行單元540。其中,第一獲取單元510,用以獲取待運行外掛程式的穩定級別。According to the foregoing method of the embodiment of the present invention, a client running the plug-in program can be constructed. Referring to FIG. 5, the first acquiring unit 510, the storage unit 520, the first determining unit 530, and the running unit 540 are included. The first obtaining unit 510 is configured to obtain a stable level of the plug-in to be run.

儲存單元520,用以保存穩定級別與運行模式的對應關係。The storage unit 520 is configured to save a correspondence between the stability level and the operation mode.

第一確定單元530,用以根據儲存單元520保存的穩定級別與運行模式的對應關係,確定獲取的穩定級別對應的外掛程式運行模式。The first determining unit 530 is configured to determine, according to the correspondence between the stability level and the operating mode saved by the storage unit 520, the plug-in operating mode corresponding to the acquired stable level.

運行單元540,用以根據確定的外掛程式運行模式來運行所述待運行外掛程式。The running unit 540 is configured to run the to-be-running plug-in according to the determined plug-in running mode.

上述各個單元既可以是用戶端中獨立的程式,也可以由核心業務程式來執行第一獲取單元510、儲存單元520和第一確定單元530的功能,載入器進程來執行運行單元540的功能。Each of the above units may be a separate program in the user terminal, or may execute the functions of the first obtaining unit 510, the storage unit 520, and the first determining unit 530 by a core business program, and the loader process performs the function of the running unit 540. .

進一步,用戶端還包括第二獲取單元,用以獲取外掛程式運行的異常資訊,其中,所述異常資訊包括:異常原因,以及所述外掛程式的外掛程式資訊。則,儲存單元520,還用以儲存所述異常資訊。Further, the user terminal further includes a second obtaining unit, configured to obtain abnormal information of the running of the plugin, wherein the abnormal information includes: an abnormal reason, and plugin information of the plugin. The storage unit 520 is further configured to store the abnormal information.

這樣,當設定時間觸發後,用戶端根據儲存單元保存的異常資訊,確定外掛程式在設定時間內出現的異常次數,並根據所述異常次數調整所述外掛程式的穩定級別。具體可以為獲取所述設定時間內使用次數超過閾值的外掛程式的外掛程式資訊,根據保存的異常資訊,以確定獲取的外掛程式資訊在設定時間內出現的異常次數,根據所述異常次數來調整所述外掛程式的穩定級別,並將所述異常次數以及使用次數進行重定。In this way, after the set time is triggered, the user determines the number of abnormal times that the plug-in program appears within the set time according to the abnormal information stored in the storage unit, and adjusts the stability level of the plug-in according to the abnormal number of times. Specifically, the plug-in program information of the plug-in program whose usage times exceed the threshold in the set time period is obtained, and the abnormality information of the acquired plug-in program information is determined according to the saved abnormal information, and is adjusted according to the abnormal number of times. The stability level of the plugin, and the number of abnormalities and the number of uses are reset.

當然,用戶端還可以包括發送單元,用以發送第二獲取單元獲取的異常資訊。Of course, the UE may further include a sending unit, configured to send the abnormal information acquired by the second acquiring unit.

在本發明實施例中,可以從伺服器保存的外掛程式的穩定級別中,獲取待運行外掛程式的穩定級別,因此,可以構建一種外掛程式運行的系統,包括參見圖6,包括用戶端100和伺服器200。In the embodiment of the present invention, the stability level of the plug-in to be run can be obtained from the stable level of the plug-in saved by the server. Therefore, a system running the plug-in can be constructed, including FIG. 6, including the client 100 and Server 200.

用戶端100,用以從伺服器200保存的外掛程式的穩定級別中,獲取待運行外掛程式的穩定級別,根據保存的穩定級別與運行模式的對應關係,以確定獲取的穩定級別對應的外掛程式運行模式,根據確定的外掛程式運行模式來運行所述待運行外掛程式。The client 100 is configured to obtain a stable level of the plug-in to be run from the stable level of the plug-in saved by the server 200, and determine a plug-in corresponding to the obtained stable level according to the corresponding relationship between the saved stable level and the running mode. In the running mode, the to-be-running plug-in is run according to the determined plug-in running mode.

伺服器200,用以保存外掛程式的穩定級別。The server 200 is configured to save the stability level of the plug-in.

因此,用戶端100包括:第一獲取單元110、儲存單元120、第一確定單元130以及運行單元140。其中,第一獲取單元110,用以獲取待運行外掛程式的穩定級別。Therefore, the client 100 includes: a first obtaining unit 110, a storage unit 120, a first determining unit 130, and an operating unit 140. The first obtaining unit 110 is configured to obtain a stable level of the plug-in to be run.

儲存單元120,用以保存穩定級別與運行模式的對應關係。The storage unit 120 is configured to save a correspondence between a stability level and an operation mode.

第一確定單元130,用以根據儲存單元120保存的穩定級別與運行模式的對應關係,確定獲取的穩定級別對應的外掛程式運行模式。The first determining unit 130 is configured to determine, according to the correspondence between the stable level and the operating mode saved by the storage unit 120, the plug-in operating mode corresponding to the acquired stable level.

運行單元140,用以根據確定的外掛程式運行模式來運行所述待運行外掛程式。The running unit 140 is configured to run the to-be-running plug-in according to the determined plug-in running mode.

還包括第二獲取單元150,用以獲取外掛程式運行的異常資訊;則,儲存單元120,還用以儲存所述異常資訊。The second obtaining unit 150 is further configured to obtain the abnormal information of the operation of the plugin. The storage unit 120 is further configured to store the abnormal information.

當用戶端100運行外掛程式出現異常時,用戶端100還包括發送單元160,用以獲取該外掛程式的異常資訊,將異常資訊發送給伺服器200,其中,異常資訊包括:異常原因,以及所述外掛程式的外掛程式資訊。When the client 100 runs the plug-in, the client 100 further includes a sending unit 160, which is used to obtain the abnormal information of the plug-in, and sends the abnormal information to the server 200, where the abnormal information includes: the cause of the abnormality, and the The plugin information about the plugin.

進一步,伺服器200包括儲存單元210,不僅用以保存外掛程式的穩定級別,還用以接收並保存異常資訊。Further, the server 200 includes a storage unit 210 for not only storing the stability level of the plug-in but also receiving and storing the abnormal information.

伺服器200還包括調整單元220,用以當設定時間觸發後,根據儲存單元210保存的異常資訊,確定外掛程式在設定時間內出現異常的數量,根據所述數量來調整所述外掛程式的穩定級別。The server 200 further includes an adjusting unit 220, configured to determine, according to the abnormal information saved by the storage unit 210, the number of abnormalities that occur in the set time within the set time, and adjust the stability of the plugin according to the quantity. level.

為了描述的方便,以上所述用戶端和伺服器的各部分以功能分為各種單元分別描述。當然,在實施本發明時可以把各單元的功能在同一個或多個軟體或硬體中實現。For the convenience of description, the above-mentioned parts of the client and the server are separately described by functions into various units. Of course, the functions of each unit can be implemented in the same or multiple software or hardware in the practice of the present invention.

綜上所述,在本發明實施例中,獲取待運行外掛程式的穩定級別,根據保存的穩定級別與運行模式的對應關係,以確定獲取的穩定級別對應的外掛程式運行模式,根據確定的外掛程式運行模式來運行所述待運行外掛程式,這樣,將不同穩定級別的外掛程式放入不同的載入器進程中運行,可以避免由於外掛程式的不穩定而造成核心業務程式出現故障的狀況,提高了網路工具的穩定性。將穩定性較高的、且屬於同一穩定級別的外掛程式放入一個共用的載入器中運行,可以節省用戶端的系統資源,提高了用戶端系統的穩定性。並且透過收集外掛程式的異常資訊,動態調整外掛程式的穩定級別,可以將不穩定的外掛程式淘汰,提高了用戶的體驗。In the embodiment of the present invention, the stability level of the plug-in to be run is obtained, and according to the correspondence between the saved stable level and the running mode, the plug-in running mode corresponding to the obtained stable level is determined, according to the determined plug-in. The program running mode is used to run the plug-in to be run, so that different stable level plug-ins are put into different loader processes to avoid the failure of the core business program due to the instability of the plug-in program. Improve the stability of web tools. Putting a plug-in program with higher stability and belonging to the same stable level into a shared loader can save system resources of the client and improve the stability of the client system. And by collecting the abnormal information of the plug-in program and dynamically adjusting the stability level of the plug-in, the unstable plug-in can be eliminated, and the user experience is improved.

顯然,本領域的技術人員可以對本發明進行各種修改和變型而不脫離本發明的精神和範圍。這樣,倘若本發明的這些修改和變型屬於本發明申請專利範圍第及其等同技術的範圍之內,則本發明也意圖包含這些修改和變型在內。It will be apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the inventions

100...用戶端100. . . user terminal

110...第一獲取單元110. . . First acquisition unit

120...儲存單元120. . . Storage unit

130...第一確定單元130. . . First determining unit

140...運行單元140. . . Operating unit

150...第二獲取單元150. . . Second acquisition unit

160...發送單元160. . . Sending unit

200...伺服器200. . . server

210...儲存單元210. . . Storage unit

220...調整單元220. . . Adjustment unit

510...第一獲取單元510. . . First acquisition unit

520...儲存單元520. . . Storage unit

530...第一確定單元530. . . First determining unit

540...運行單元540. . . Operating unit

圖1為本發明實施例外掛程式運行的流程圖;1 is a flow chart of the operation of an exception program according to the present invention;

圖2為本發明實施例外掛程式運行的具體方法流程圖;2 is a flow chart of a specific method for implementing an exception program according to the present invention;

圖3為本發明實施例獲取外掛程式運行的異常資訊流程圖;3 is a flow chart of obtaining an abnormality information of a plug-in running according to an embodiment of the present invention;

圖4為本發明實施例調整外掛程式穩定級別的流程圖;4 is a flowchart of adjusting a stability level of a plug-in according to an embodiment of the present invention;

圖5為本發明實施例運行外掛程式的用戶端的結構圖;FIG. 5 is a structural diagram of a user end of a running plug-in according to an embodiment of the present invention; FIG.

圖6為本發明實施例運行外掛程式的系統的架構圖。FIG. 6 is a structural diagram of a system for running a plug-in according to an embodiment of the present invention.

Claims (16)

一種外掛程式運行的方法,其特徵在於,包括:在外掛程式的目前運行之前,先獲取待運行之外掛程式的穩定級別,其中,該外掛程式的穩定級別係至少部分根據保存的該外掛程式與多個可能的穩定級別的其中一者間之對應關係來予以決定的;根據保存的穩定級別與外掛程式運行模式的對應關係,以確定獲取的穩定級別對應的外掛程式運行模式;以及根據確定的外掛程式運行模式來運行該待運行之外掛程式。 A method for operating a plug-in program, comprising: obtaining a stability level of a plug-in program to be run before the current running of the plug-in program, wherein the plug-in program has a stable level based at least in part on the saved plug-in and Determining the correspondence between one of the plurality of possible stability levels; determining the operating mode of the plug-in corresponding to the obtained stable level according to the correspondence between the saved stability level and the plug-in operating mode; The plugin run mode runs the plugin to be run. 如申請專利範圍第1項所述的方法,其中,該獲取待運行之外掛程式的穩定級別包括:從伺服器保存的外掛程式的穩定級別中,獲取待運行之外掛程式的穩定級別;或,從本地保存的外掛程式的穩定級別中,獲取待運行之外掛程式的穩定級別。 The method of claim 1, wherein the obtaining a stable level of the plug-in to be run comprises: obtaining a stable level of the plug-in to be run from a stable level of the plug-in saved by the server; or Get the stability level of the plug-in to be run from the stable level of the locally saved plug-in. 如申請專利範圍第1項所述的方法,其中,該外掛程式運行模式包括:針對外掛程式的不同穩定級別,啟動不同的載入器進程運行該待運行之外掛程式。 The method of claim 1, wherein the plugin running mode comprises: starting different running processes for the plugin to run the plugin to be run for different stability levels of the plugin. 如申請專利範圍第1或3項所述的方法,其中,該外掛程式運行模式包括:當獲取的穩定級別為穩定時,外掛程式運行模式為放入共用的載入器進程中運行外掛程式; 當獲取的穩定級別為普通時,外掛程式運行模式為啟動獨立的載入器進程運行外掛程式。 The method of claim 1 or 3, wherein the plugin running mode comprises: when the obtained stable level is stable, the plugin running mode is to run the plugin in the shared loader process; When the stable level obtained is normal, the plugin running mode is to start the independent loader process to run the plugin. 如申請專利範圍第1項所述的方法,其中,該方法還包括:當外掛程式運行異常時,該方法還包括:獲取並保存該外掛程式運行的異常資訊。 The method of claim 1, wherein the method further comprises: when the plugin runs abnormally, the method further comprises: acquiring and saving the abnormal information of the plugin running. 如申請專利範圍第5項所述的方法,其中,該異常資訊包括:異常原因,以及該外掛程式的外掛程式資訊。 The method of claim 5, wherein the abnormal information includes: an abnormal cause, and plugin information of the plugin. 如申請專利範圍第5項所述的方法,其中,當從伺服器保存的外掛程式的穩定級別中,獲取待運行之外掛程式的穩定級別時,該方法還包括:將該異常資訊發送給伺服器進行保存。 The method of claim 5, wherein, when obtaining a stable level of the to-be-running program from a stable level of the plug-in saved by the server, the method further comprises: sending the abnormal information to the servo Save it. 如申請專利範圍第2項所述的方法,其中,該方法還包括:將該保存的外掛程式的穩定級別進行定期調整。 The method of claim 2, wherein the method further comprises: periodically adjusting the stability level of the saved plugin. 如申請專利範圍第5或7項所述的方法,其中,該定期調整包括:根據保存的異常資訊,確定外掛程式在設定時間內出現的異常次數;根據該異常次數來調整該外掛程式的穩定級別。 The method of claim 5, wherein the periodic adjustment comprises: determining, according to the saved abnormal information, an abnormal number of occurrences of the plug-in within the set time; and adjusting the stability of the plug-in according to the abnormal number of times level. 一種外掛程式運行的裝置,其特徵在於,包括:第一獲取單元,用以在外掛程式的目前運行之前,先獲取待運行之外掛程式的穩定級別,其中,該外掛程式的穩定級別係至少部分根據保存的該外掛程式與多個可能的 穩定級別的其中一者間之對應關係來予以決定的;儲存單元,用以保存穩定級別與運行模式的對應關係;第一確定單元,用以根據儲存單元保存的穩定級別與運行模式的對應關係,確定獲取的穩定級別對應的外掛程式運行模式;以及運行單元,用以根據確定的外掛程式運行模式來運行該待運行之外掛程式。 An apparatus for operating a plug-in program, comprising: a first obtaining unit, configured to obtain a stable level of a plug-in program to be run before the current running of the plug-in program, wherein the plug-in program has at least a stable level According to the saved plugin and multiple possible Determining a correspondence between one of the stability levels; a storage unit for storing a correspondence between the stability level and the operation mode; and a first determining unit configured to correspond to the stability level and the operation mode according to the storage unit Determining an acquired plug-in operating mode corresponding to the stable level; and running a unit for running the to-be-running plug-in according to the determined plug-in operating mode. 如申請專利範圍第10項所述的裝置,其中,該裝置還包括:第二獲取單元,用以獲取外掛程式運行的異常資訊;則,儲存單元,還用以儲存該異常資訊。 The device of claim 10, wherein the device further comprises: a second obtaining unit, configured to acquire abnormal information of the operation of the plug-in; and the storage unit is further configured to store the abnormal information. 如申請專利範圍第11項所述的裝置,其中,該裝置還包括:第二確定單元,用以根據該儲存單元保存的異常資訊,確定外掛程式在設定時間內出現的異常次數;調整單元,用以根據該異常次數來調整該外掛程式的穩定級別。 The device of claim 11, wherein the device further comprises: a second determining unit, configured to determine, according to the abnormal information stored by the storage unit, an abnormal number of times that the plug-in program occurs within the set time; Used to adjust the stability level of the plugin according to the number of abnormalities. 如申請專利範圍第10項所述的裝置,其中,該裝置還包括:發送單元,用以發送該異常資訊。 The device of claim 10, wherein the device further comprises: a sending unit, configured to send the abnormal information. 一種外掛程式運行的系統,其特徵在於,包括:用戶端,用以從伺服器保存的外掛程式的穩定級別 中,在外掛程式的目前運行之前,先獲取待運行之外掛程式的穩定級別,根據保存的穩定級別與運行模式的對應關係,以確定獲取的穩定級別對應的外掛程式運行模式,根據確定的外掛程式運行模式來運行該待運行之外掛程式,其中,該外掛程式的穩定級別係至少部分根據保存的該外掛程式與多個可能的穩定級別的其中一者間之對應關係來予以決定的;以及伺服器,用以保存外掛程式的穩定級別。 A system running a plug-in program, comprising: a client, a stable level of a plug-in saved from a server Before the current running of the plug-in program, the stability level of the plug-in program to be run is obtained, and the plug-in running mode corresponding to the obtained stable level is determined according to the corresponding relationship between the saved stable level and the running mode, according to the determined plug-in. a program running mode to run the to-be-running plug-in, wherein the level of stability of the plug-in is determined based at least in part on a correspondence between the saved plug-in and one of a plurality of possible stability levels; The server is used to save the stability level of the plugin. 如申請專利範圍第14項所述的系統,其中,該用戶端,還用以獲取外掛程式運行的異常資訊,將該異常資訊發送給伺服器。 The system of claim 14, wherein the user terminal is further configured to obtain abnormal information about the operation of the plugin, and send the abnormal information to the server. 如申請專利範圍第15項所的系統,其中,該伺服器,還用以接收並保存異常資訊,根據保存的異常資訊,確定外掛程式出現的異常次數,根據該異常次數來調整該外掛程式的穩定級別。 The system of claim 15 , wherein the server is further configured to receive and save abnormal information, determine an abnormal number of occurrences of the plug-in according to the saved abnormal information, and adjust the plug-in according to the abnormal number of times. Stability level.
TW098119738A 2009-06-12 2009-06-12 The method, device, and system of the plug TWI585687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098119738A TWI585687B (en) 2009-06-12 2009-06-12 The method, device, and system of the plug

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098119738A TWI585687B (en) 2009-06-12 2009-06-12 The method, device, and system of the plug

Publications (2)

Publication Number Publication Date
TW201044273A TW201044273A (en) 2010-12-16
TWI585687B true TWI585687B (en) 2017-06-01

Family

ID=45001288

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098119738A TWI585687B (en) 2009-06-12 2009-06-12 The method, device, and system of the plug

Country Status (1)

Country Link
TW (1) TWI585687B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200535660A (en) * 2004-04-27 2005-11-01 Town & Talent Technology China Co Ltd Networking information technology project measurement and analysis method and platform
US20080249905A1 (en) * 2006-06-26 2008-10-09 Omniture, Inc. Multi-party web-beacon-based analytics

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200535660A (en) * 2004-04-27 2005-11-01 Town & Talent Technology China Co Ltd Networking information technology project measurement and analysis method and platform
US20080249905A1 (en) * 2006-06-26 2008-10-09 Omniture, Inc. Multi-party web-beacon-based analytics

Also Published As

Publication number Publication date
TW201044273A (en) 2010-12-16

Similar Documents

Publication Publication Date Title
CN101510167B (en) A kind of method of plug-in component operation, Apparatus and system
CN111818159B (en) Management method, device, equipment and storage medium of data processing node
CN107688496B (en) Task distributed processing method and device, storage medium and server
US10440136B2 (en) Method and system for resource scheduling
US9483368B2 (en) Method, apparatus, and system for handling virtual machine internal fault
WO2019169724A1 (en) Server concurrency control method and device, computer device, and storage medium
US20120137101A1 (en) Optimizing memory management of an application running on a virtual machine
US20040267930A1 (en) Slow-dynamic load balancing method and system
CN106034137A (en) Intelligent scheduling method for distributed system, and distributed service system
CN106656604A (en) Microservice request management method, microservice controller and high-concurrence microservice architecture
WO2020134840A1 (en) Data distribution method and related product
CN112468310A (en) Streaming media cluster node management method and device and storage medium
CN109462646B (en) Abnormal response method and equipment
JP2005018120A (en) Method for collecting apparatus information in network management system
CN112612635B (en) Multi-level protection method for application program
EP4057582B1 (en) Device management method and apparatus
TWI585687B (en) The method, device, and system of the plug
CN111723064A (en) Log collection method and device, server and storage medium
CN112118305B (en) Method for reducing invalid request in block chain consensus system
CN114490237A (en) Operation and maintenance monitoring method and device based on multiple data sources
US11271839B2 (en) Dynamic asynchronous communication management
CN111158899A (en) Data acquisition method, data acquisition device, task management center and task management system
JP2010170168A (en) Flow rate control method and system
WO2024066770A1 (en) Information acquisition method and apparatus, and storage medium
CN110413403A (en) A kind of autonomous detecting and control method of application service, storage medium, equipment and system

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees