CN108768768A - Occlusion detection method, apparatus and storage medium for operation system - Google Patents
Occlusion detection method, apparatus and storage medium for operation system Download PDFInfo
- Publication number
- CN108768768A CN108768768A CN201810459426.1A CN201810459426A CN108768768A CN 108768768 A CN108768768 A CN 108768768A CN 201810459426 A CN201810459426 A CN 201810459426A CN 108768768 A CN108768768 A CN 108768768A
- Authority
- CN
- China
- Prior art keywords
- business processing
- processing component
- component
- record
- message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/11—Identifying congestion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephonic Communication Services (AREA)
- Debugging And Monitoring (AREA)
Abstract
This application involves a kind of occlusion detection method, apparatus and storage medium for operation system, belong to field of computer technology, this method includes:Interruption detection request is sent to business processing component, the interruption detection request is for detecting whether the business processing component blocks;It detects whether to receive the response message for asking the interruption detection that the business processing component is fed back in preset duration;When not receiving the response message in the preset duration, determine that the business processing component blocks;It can solve determine whether business processing component blocks, the problem for causing service request processing progress slower;Due to that can determine whether business processing component blocks in time by sending interruption detection request, in this way, the exception of business processing component can be found in time, to be adjusted to business processing component, it is thus possible to improve the processing progress of service request.
Description
Technical field
This application involves a kind of occlusion detection method, apparatus and storage medium for operation system, belong to computer skill
Art field.
Background technology
Substantial portion of operation system is based on message-driven, such as the backend services system of monitoring product on the market
System.Each operation system is made of at least one business processing component, and the service is completed in the work of these business processing assembly synergistics
In some service request.
In the course of work of some business processing component, which handles at least one in message queue
Message, and the result for handling message is sent to other business processing components, it is continued with triggering other business processing components
Message, to drive service finishing service request.
However, when some business processing component blocks, it may cause other business processing components that can not continue work
Make, to influence the progress of service request.
Invention content
This application provides a kind of occlusion detection method, apparatus and storage medium for operation system, can solve by
In that can not determine whether business processing component blocks, caused when business processing component blocks, processing business is asked
The slower problem of the progress asked.The application provides the following technical solutions:
In a first aspect, a kind of occlusion detection method for operation system is provided, the method includes:
Interruption detection request is sent to business processing component, the interruption detection request is for detecting the business processing group
Whether part blocks;
Detect whether to receive asking the interruption detection for the business processing component feedback in preset duration
Response message;
When not receiving the response message in the preset duration, determine that the business processing component blocks.
Optionally, the method further includes:
Whether the number that detection sends the interruption detection request reaches preset times;
When reaching the preset times, and not receiving the response message in the preset duration, the industry is determined
Business processing component blocks.
Optionally, after the determination business processing component blocks, further include:
Obtain the Message Processing record of the business processing component record, Message Processing record includes at least one disappearing
The processing of breath records;
The choke point of the business processing component is determined according to Message Processing record.
Optionally, the choke point that the business processing component is determined according to Message Processing record, including:
Detecting the Message Processing record, whether the processing including non-record end processing time records;
When processing of the Message Processing record including non-record end processing time records, the processing record is determined
Corresponding message is the choke point.
Optionally, whether the detection Message Processing record includes not recording the processing of processing end time to record it
Afterwards, further include:
When Message Processing record does not include the processing record for not recording the processing end time, by the Message Processing
The preceding n items processing of the last item processing record and described the last item processing record in record records corresponding message and is determined as
The choke point, the n are positive integer.
Optionally, before the transmission interruption detection request to business processing component, further include:
The registration request that the business processing component is sent is received, the registration request is for asking to the business processing
The blocked state of component is monitored, the registration request include at least the business processing component component mark and it is described pre-
If duration;
Record the correspondence between the component mark and the preset duration.
Optionally, after the registration request for receiving the business processing component transmission, further include:
The cancel register request of the business processing component transmission is received, the cancel register request is for asking cancellation pair
The blocked state of the business processing component is monitored, and the cancel register request includes at least the component and identifies;
The correspondence is deleted according to cancel register request.
Second aspect, provides a kind of choke detection device for operation system, and described device includes:
Request sending module, for sending interruption detection request to business processing component, the interruption detection request is used for
Detect whether the business processing component blocks;
Response receiving module, for detect whether to receive in preset duration the business processing component feedback to institute
State the response message of interruption detection request;
Blocking determining module, when for not receiving the response message in the preset duration, determining the business
Processing component blocks.
Optionally, described device further includes:
Number detection module sends whether the number that the interruption detection is asked reaches preset times for detecting;
The obstruction determining module is additionally operable to reaching the preset times, and is not received in the preset duration
When the response message, determine that the business processing component blocks.
Optionally, described device further includes:
Acquisition module is recorded, for after determining that the business processing component blocks, obtaining the business processing
The Message Processing of component record records, and the Message Processing record includes the processing record of at least one message;
Choke point determining module, the choke point for determining the business processing component according to Message Processing record.
Optionally, the choke point determining module, including:
End time detection unit, for detecting whether the Message Processing record includes non-record end processing time
Processing record;
Choke point determination unit, for being recorded in processing of the Message Processing record including non-record end processing time
When, it is the choke point to determine that the processing records corresponding message.
Optionally, the choke point determination unit, is additionally operable to:
When Message Processing record does not include the processing record for not recording the processing end time, by the Message Processing
The preceding n items processing of the last item processing record and described the last item processing record in record records corresponding message and is determined as
The choke point, the n are positive integer.
Optionally, described device further includes:
Registration request receiving module, for before sending interruption detection request to business processing component, receiving the industry
The registration request that business processing component is sent, the registration request are used to ask to carry out the blocked state of the business processing component
Monitoring, the registration request include at least the component mark of the business processing component and the preset duration;
Correspondence logging modle, for recording the correspondence between the component mark and the preset duration.
Optionally, described device further includes:
Cancellation request receiving module, for after receiving the registration request that the business processing component is sent, receiving institute
The cancel register request of business processing component transmission is stated, the cancel register request is for asking to cancel to the business processing group
The blocked state of part is monitored, and the cancel register request includes at least the component and identifies;
Correspondence removing module, for deleting the correspondence according to cancel register request.
The third aspect, provides a kind of choke detection device for operation system, and described device includes processor and storage
Device;It has program stored therein in the memory, described program is loaded by the processor and executed to realize described in first aspect
Occlusion detection method for operation system.
Fourth aspect provides a kind of computer readable storage medium, has program stored therein in the storage medium, described program
It is loaded by the processor and is executed to realize the occlusion detection method for operation system described in first aspect.
The advantageous effect of the application is:By sending interruption detection request to business processing component, and in preset duration
When not receiving the response message of business processing component transmission inside, determine that business processing component blocks;It can solve nothing
Method determines whether business processing component blocks, the problem for causing service request processing progress slower;Due to being hindered by sending
Plug probe requests thereby can determine whether business processing component blocks in time, in this way, business processing group can be found in time
The exception of part, to be adjusted to business processing component, it is thus possible to improve the processing progress of service request.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application,
And can be implemented in accordance with the contents of the specification, below with the preferred embodiment of the application and coordinate attached drawing be described in detail as after.
Description of the drawings
Fig. 1 is the structural schematic diagram for the occlusion detection system for operation system that the application one embodiment provides;
Fig. 2 is the flow chart for the occlusion detection method for operation system that the application one embodiment provides;
Fig. 3 is the flow chart of the occlusion detection method for operation system of the application another embodiment offer;
Fig. 4 is the flow chart of the occlusion detection method for operation system of the application another embodiment offer;
Fig. 5 is the block diagram for the choke detection device for operation system that the application one embodiment provides;
Fig. 6 is the block diagram for the choke detection device for operation system that the application one embodiment provides.
Specific implementation mode
With reference to the accompanying drawings and examples, the specific implementation mode of the application is described in further detail.Implement below
Example is not limited to scope of the present application for illustrating the application.
Fig. 1 is the structural schematic diagram for the occlusion detection system for operation system that the application one embodiment provides, such as
Shown in Fig. 1, which includes at least:Block monitor component 110 and at least one business processing component 120.
Obstruction monitor component 110 can be provided in the software blocked in monitoring device, hardware or software and hardware combining
Component.Wherein, obstruction monitoring device can be terminal, such as:Mobile phone, hand-held computer, wearable is set desktop computer
It is standby etc.;Alternatively, can also be server, the present embodiment is not construed as limiting this.
Block the case where monitor component 110 handles message for monitoring business processing component 120.Schematically, obstruction prison
It controls component 110 and sends interruption detection request to business processing component 120;It detects whether to receive business processing in preset duration
The response message to interruption detection request that component 120 is fed back;When not receiving response message in preset duration, business is determined
Processing component blocks.
Wherein, interruption detection request is for detecting whether business processing component blocks.
Optionally, business processing component 110 communicates with obstruction monitor component 110 and is connected in a wired or wireless manner.Show
Meaning property, pass through interprocess communication (Inter-Process between business processing component 110 and obstruction monitor component 110
Communication, IPC) communication be connected.
Business processing component 110 can be provided in software in business processing device, hardware or software and hardware combining
Component.Wherein, business processing device can be terminal, such as:Mobile phone, hand-held computer, wearable is set desktop computer
It is standby etc.;Alternatively, can also be server, the present embodiment is not construed as limiting this.
Business processing component 110 is used to handle the message in corresponding message queue, is additionally operable to receiving obstruction monitoring
When the interruption detection request that component 110 is sent, the response message asked the interruption detection is fed back to obstruction monitor component 110.
Optionally, blocking monitor component 110 and business processing component 120 can be arranged in same equipment, such as:Setting
In same server (at this point, obstruction monitoring device and business processing device are same device);Alternatively, can also be arranged not
With in equipment, such as:Obstruction monitor component 110 is arranged in server A, business processing component 120 is arranged in server B
(at this point, obstruction monitoring device and business processing device are different devices), the present embodiment is not construed as limiting this.
It is illustrated for blocking monitor component 110 and the setting of business processing component 120 in same equipment in Fig. 1.
At this point, obstruction monitor component 110 and business processing component 120 can use same shared memory, deposited in the shared memory
Contain Message Processing record, obstruction of the Message Processing record for determining business processing component 120 for obstruction monitor component 110
Point.
It should be added that the application is only illustrated with blocking the quantity of monitor component 110 for one, in reality
When realization, the quantity of obstruction monitor component 110 can also be multiple, and the present embodiment is not construed as limiting this.
Fig. 2 is the flow chart for the occlusion detection method for operation system that the application one embodiment provides, this implementation
Example is applied in this method in the occlusion detection system shown in FIG. 1 for operation system, and the executive agent of each step
To be illustrated for the obstruction monitor component 110 in the system.This method includes at least following steps:
Step 201, interruption detection request is sent to business processing component.
Interruption detection is asked for detecting whether business processing component blocks.
Optionally, after obstruction monitor component sends interruption detection request to business processing component, the business processing component
It can ask corresponding message that message queue is added the interruption detection.
Schematically, the message body of interruption detection request is sky.
Step 202, detect whether to receive asking interruption detection for business processing component feedback in preset duration
Response message.
Optionally, when obstruction monitor component receives response message in preset duration, business processing component is determined not
Block, executes step 201 again;Alternatively, flow terminates.Obstruction monitor component does not receive response in preset duration and disappears
When breath, step 203 is executed.
Optionally, response message includes but not limited to the component mark of business processing component.Wherein, component mark can be
The title of business processing component, the number etc. of business processing component, the present embodiment are not construed as limiting the type of component mark.When
So, response message can also include other contents, such as:The history message quantity of business processing component, business processing component
Load capacity etc..
Step 203, when not receiving response message in preset duration, determine that business processing component blocks.
In conclusion the occlusion detection method provided in this embodiment for operation system, by business processing component
When sending interruption detection request, and not receiving in preset duration the response message of business processing component transmission, industry is determined
Business processing component blocks;It can solve determine whether business processing component blocks, service request is caused to handle
The slower problem of progress;Due to that can determine whether business processing component hinders in time by sending interruption detection request
Plug, in this way, the exception of business processing component can be found in time, to be adjusted to business processing component, therefore, Ke Yiti
The processing progress of high service request.
Optionally, it is based on each embodiment of the method, after step 201, obstruction monitor component can also detect transmission resistance
Whether the number of plug probe requests thereby reaches preset times;Reaching preset times, and is not receiving response in preset duration and disappear
When breath, determine that business processing component blocks;In not up to preset times, step 201 is executed again, at this point, obstruction prison
It controls inter-module and sends interruption detection request again after preset duration.
Wherein, preset times can be that business processing component is sent;Alternatively, can also be to prestore in obstruction monitor component
, the present embodiment is not construed as limiting this.
Optionally, obstruction monitor component can detect before step 202 sends whether the number that interruption detection is asked reaches
To preset times;Send whether the number that interruption detection is asked reaches default time alternatively, can also detect after step 202
Number;Send whether the number that interruption detection is asked reaches preset times, this reality alternatively, can also be detected when executing step 202
Apply example to obstruction monitor component execute step 202 and detection send interruption detection request number whether reach preset times it
Between execution sequence be construed as limiting.
Since the quantity of the message of business processing component processing may be more, the business processing component is caused temporarily to have little time
It handles interruption detection and asks corresponding message, therefore, in the present embodiment, obstruction monitor component can be visited in the obstruction repeatedly sent
It when survey request does not receive feedback, just determines that business processing component blocks, obstruction monitor component can be improved and determine business
The accuracy that processing component blocks.
Optionally, it is based on each embodiment of the method, after step 203, obstruction monitor component can also determine at business
The choke point that reason component blocks.Schematically, after determining that business processing component blocks, obstruction monitor component obtains
The Message Processing of business processing component record is taken to record;The choke point for determining business processing component is recorded according to Message Processing.
During business processing component handles message, Message Processing can be written in the time that ends processing for handling the message
In record, after obstruction monitor component determines that business processing component blocks, Message Processing record can be read, according to
Message Processing record determines the choke point of business processing component.
Optionally, Message Processing record can be stored in business processing component and block the shared memory of monitor component
In.
Wherein, Message Processing record includes the processing record of at least one message.Optionally, processing record, which includes at least, disappears
The mark of breath and the message end processing the time.Certainly, processing record can also include other contents, such as:Message is opened
Begin processing time etc., the present embodiment is not construed as limiting this.
Schematically, obstruction monitor component records the choke point for determining business processing component according to Message Processing, including:Inspection
Surveying Message Processing record, whether the processing including non-record end processing time records;Include not recording knot in Message Processing record
When the processing record of beam processing time, it is choke point to determine that processing records corresponding message;Do not include not in Message Processing record
When the processing record of record processing end time, the last item processing record during Message Processing is recorded and the last item processing
The preceding n items processing of record records corresponding message and is determined as choke point, and n is positive integer.
Due to when processing of the Message Processing record including non-record end processing time records, illustrating business processing component
The processing is being handled always and is recording corresponding message, at this point, the message is choke point.When Message Processing record does not include not remembering
When record ends processing the processing record of time, illustrate that the quantity of the message of business processing component processing is excessive, at this point, by last
The preceding n items processing of item processing record and the last item processing record records corresponding message and is determined as choke point.
In the present embodiment, by determining that the business processing component occurs after determining that obstruction occurs for business processing component
The choke point of obstruction can improve the efficiency of the choke point of determining business processing component, to improve reconditioning work processing component
Abnormal efficiency.
Optionally, it is based on each embodiment of the method, before step 201, business processing component can also be monitored in obstruction
It is registered in component.
Fig. 3 is the flow chart of the occlusion detection method for operation system of the application another embodiment offer, this reality
Example is applied to illustrate so that this method is applied in the occlusion detection system shown in FIG. 1 for operation system as an example.This method
Including at least following steps:
Step 301, business processing component sends registration request to obstruction monitor component.
Business processing component generates registration request when needing the congestion situations by obstruction monitor component monitoring message, and will
The registration request is sent to obstruction monitor component.
Wherein, registration request is for asking obstruction monitor component to be monitored the blocked state of business processing component.
Optionally, registration request includes at least the component mark and preset duration of business processing component.Optionally, registration is asked
It can also includes preset times to ask.
Schematically, component mark and preset duration are stored in business processing component, which can be exploitation
Personnel's setting;Alternatively, can also be what miscellaneous equipment was sent, the present embodiment is not construed as limiting the set-up mode of preset duration.
Schematically, when in registration request further including preset times, preset times are also stored in business processing component, it should
Preset times can be that developer is arranged;Alternatively, can also be what miscellaneous equipment was sent, the present embodiment is not to preset times
Set-up mode be construed as limiting.
Step 302, obstruction monitor component receives the registration request that business processing component is sent.
Optionally, after obstruction monitor component receives registration request, it can also feed back registration to the business processing component and answer
It answers.Message content in registration reply can be identical as the message content in registration request, alternatively, in the message in registration reply
Appearance can also be different from the message content in registration request, and the present embodiment is not construed as limiting this.
Step 303, the correspondence between obstruction monitor component record component mark and preset duration.
After obstruction monitor component receives the registration request of business processing component transmission, when component registration identifies and is default
Correspondence between length opens the obstruction monitoring function to the business processing component.
Optionally, the different corresponding preset durations of business processing component can be different.
Optionally, when in registration request further including preset times, obstruction monitor component record component mark, preset duration
Correspondence between preset times.Optionally, the different corresponding preset times of business processing component can be different.
Step 304, obstruction monitor component sends interruption detection request to business processing component.
The associated description of this step refers to step 201, and therefore not to repeat here for the present embodiment.
Step 305, obstruction monitor component detect whether to receive in preset duration business processing component feedback to resistance
Fill in the response message of probe requests thereby.
Optionally, the associated description of this step refers to step 202, and therefore not to repeat here for the present embodiment.
Step 306, the detection of obstruction monitor component sends whether the number that interruption detection is asked reaches preset times.It is optional
Ground, step 306 can execute after step 305;Alternatively, can also be executed before step 305;Alternatively, can also be with step
Rapid 305 are performed simultaneously, and the present embodiment is not construed as limiting this.
Optionally, obstruction monitor component receives the response message of business processing component feedback in preset duration, alternatively,
When the number for sending interruption detection request is not up to preset times, step 304 is executed again;Sending interruption detection request
Number reaches preset times, and do not received in preset duration business processing component feedback response message when, execute step
307。
Step 307, determine that business processing component blocks.
In conclusion then the present embodiment, is hindered by sending registration request from business processing component to obstruction monitor component
Plug monitor component is monitored function according to registration request unlatching to the blocked state of business processing component;So that obstruction monitoring
Component is without being all monitored all business processing components, it is only necessary to have sent the business processing component of registration request into
Row monitoring;The load of obstruction monitor component can be mitigated.
Optionally, after step 303, if business processing component need not block monitor component monitoring blocked state,
Cancel register request can be sent to the business processing component.
Fig. 4 is the flow chart of the occlusion detection method for operation system of the application another embodiment offer, this reality
Example is applied to illustrate so that this method is applied in the occlusion detection system shown in FIG. 1 for operation system as an example.In step
After 303, this method includes at least following steps:
Step 401, business processing component sends cancel register request to obstruction monitor component.
Wherein, cancel register request is monitored the blocked state of business processing component for asking to cancel.
Optionally, cancel register request includes at least component and identifies.
Step 402, obstruction monitor component receives the cancel register request that business processing component is sent.
Optionally, after obstruction monitor component receives cancel register request, it can also feed back and take to the business processing component
Disappear registration reply.Message content during message content in cancel register response can be asked with cancel register is identical, alternatively, taking
Message content during the message content to disappear in registration reply can also be asked from cancel register is different, and the present embodiment does not limit this
It is fixed.
Step 403, obstruction monitor component asks to delete the correspondence between component mark and preset duration according to cancel register
Relationship.
After obstruction monitor component receives the cancel register request of business processing component transmission, component mark and pre- is deleted
If the correspondence between duration, cancel the obstruction monitoring function to the business processing component.
Optionally, when in registration request further including preset times, obstruction monitor component deletes component mark, preset duration
Correspondence between preset times.
In conclusion the present embodiment is asked by sending cancel register to obstruction monitor component from business processing component, so
Afterwards, obstruction monitor component is cancelled according to cancel register request is monitored function to the blocked state of business processing component;Make
Monitor component must be blocked without being all monitored to all business processing components, it is only necessary to registered business processing component
It is monitored;The load of obstruction monitor component can be mitigated.
Fig. 5 is the block diagram for the choke detection device for operation system that the application one embodiment provides, the present embodiment
It is carried out by taking the management server 120 that this device is applied in the occlusion detection system shown in FIG. 1 for operation system as an example
Explanation.The device includes at least following module:Request sending module 510, response receiving module 520 and obstruction determining module
530。
Request sending module 510, for sending interruption detection request to business processing component, the interruption detection request is used
Whether block in the detection business processing component;
Response receiving module 520 receives the business processing component feedback for being detected whether in preset duration
To the response message of interruption detection request;
Blocking determining module 530, when for not receiving the response message in the preset duration, determining the industry
Business processing component blocks.
Optionally, described device further includes:
Number detection module sends whether the number that the interruption detection is asked reaches preset times for detecting;
The obstruction determining module 530 is additionally operable to reaching the preset times, and is not received in the preset duration
When the response message, determine that the business processing component blocks.
Optionally, described device further includes:Record acquisition module and choke point determining module.
Acquisition module is recorded, for after determining that the business processing component blocks, obtaining the business processing
The Message Processing of component record records, and the Message Processing record includes the processing record of at least one message;
Choke point determining module, the choke point for determining the business processing component according to Message Processing record.
Optionally, the choke point determining module, including:End time detection unit and choke point determination unit.
End time detection unit, for detecting whether the Message Processing record includes non-record end processing time
Processing record;
Choke point determination unit, for being recorded in processing of the Message Processing record including non-record end processing time
When, it is the choke point to determine that the processing records corresponding message.
Optionally, the choke point determination unit, is additionally operable to:
When Message Processing record does not include the processing record for not recording the processing end time, by the Message Processing
The preceding n items processing of the last item processing record and described the last item processing record in record records corresponding message and is determined as
The choke point, the n are positive integer.
Optionally, described device further includes:Registration request receiving module and correspondence logging modle.
Registration request receiving module, for before sending interruption detection request to business processing component, receiving the industry
The registration request that business processing component is sent, the registration request are used to ask to carry out the blocked state of the business processing component
Monitoring, the registration request include at least the component mark of the business processing component and the preset duration;
Correspondence logging modle, for recording the correspondence between the component mark and the preset duration.
Optionally, described device further includes:Cancellation request receiving module and correspondence removing module.
Cancellation request receiving module, for after receiving the registration request that the business processing component is sent, receiving institute
The cancel register request of business processing component transmission is stated, the cancel register request is for asking to cancel to the business processing group
The blocked state of part is monitored, and the cancel register request includes at least the component and identifies;
Correspondence removing module, for deleting the correspondence according to cancel register request.
Correlative detail refers to above method embodiment.
It should be noted that:The choke detection device for operation system provided in above-described embodiment is carrying out being used for industry
It, only the example of the division of the above functional modules, can be according to need in practical application when the occlusion detection of business system
It wants and completes above-mentioned function distribution by different function modules, i.e., by the internal junction for the choke detection device of operation system
Structure is divided into different function modules, to complete all or part of the functions described above.In addition, what above-described embodiment provided
Choke detection device for operation system belongs to same design with the occlusion detection embodiment of the method for operation system, has
Body realizes that process refers to embodiment of the method, and which is not described herein again.
Fig. 6 is the block diagram for the choke detection device for operation system that the application one embodiment provides, which can
Be comprising the device for blocking monitor component 110 in the occlusion detection system shown in FIG. 1 for operation system, such as:Intelligence
It can mobile phone, tablet computer, laptop, desktop computer or server.Choke detection device for operation system is also possible to
It is referred to as user equipment, portable terminal, laptop terminal, terminal console, control terminal etc., the present embodiment does not limit this
It is fixed.The device includes at least processor 610 and memory 620.
Processor 601 may include one or more processing cores, such as:4 core processors, 6 core processors etc..Place
DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- may be used in reason device 601
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 601 can also include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 601 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 601 can also wrap
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processors are for handling related machine learning
Calculating operation.
Memory 602 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 602 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 602 can
Storage medium is read for storing at least one instruction, at least one instruction is for performed to realize this Shen by processor 601
Please in embodiment of the method provide the occlusion detection method for operation system.
In some embodiments, also optional for the choke detection device of operation system to include:Peripheral device interface and
At least one peripheral equipment.Bus or signal wire phase can be passed through between processor 601, memory 602 and peripheral device interface
Even.Each peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface.Schematically, periphery is set
It is standby to include but not limited to:Radio circuit, touch display screen, voicefrequency circuit and power supply etc..
Certainly, the choke detection device for being used for operation system can also include fewer or more components, the present embodiment pair
This is not construed as limiting.
Optionally, the application is also provided with a kind of computer readable storage medium, in the computer readable storage medium
It has program stored therein, described program is loaded by processor and executed to realize that above method embodiment provides for operation system
Occlusion detection method.
Optionally, the application is also provided with a kind of computer product, which includes computer-readable storage medium
Matter has program stored therein in the computer readable storage medium, and described program is loaded by processor and executed to realize above-mentioned side
The occlusion detection method for operation system that method embodiment provides.
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, it is all considered to be the range of this specification record.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the protection domain of the application patent should be determined by the appended claims.
Claims (10)
1. a kind of occlusion detection method for operation system, which is characterized in that the method includes:
Interruption detection request is sent to business processing component, the interruption detection request is for detecting the business processing component
It is no to block;
It detects whether to receive the response for asking the interruption detection that the business processing component is fed back in preset duration
Message;
When not receiving the response message in the preset duration, determine that the business processing component blocks.
2. the method as described in claim 1, which is characterized in that the method further includes:
Whether the number that detection sends the interruption detection request reaches preset times;
When reaching the preset times, and the response message not being received in the preset duration, the business is determined
Processing component blocks.
3. the method as described in claim 1, which is characterized in that after the determination business processing component blocks,
Further include:
The Message Processing record of the business processing component record is obtained, the Message Processing record includes at least one message
Processing record;
The choke point of the business processing component is determined according to Message Processing record.
4. method as claimed in claim 3, which is characterized in that described to be determined at the business according to Message Processing record
The choke point of component is managed, including:
Detecting the Message Processing record, whether the processing including non-record end processing time records;
When processing of the Message Processing record including non-record end processing time records, determine that the processing record corresponds to
Message be the choke point.
5. method as claimed in claim 4, which is characterized in that whether the detection Message Processing record includes not recording
After the processing record for handling the end time, further include:
When Message Processing record does not include the processing record for not recording the processing end time, the Message Processing is recorded
In the last item processing record and described the last item processing record the processing of preceding n items record corresponding message be determined as it is described
Choke point, the n are positive integer.
6. such as method described in any one of claim 1 to 5, which is characterized in that described to send obstruction spy to business processing component
It surveys before request, further includes:
The registration request that the business processing component is sent is received, the registration request is for asking to the business processing component
Blocked state be monitored, the registration request include at least the business processing component component mark and it is described default when
It is long;
Record the correspondence between the component mark and the preset duration.
7. method as claimed in claim 6, which is characterized in that the registration request for receiving the business processing component and sending
Later, further include:
The cancel register request that the business processing component is sent is received, the cancel register request is for asking to cancel to described
The blocked state of business processing component is monitored, and the cancel register request includes at least the component and identifies;
The correspondence is deleted according to cancel register request.
8. a kind of choke detection device for operation system, which is characterized in that described device includes:
Request sending module, for sending interruption detection request to business processing component, the interruption detection request is for detecting
Whether the business processing component blocks;
Response receiving module, for detect whether to receive in preset duration the business processing component feedback to the resistance
Fill in the response message of probe requests thereby;
Blocking determining module, when for not receiving the response message in the preset duration, determining the business processing
Component blocks.
9. a kind of choke detection device for operation system, which is characterized in that described device includes processor and memory;Institute
It states in memory and has program stored therein, described program is loaded by the processor and executed to realize such as any one of claim 1 to 7
The occlusion detection method for operation system.
10. a kind of computer readable storage medium, which is characterized in that it has program stored therein in the storage medium, described program quilt
For realizing the occlusion detection method as described in any one of claim 1 to 7 for operation system when processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810459426.1A CN108768768B (en) | 2018-05-15 | 2018-05-15 | Blocking detection method and device for business system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810459426.1A CN108768768B (en) | 2018-05-15 | 2018-05-15 | Blocking detection method and device for business system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108768768A true CN108768768A (en) | 2018-11-06 |
CN108768768B CN108768768B (en) | 2020-12-01 |
Family
ID=64006839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810459426.1A Active CN108768768B (en) | 2018-05-15 | 2018-05-15 | Blocking detection method and device for business system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108768768B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113438520A (en) * | 2021-06-29 | 2021-09-24 | 北京奇艺世纪科技有限公司 | Data processing method, device and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101187892A (en) * | 2006-11-17 | 2008-05-28 | 上海高性能集成电路设计中心 | Device for real-time monitoring inside of processor |
CN102915292A (en) * | 2011-08-02 | 2013-02-06 | 北京大学 | Communication method based on multi-core processor and detection method and control method thereof |
CN103414916A (en) * | 2013-08-30 | 2013-11-27 | 苏州科达科技股份有限公司 | Fault diagnosis system and method |
CN106453564A (en) * | 2016-10-18 | 2017-02-22 | 北京京东尚科信息技术有限公司 | Elastic cloud distributed massive request processing method, device and system |
CN106815063A (en) * | 2017-01-11 | 2017-06-09 | 福建升腾资讯有限公司 | A kind of control platform of the automation equipment of many exchange channels |
US20170302553A1 (en) * | 2016-04-18 | 2017-10-19 | Nyansa, Inc. | System and method for client network congestion detection, analysis, and management |
CN107590015A (en) * | 2017-09-11 | 2018-01-16 | 北京京东尚科信息技术有限公司 | The method and apparatus for monitoring the obstruction of main thread |
-
2018
- 2018-05-15 CN CN201810459426.1A patent/CN108768768B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101187892A (en) * | 2006-11-17 | 2008-05-28 | 上海高性能集成电路设计中心 | Device for real-time monitoring inside of processor |
CN102915292A (en) * | 2011-08-02 | 2013-02-06 | 北京大学 | Communication method based on multi-core processor and detection method and control method thereof |
CN103414916A (en) * | 2013-08-30 | 2013-11-27 | 苏州科达科技股份有限公司 | Fault diagnosis system and method |
US20170302553A1 (en) * | 2016-04-18 | 2017-10-19 | Nyansa, Inc. | System and method for client network congestion detection, analysis, and management |
CN106453564A (en) * | 2016-10-18 | 2017-02-22 | 北京京东尚科信息技术有限公司 | Elastic cloud distributed massive request processing method, device and system |
CN106815063A (en) * | 2017-01-11 | 2017-06-09 | 福建升腾资讯有限公司 | A kind of control platform of the automation equipment of many exchange channels |
CN107590015A (en) * | 2017-09-11 | 2018-01-16 | 北京京东尚科信息技术有限公司 | The method and apparatus for monitoring the obstruction of main thread |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113438520A (en) * | 2021-06-29 | 2021-09-24 | 北京奇艺世纪科技有限公司 | Data processing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN108768768B (en) | 2020-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109714350A (en) | The authority control method and device of application program, storage medium, computer equipment | |
CN107430549A (en) | Based on united memory management | |
CN106548261A (en) | A kind of Business Process Control method, device and electronic equipment | |
CN106980537B (en) | The method and system of cloud host is deleted in cloud computing environment | |
WO2019214109A1 (en) | Monitoring device and method for testing process, and computer readable storage medium | |
CN108769083A (en) | Login method, apparatus and system based on distributed server | |
CN106302595A (en) | A kind of method and apparatus that server is carried out physical examination | |
CN107329901A (en) | Packet grasping means, terminal, server and storage medium | |
CN107613529A (en) | Message treatment method and base station | |
CN108170552A (en) | A kind of method, apparatus and equipment for capturing Dump files | |
CN109388485A (en) | A kind of processing method, device, equipment and the storage medium of task execution thread | |
CN107102950A (en) | A kind of applied program testing method and device | |
CN116263694A (en) | Warehouse cluster deployment method and device and computing equipment | |
CN108519883A (en) | Parameter amending method, device, terminal device and storage medium | |
US20190391803A1 (en) | Application hot deploy method to guarentee application version consistency and computer program stored in computer readable medium therfor | |
CN106845215A (en) | Based on safety protecting method and device under virtualized environment | |
CN109726119A (en) | Test scene creation method, application method, device, client and server | |
CN108768768A (en) | Occlusion detection method, apparatus and storage medium for operation system | |
CN108615077B (en) | Cache optimization method and device applied to deep learning network | |
CN108683550A (en) | A kind of call method and relevant device of configuration interface | |
CN108304313A (en) | It is a kind of for the device of data test, client and method | |
CN112445514B (en) | Code review method and related products | |
CN109995863A (en) | Dynamic resource downloading method and device, electronic equipment and storage medium | |
US20210303414A1 (en) | Achieving activity centric computing using portable containers | |
CN112764729B (en) | Application software development method, device, computer equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |