Embodiment
Accompanying drawing below in conjunction with the embodiment of the invention carries out clear, intactly description to the technical scheme of the embodiment of the invention, and obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Instance 1:
Present embodiment provides a kind of disposal route of goal systems, and is as shown in Figure 1, and this method comprises the steps:
101, in supervisory system, start said goal systems.
Under the scene of opening said supervisory system; When new goal systems application starts; Said supervisory system will be added to said new goal systems the monitored system of self; And carry out to said monitored system startup path and the setting of correlation parameter, carry out initialization operation then to said monitored system.Certainly, said supervisory system also can be added to the goal systems that is in running status the monitored system of self and monitors.For instance, said goal systems can be the control process of moving on the server of an operation website relevant with user's download, when the user carries out down operation on the website, start said control process and carry out relevant downloading control function.In the case, said supervisory system is added to the monitored system of self with said control process and starts, corresponding path and the correlation parameter of starting of configuration, and carry out initialization action to this process.
Through starting goal systems in the supervisory system, need not in goal systems, to add and the irrelevant monitoring correlative code of the function of goal systems own, can reduce the complicacy that goal systems is handled, improved treatment effeciency and security.
102, said supervisory system is monitored the operational factor of said goal systems, and judges whether said operational factor satisfies the abnormality processing condition that is provided with in advance.
Said pre-configured abnormality processing condition is used for the different abnormal conditions of said goal systems are judged to being configured in the computer system before the monitored initialization carrying out.
103, satisfy under the situation of said abnormality processing condition in said operational factor, said goal systems is handled.
Said supervisory system is handled for the said goal systems that meets said abnormality processing condition, to safeguard the normal operation of The whole calculations machine system; For the said goal systems that does not meet said abnormality processing condition, do not do abnormality processing.
Present embodiment also provides a kind of supervisory system, and is as shown in Figure 2, comprising: start unit 21, monitoring means 22, processing unit 23.
Wherein, start unit 21 is used under said supervisory system, starting goal systems.
Whether the operational factor that monitoring means 22 is used to monitor said goal systems satisfies the abnormality processing condition that is provided with in advance.
Processing unit 23 is used for satisfying under the situation of said abnormality processing condition in said operational factor, and said goal systems is handled.
The disposal route of the goal systems that the embodiment of the invention provides and supervisory system; Compared with prior art, the analysis through to the operational factor of goal systems has realized the monitoring to goal systems; Can detect the different anomalies situation of goal systems; And can make corresponding abnormality processing to the different anomalies situation, and need not in goal systems, to add and the irrelevant monitoring correlative code of the function of goal systems own, can reduce the complicacy that goal systems is handled; Improved treatment effeciency and security, and the availability of goal systems and stability.
Instance 2:
Present embodiment provides a kind of disposal route of goal systems, and is of Fig. 3, and this method comprises the steps:
301, in supervisory system, start said goal systems.
In practical application, the function of said supervisory system can be carried out by monitoring process, and said goal systems can be the monitored process of being monitored by said monitoring process.At first; When new process was prepared to start, will the be said new process of said monitoring process started as the subprocess of self, and to said monitored process configuration startup path and correlation parameter as subprocess; In addition, said monitored process also will be carried out initialization operation.
In said supervisory system, also need according to said goal systems arrangement abnormalities treatment conditions.Said abnormality processing condition comprise following one of at least: the accumulative total output number of times of data to be tested in preset very first time length in the output stream data that produce during said goal systems operation surpasses preset out gate limit value; Said output stream data fit pre-sets forbids restarting condition.
302, supervisory system is defined into a preset buffer zone with the memory location of said output stream data.
The output stream data configuration cache path that said supervisory system generates when being the operation of said goal systems is to be used for storing said output stream data.For example, can in the storer of computer system, open up part zone as the said output stream data of buffer stores.
303, supervisory system reads the output stream data of said goal systems.
In the operational process of said goal systems, said supervisory system reads the output stream data of said goal systems.
304, supervisory system deposits said output stream data in said buffer zone.
The said output stream data that said supervisory system will read deposit said buffer zone in.
305, the said output stream data that deposit buffer zone in of supervisory system monitoring; And judge whether said output stream data satisfy said abnormality processing condition; If the output stream data satisfy the abnormality processing condition; Then goal systems is handled accordingly,, then goal systems is not handled if the output stream data do not satisfy the abnormality processing condition.
Wherein, The output stream data satisfy the abnormality processing condition; Can be divided into following two kinds of situation:, change step 306 over to when the accumulative total output number of times of the data to be tested in the said output stream data in preset very first time length surpasses under the situation of said out gate limit value; When said output stream data satisfy presetly when forbidding restarting condition, change step 307 over to.
306, supervisory system restarts said goal systems, and creates an abnormity notifying, the current ERST of record object system.
A part of data in the said output stream data as data to be tested (for example; Said data to be tested can be the data that can whether be in the judgment basis of endless loop state as goal systems), whether said supervisory system is monitored said data to be tested and in said very first time length, is exported continuously.If said data to be tested are output continuously in said very first time length, and its accumulative total is when exporting number of times and surpassing said out gate limit value, and said goal systems gets into endless loop, thereby need restart.After execution is restarted, create an abnormity notifying and carry out record with the situation that said goal systems is restarted because of endless loop.
307, supervisory system finishes the operation of said goal systems, and does not restart said goal systems.
When said output stream data satisfy saidly when forbidding restarting condition, said supervisory system finishes the operation of said goal systems, but can not restart.In the practical application, saidly forbid restarting condition and can carry out pre-configured according to the performance of The whole calculations machine system.Such as, computer system A can be the server of a website, goal systems a can be the control process of in the server of said website, moving relevant with user's download.In computer system A; If getting into endless loop at goal systems a successively generates under the situation of output stream data x simultaneously; Restart the problem of successive generation output stream data x still to be arranged behind the goal systems a or restart goal systems a and brought tangible system risk for computer system A, the situation that then will successively generate output stream data x forbids restarting condition setting in said computer system A as a kind of.
After execution in step 307, also can create an abnormity notifying.
Need to prove to also have the log record of said goal systems in the said output stream data.Replenish as a kind of of the embodiment of the invention, can said log record be defined as dangerous log record of mortality and general dangerous log record in advance.Said supervisory system is also checked said log record when carrying out the monitoring of endless loop simultaneously.When said log record is judged as mortality danger log record, execution in step 306; When said log record was judged as general dangerous log record, said supervisory system was created an abnormity notifying and is write down the dangerous log record of said generality, but needn't close or restart said goal systems.
The method that present embodiment provides through in said supervisory system, starting said goal systems, and detects the output stream data of said goal systems, has realized monitoring and processing to the abnormal conditions of goal systems, has improved the availability of system.In addition; The embodiment of the invention can be under the prerequisite of not invading goal systems; Realization is to the endless loop status detection and restart, and can also carry out detection record to the dangerous log record of goal systems simultaneously, has realized detection and processing for the different abnormal conditions of goal systems preferably.
Instance 3:
Present embodiment provides a kind of disposal route of goal systems, and is as shown in Figure 4, and this method comprises the steps:
401, in supervisory system, start said goal systems.
About in supervisory system, starting the detailed description of said goal systems, the description in the reference implementation example 2.Said goal systems brings into operation after accomplishing initialization, when said goal systems finishes operation and withdraws from, produces one and withdraws from sign indicating number.
402, supervisory system produces when out of service according to said goal systems withdraws from sign indicating number, judges withdrawing from sign indicating number and whether meeting preset abnormality processing condition of said goal systems.Satisfy the abnormality processing condition if withdraw from sign indicating number, then goal systems is handled accordingly, do not satisfy the abnormality processing condition, then goal systems is not handled if withdraw from sign indicating number.
With reference to the description of abnormality processing condition among the embodiment 2, relate to the abnormality processing condition that withdraws from sign indicating number can comprise following one of at least: the sign indicating number that withdraws from that produces when said goal systems is out of service withdraws from sign indicating number for the ectype that is provided with in advance; Said withdraw from sign indicating number meet pre-set forbid restarting condition.
For instance, saidly meet withdrawing from sign indicating number and can being maintained in and withdrawing from the code table of abnormality processing condition.Said withdraw from code table list might occur withdraw from sign indicating number, each withdraws from yard corresponding a kind of situation that specifically withdraws from, whether the said code table that withdraws from also writes down the said sign indicating number that withdraws from and belongs to unusually and withdraw from.Through the sign indicating number that withdraws from of said goal systems is compared with the said code table that withdraws from, judge withdrawing from of said goal systems and whether meet said abnormality processing condition.
Wherein, withdraw from sign indicating number and satisfy the abnormality processing condition, can be divided into following two kinds of situation: when withdrawing from sign indicating number and withdrawing from yard, turn to step 403 for ectype when said; When the said sign indicating number that withdraws from meets saidly when forbidding restarting condition, turn to step 404.
403, supervisory system restarts said goal systems, and creates an abnormity notifying, the current ERST of record object system.
Said supervisory system restarts the goal systems that occurs withdrawing from unusually, and creates an abnormity notifying said goal systems is carried out record because of the situation that withdraws from unusually to restart.
404, supervisory system finishes the operation of said goal systems, and does not restart said goal systems.
In the practical application, saidly forbid restarting condition and can carry out pre-configured according to the performance of The whole calculations machine system.Such as; In computer system B; If goal systems b produces ectype and withdraws from a yard X when out of service, and carry out and to restart back goal systems b and still can not normally move, then can ectype be withdrawed from yard X and be configured among the computer system B as a kind of condition of forbidding restarting.After execution in step 404, also can create an abnormity notifying, write down this abnormal conditions.
The method that present embodiment provides when said goal systems withdraws from, can detect the sign indicating number that withdraws from of said goal systems, and judges whether the withdrawing to withdrawing from unusually of said goal systems, and then handled is provided, and has improved the availability of system.Further; The method that present embodiment provides can combine with the method that embodiment 2 provides; The sign indicating number that withdraws from that supervisory system produces to the output stream data of the said goal systems that deposits buffer zone in and when finishing operation simultaneously detects; More comprehensively realize monitoring, and carry out correspondence to the different anomalies situation and handle said goal systems.In addition, supervisory system can not invaded goal systems through the output stream data of goal systems, the detection of withdrawing from sign indicating number are handled accordingly in the present embodiment, need not in goal systems, to carry out extra configuration yet, helps the stability of system.
Instance 4:
The embodiment of the invention provides a kind of supervisory system, and is as shown in Figure 5, comprising: start unit 51, detecting unit 52, processing unit 53, abnormity notifying are created unit 54.
Wherein, start unit 51 is used for saidly under supervisory system, starting goal systems.
Detecting unit 52 is used to monitor the operational factor of said goal systems, and judges whether said operational factor satisfies the abnormality processing condition that is provided with in advance; Said operational factor comprise following one of at least: the output stream data that produce during the goal systems operation, produce when said goal systems is out of service withdraw from sign indicating number.Said abnormality processing condition comprise following one of at least: the accumulative total output number of times of the data to be tested in the said output stream data in preset very first time length surpasses preset out gate limit value; The said sign indicating number that withdraws from withdraws from sign indicating number for the ectype that is provided with in advance; Said output stream data or said withdraw from sign indicating number meet pre-set forbid restarting condition.
Processing unit 53 is used for satisfying under the situation of said abnormality processing condition in said operational factor, and said goal systems is handled.
Abnormity notifying is created unit 54 and is used to create abnormity notifying, in said abnormity notifying, has write down the abnormal conditions of said goal systems.
Further; Satisfy the situation of said abnormality processing condition for said output stream data; As shown in Figure 6, said supervisory system comprises: start unit 61, detecting unit 62, processing unit 63, abnormity notifying are created unit 64, output stream directed element 65, output stream reading unit 66, output stream buffer unit 67.
Wherein, output stream directed element 65 is used for the memory location of said output stream data is defined into a preset buffer zone.Output stream reading unit 66 is used to read the output stream data that said goal systems produces.Output stream buffer unit 67 is used for depositing the output stream data that the said goal systems that reads produces in said buffer zone, so that said supervisory system reads and monitor said output stream from said buffer zone.
In addition; Detecting unit 62 among Fig. 6 also is used to monitor the output stream data of said goal systems, and judges that data to be tested in said output stream data accumulative total in said very first time length exports number of times and whether surpass preset out gate limit value and judge whether said output stream data meet the said condition of forbidding restarting.Said processing unit 63 also comprises: the first output stream processing module 631 and the second output stream processing module 632.Wherein the first output stream processing module 631 is used for surpassing under the situation of said out gate limit value at the accumulative total output number of times of said data to be tested in said very first time length, and said goal systems is restarted.The second output stream processing module 632 is used for restarting under the situation of condition in said forbidding of said output stream data fit, finishes the operation of said goal systems, and does not carry out restarting said goal systems.
Further, for the said yard situation that satisfies said abnormality processing condition that withdraws from, as shown in Figure 7, said supervisory system comprises: start unit 71, detecting unit 72, processing unit 73, abnormity notifying are created unit 74.
Wherein, detecting unit 72 also is used to detect the sign indicating number that withdraws from of said goal systems, judges whether the said sign indicating number that withdraws from is that said ectype withdraws from sign indicating number and judges whether the said sign indicating number that withdraws from meets the said condition of forbidding restarting.In addition, said processing unit 73 comprises that also first withdraws from yard processing module 731 and second and withdraw from yard processing module 732.First withdraws from yard processing module 731 is used for withdrawing under the situation of sign indicating number for said ectype at the said sign indicating number that withdraws from, and said goal systems out of service is restarted.Second withdraws from yard processing module 732 is used for finishing the operation of said goal systems, and not carrying out restarting said goal systems meeting said forbidding and restart under the situation of condition at the said sign indicating number that withdraws from.
In the practical application, the function that can the device of Fig. 6 in the embodiment of the invention and Fig. 7 be provided combines, and makes that the supervisory system in the embodiment of the invention can be carried out said output stream data and said detection and the corresponding abnormality processing that withdraws from sign indicating number simultaneously.Other associated description of the supervisory system that provides about the embodiment of the invention can reference implementation example 2 and the description of embodiment 3, repeats no more here.
The supervisory system that present embodiment provides, can to the output stream data of goal systems with withdraw from sign indicating number and detect, and judge said goal systems abnormal conditions, and then handled be provided, improved the availability of system.Simultaneously; Supervisory system is through handle the output stream data of goal systems, the detection of withdrawing from sign indicating number accordingly in the present embodiment; Can not invade goal systems, need not in monitored process goal system, to carry out corresponding extra configuration yet, help the stability of system.
Embodiments of the invention are used for computer system, have realized the monitoring to process, can detect the different anomalies situation of monitored process, and take corresponding abnormality processing to the different anomalies situation.
Through the description of above embodiment, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product, and this computer software product is stored in the storage medium that can read, like the floppy disk of computing machine; Hard disk or CD etc.; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection domain with claim.