CN102402459B - Method and device for summarizing performance data of network management system - Google Patents

Method and device for summarizing performance data of network management system Download PDF

Info

Publication number
CN102402459B
CN102402459B CN 201010279843 CN201010279843A CN102402459B CN 102402459 B CN102402459 B CN 102402459B CN 201010279843 CN201010279843 CN 201010279843 CN 201010279843 A CN201010279843 A CN 201010279843A CN 102402459 B CN102402459 B CN 102402459B
Authority
CN
China
Prior art keywords
message queue
performance data
task
newly
thread
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.)
Expired - Fee Related
Application number
CN 201010279843
Other languages
Chinese (zh)
Other versions
CN102402459A (en
Inventor
熊纪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 201010279843 priority Critical patent/CN102402459B/en
Priority to PCT/CN2010/080112 priority patent/WO2012031439A1/en
Publication of CN102402459A publication Critical patent/CN102402459A/en
Application granted granted Critical
Publication of CN102402459B publication Critical patent/CN102402459B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a device for summarizing performance data of a network management system. The method comprises the following steps of: establishing a plurality of message queues, wherein each message queue comprises a performance data summarizing task; and establishing threads of the number does not exceed a preset value, and acquiring the message queues and executing the performance data summarizing tasks in the message queues by using the threads. By the method and the device for summarizing the performance data of the network management system, the message queues comprising the performance data summarizing tasks are established, and the number of the threads for executing the performance data summarizing tasks is limited, so that the network management system is prevented from being crashed due to concurrency of a large number of threads.

Description

The method and apparatus that the network management system performance data gathers
Technical field
The present invention relates to the communications field, specially refer to the method and apparatus that a kind of network management system performance data gathers.
Background technology
Performance management is one of critical function in the telecommunication network management, the purpose of performance management is that network, network element or equipment are carried out performance monitoring, gather relevant performance statistic, the validity of evaluating network and network element, the state of report telecommunication apparatus, and network enabled planning and network analysis.Usually network management system need gather performance data the deposit data for the different time granularity after collecting original performance data, as hour, day, week, month equigranular, in order to direct data extract is arranged during inquiry, improve system effectiveness.
The performance data method of summary is used parallel gathering usually, and traditional parallel method of summary is after network management system collects a collection of performance data, just sets up a collection of thread this performance data is gathered.There is following defective in the above-mentioned parallel method that gathers: because characteristics such as in large scale, the high concurrency that communication network has, high real-times, when a large amount of performance datas arrive, network management system need be set up a large amount of threads and gather, and very easily generation walks abreast storm and causes the network management system collapse.
Summary of the invention
The method and apparatus of fundamental purpose of the present invention for providing a kind of network management system performance data to gather, comprise that by foundation performance data gathers the message queue of task, and limit the number of threads that the execution performance data gather task, prevented the network management system collapse that causes because a large amount of threads are concurrent.
The present invention proposes the method that a kind of network management system performance data gathers, and comprising:
Set up a plurality of message queues, described message queue comprises that performance data gathers task;
Set up the thread that quantity is no more than a preset value, described thread obtains message queue, and carries out that performance data gathers task in the described message queue.
Preferably, describedly set up a plurality of message queues and comprise:
Gather the classification of task classifies to message queue by performance data;
Newly-increased performance data is gathered task adds in the corresponding message queue according to classification.
Preferably, describedly newly-increased performance data is gathered task add in the corresponding message queue according to classification and comprise:
Judge that newly-increased performance data gathers the task classification;
When the message queue of classification is discontented under newly-increased performance data gathers task, adds newly-increased performance data and gather task to this message queue; Or,
When the message queue of classification has been expired under newly-increased performance data gathers task, stop to join the team, wait for that this message queue takes the newly-built message queue in back away, and add newly-increased performance data and gather task to newly-built message queue; Or,
When the message queue of classification does not exist under newly-increased performance data gathers task, a newly-built message queue, and add newly-increased performance data and gather task to newly-built message queue.
Preferably, carry out described set up the thread that quantity is no more than a preset value after, comprising:
Whether regularly inquire about described message queue full;
According to whether having full message queue, adjust quantity and/or the stand-by period of described thread, the described stand-by period is the time interval that thread obtains message queue.
Preferably, whether described basis exists full message queue, and quantity and/or the stand-by period of adjusting thread comprise:
When having full message queue, reduce the stand-by period of described thread, when the stand-by period of described thread reached default minimum value, a newly-built thread reached described preset value up to number of threads;
When not having full message queue, increase the stand-by period of described thread, when the stand-by period of described thread reaches default maximal value, finish described thread.
The present invention also proposes the device that a kind of network management system performance data gathers, and comprising:
Set up the formation module, be used for setting up a plurality of message queues, described message queue comprises that performance data gathers task;
Set up the thread module, be used for setting up the thread that quantity is no more than a preset value, described thread obtains message queue, is used for carrying out described message queue performance data and gathers task.
Preferably, the described formation module of setting up comprises:
Taxon is classified to message queue for the classification that gathers task by performance data;
Add TU task unit, be used for that newly-increased performance data is gathered task and add corresponding message queue to according to classification.
Preferably, described interpolation TU task unit comprises:
Judgment sub-unit is used for judging that newly-increased performance data gathers the classification of task;
First adds subelement, when discontented for the message queue of classification under newly-increased performance data gathers task, add the performance data that increases newly and gathers task to this message queue;
Second adds subelement, when the message queue that is used for classification under newly-increased performance data gathers task has been expired, stops to join the team, and waits for that this message queue takes the newly-built message queue in back away, and adds newly-increased performance data and gather task and arrive newly-built message queue;
The 3rd adds subelement, when the message queue that is used for classification under newly-increased performance data gathers task does not exist, and a newly-built message queue, and add newly-increased performance data and gather task and arrive newly-built message queue.
Preferably, the device that gathers of described network management system performance data also comprises:
Enquiry module, whether be used for regularly inquiring about described message queue full;
Adjust the thread module, be used for adjusting quantity and/or the stand-by period of described thread according to whether having full message queue, the described stand-by period is the time interval that thread obtains message queue.
Preferably, described adjustment thread module comprises:
First adjustment unit is used for reducing the stand-by period of described thread when the full message queue of existence, and when the stand-by period of described thread reached default minimum value, a newly-built thread reached described preset value up to number of threads;
Second adjustment unit is used for increasing the stand-by period of described thread when not having full message queue, when the stand-by period of described thread reaches default maximal value, finishes described thread.
The method and apparatus that a kind of network management system performance data provided by the invention gathers is at first set up a plurality of performance datas that comprise and is gathered the message queue of task, sets up the thread execution performance data that is no more than a preset value again and gathers task.Limit the number of threads of concurrent working, prevented the network management system collapse that causes because a large amount of threads are concurrent.
Description of drawings
The schematic flow sheet of method one embodiment that Fig. 1 gathers for network management system performance data of the present invention;
Set up the schematic flow sheet of message queue among method one embodiment that Fig. 2 gathers for network management system performance data of the present invention;
Add newly-increased performance data among method one embodiment that Fig. 3 gathers for network management system performance data of the present invention and gather task to the schematic flow sheet of message queue;
The schematic flow sheet of the another embodiment of method that Fig. 4 gathers for network management system performance data of the present invention;
Adjust the schematic flow sheet of thread among the another embodiment of method that Fig. 5 gathers for network management system performance data of the present invention;
The structural representation of device one embodiment that Fig. 6 gathers for network management system performance data of the present invention;
Set up the structural representation of formation module among device one embodiment that Fig. 7 gathers for network management system performance data of the present invention;
Add the structural representation of TU task unit among device one embodiment that Fig. 8 gathers for network management system performance data of the present invention;
The structural representation of the another embodiment of device that Fig. 9 gathers for network management system performance data of the present invention;
Adjust the structural representation of thread module among the another embodiment of device that Figure 10 gathers for network management system performance data of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
The method and apparatus that a kind of network management system performance data provided by the invention gathers is at first set up a plurality of performance datas that comprise and is gathered the message queue of task, sets up the thread execution performance data that is no more than a preset value again and gathers task.Limit the number of threads of concurrent working, prevented the network management system collapse that causes because a large amount of threads are concurrent.
With reference to Fig. 1, the method that a kind of network management system performance data of the present invention gathers is proposed, comprising:
Step S101 sets up a plurality of message queues, and message queue comprises that performance data gathers task.
Network management system is at first set up a plurality of message queues, and message queue comprises that performance data gathers task, and each performance data gathers the information that task comprises the performance data that network management system is gathered, for example the time of performance data and position etc.Be nonlinear between the message queue, the length of each message queue can be identical or different, can set in advance and adjust as required, gathers task with the performance data of holding some.
Step S102 sets up the thread that quantity is no more than a preset value, and thread obtains message queue, and carries out that performance data gathers task in this message queue.
Network system is then set up the thread that the execution performance data gather task, and the maximum quantity of thread is a preset value, and collapse appears in system when preventing that a large amount of threads are concurrent.When a plurality of thread, each thread works alone, each thread can regularly or obtain one or more pending message queue at random, pending message queue of a general thread single treatment, the performance data of carrying out successively in this message queue gathers task then, the all properties data gather task and are finished in this message queue, and last thread can be destroyed this message queue, continue to obtain next pending message queue again.The performance data of thread execution gathers task, mainly is with a plurality of performance data Macro or mass analysis of same granularity as one hour or one day, finishes summation, is averaging, asks maximum, asks function such as minimum.
As mentioned above, each thread can be according to one or more message queue of ability single treatment, and over-burden to prevent each thread, and simultaneously because the number of threads of concurrent working is a preset value, collapse appears in system in the time of can preventing that a large amount of threads are concurrent.The number of threads of above-mentioned concurrent working is that network management system sets in advance, and can adjust according to the network management system ability.
The method that a kind of network management system performance data provided by the invention gathers, comprise that by foundation performance data gathers the message queue of task, and limit the number of threads that the execution performance data gather the concurrent working of task, solved the network management system collapse that causes because a large amount of threads are concurrent.
With reference to Fig. 2, in one embodiment, step S101 can comprise:
Step S1011 gathers the classification of task message queue is classified by performance data.
Network management system can be classified by certain feature of performance data to message queue, and present embodiment is example with the measurement type of performance data, and message queue is classified.
Step S1012 gathers newly-increased performance data with task and adds in the corresponding message queue according to classification.
When network management system collects performance data, in the time of need gathering, newly-increased performance data is gathered task according to measuring the tail of the queue that type is inserted into corresponding message queue, wait for thread execution.
With reference to Fig. 3, step S1012 can comprise:
Step S1021 judges that newly-increased performance data gathers the task classification;
Step S1022 when the message queue of classification is discontented under newly-increased performance data gathers task, adds newly-increased performance data and gathers task to this message queue; Or,
Step S1023 when the message queue of classification has been expired under newly-increased performance data gathers task, stops to join the team, and waits for that this message queue takes the newly-built message queue in back away, and adds newly-increased performance data and gather task to newly-built message queue; Or,
Step S1024, when the message queue of classification does not exist under newly-increased performance data gathers task, a newly-built message queue, and add newly-increased performance data and gather task to newly-built message queue.
Network management system judges that newly-increased performance data gathers the classification of task, the performance data of for example measuring Type C S BasicMeasurement gathers task when arriving, message queue as correspondence is discontented, and this performance data is gathered the tail of the queue that task is inserted into corresponding message queue, waits for thread execution.
When the message queue of measuring Type C S Basic Measurement correspondence has been expired, the performance data that stops to increase newly gathers task and joins the team, after waiting for that thread takes out corresponding message queue, newly-built one to measure type be the message queue of CS Basic Measurement again, and will wait for and the measurement type of follow-up arrival is that the performance data of CSBasic Measurement gathers task and adds in the newly-built message queue.
When not having the message queue of measuring Type C S Basic Measurement correspondence, newly-built one to measure type be the message queue of CS Basic Measurement, is that the performance data of CS BasicMeasurement gathers task and adds in the newly-built message queue with the measurement type that arrives.
With reference to Fig. 4, the another embodiment of method that network management system performance data of the present invention gathers is proposed, in the above-described embodiments, after execution in step S102, also comprise:
Step S103, regularly whether the query messages formation is full.
Whether network management system can regularly be inquired about all message queues full.Network management system can realize this query function by a counter is set: when message queue is expired, counter adds 1, when thread takes out a full message queue, counter subtracts 1, network management system can regularly be obtained the counting of counter, and is non-0 as the counting of counter, and representative exists at least one message queue full, when counter is 0, just represented all message queues and be discontented with.Network management system also can be known to inquire about by each message queue being arranged full scale, or adopts other can realize that the query messages formation expired the mode of state.
Step S104 according to whether having full message queue, adjusts quantity and/or the stand-by period of thread, and the stand-by period is the time interval that thread obtains message queue.
When having full message queue, it is more to illustrate that pending performance data gathers task, network management system can corresponding minimizing thread stand-by period and/or increase the number of threads of concurrent working, gather task executions speed to accelerate performance data, the stand-by period of thread is the time interval that thread obtains message queue.When all message queues were all discontented, it was less illustrate that pending performance data gathers task, stand-by period that network management system can corresponding increase thread and/or reduce the number of threads of concurrent working, gathered task executions speed with the reduction performance data.
With reference to Fig. 5, step S104 can comprise:
Step S1041 when having full message queue, reduces the stand-by period of thread, and when the stand-by period of thread reached default minimum value, a newly-built thread reached preset value up to number of threads.
When having full message queue, it is more that the medium pending performance data of description messages formation gathers task, can take following mode to adjust quantity and/or the stand-by period of thread: during certain inquiry of network management system, there is full message queue, then reduce the stand-by period of thread in certain sequence, reduce the stand-by period 50ms of first thread during if any a plurality of thread, when inquiry next time, when still having full message queue, continue to reduce the stand-by period 50ms of first thread, when the stand-by period of first thread has reached minimum value, continuation is done as above to handle to second thread, when the stand-by period of all threads all is minimum value, and a newly-built thread, number of threads behind the newly-built thread can not surpass preset value, otherwise stops newly-built thread.
Step S1042 when not having full message queue, increases the stand-by period of thread, when the stand-by period of thread reaches default maximal value, finishes thread.
When not having full message queue, it is less that the medium pending performance data of description messages formation gathers task, can take following mode to adjust quantity and/or the stand-by period of thread: during certain inquiry of network management system, all message queues are discontented, then increase the stand-by period of thread in certain sequence, increase the stand-by period 50ms of first thread during if any a plurality of thread, when inquiry next time, all message queues are still discontented, continue to increase the stand-by period 50ms of first thread, when the stand-by period of first thread has reached maximal value, finish this thread, and continue second thread done as above to handle, up to only surplusing a thread, and the stand-by period of this thread is default maximal value.When not having pending message queue, can finish all threads.
It should be noted that network management system can adjust number of threads and stand-by period individually or simultaneously, those skilled in the art therefore associate other can realize that the quantity that gathers task according to performance data adjusts the mode of thread all applicable to the present invention.
The method that a kind of network management system performance data provided by the invention gathers, comprise that by foundation performance data gathers the message queue of task, and limit the number of threads that the execution performance data gather task, prevented the network management system collapse that causes because a large amount of threads are concurrent.Further, can gather the quantity adjustment thread of task according to performance data, improve the network system performance.
With reference to Fig. 6, device one embodiment that network management system performance data of the present invention gathers is proposed, comprising:
Set up formation module 10, be used for setting up a plurality of message queues, message queue comprises that performance data gathers task;
Set up thread module 20, be used for setting up the thread that quantity is no more than a preset value, thread obtains message queue, is used for carrying out the message queue performance data and gathers task.
Set up formation module 10 and at first set up a plurality of message queues, message queue comprises that performance data gathers task, and each performance data gathers the information that task comprises the performance data that network management system is gathered, for example the time of performance data and position etc.Be nonlinear between the message queue, the length of each message queue can be identical or different, can set in advance and adjust as required, gathers task with the performance data of holding some.
Set up thread module 20 and then set up the thread that the execution performance data gather task, the maximum quantity of thread is a preset value, and collapse appears in system when preventing that a large amount of threads are concurrent.When a plurality of thread, each thread works alone, each thread can regularly or obtain one or more pending message queue at random, pending message queue of a general thread single treatment, the performance data of carrying out successively in this message queue gathers task then, the all properties data gather task and are finished in this message queue, and last thread can be destroyed this message queue, continue to obtain next pending message queue again.The performance data of thread execution gathers task, mainly is with a plurality of performance data Macro or mass analysis of same granularity as one hour or one day, finishes summation, is averaging, asks maximum, asks function such as minimum.
As mentioned above, each thread can be according to one or more message queue of ability single treatment, and over-burden to prevent each thread, and simultaneously because the number of threads of concurrent working is a preset value, collapse appears in system in the time of can preventing that a large amount of threads are concurrent.The number of threads of above-mentioned concurrent working is that network management system sets in advance, and can adjust according to the network management system ability.
The device that a kind of network management system performance data provided by the invention gathers, comprise that by foundation performance data gathers the message queue of task, and limit the number of threads that the execution performance data gather the concurrent working of task, solved the network management system collapse that causes because a large amount of threads are concurrent.
With reference to Fig. 7, in the device that the network management system performance data of an embodiment gathers, setting up formation module 10 can comprise:
Taxon 11 is classified to message queue for the classification that gathers task by performance data;
Add TU task unit 12, be used for that newly-increased performance data is gathered task and add corresponding message queue to according to classification.
Taxon 11 can be classified by certain feature of performance data to message queue, and present embodiment is example with the measurement type of performance data, and message queue is classified.
When network management system collects performance data, in the time of need gathering, add TU task unit 12 newly-increased performance data is gathered task according to measuring the tail of the queue that type is inserted into corresponding message queue, wait for thread execution.
With reference to Fig. 8, adding TU task unit 12 can comprise:
Judgment sub-unit 121 is used for judging that newly-increased performance data gathers the classification of task;
First adds subelement 122, when discontented for the message queue of classification under newly-increased performance data gathers task, add the performance data that increases newly and gathers task to this message queue;
Second adds subelement 123, when having expired for the message queue of classification under newly-increased performance data gathers task, stop to join the team, wait for that this message queue takes the newly-built message queue in back away, and add newly-increased performance data and gather task to newly-built message queue;
The 3rd adds subelement 124, when the message queue that is used for classification under newly-increased performance data gathers task does not exist, and a newly-built message queue, and add newly-increased performance data and gather task and arrive newly-built message queue.
Judgment sub-unit 121 judges that newly-increased performance data gathers the classification of task, the performance data of for example measuring Type C SBasic Measurement gathers task when arriving, message queue as correspondence is discontented, first adds subelement 122 gathers this performance data with the tail of the queue that task is inserted into corresponding message queue, waits for thread execution.
When the message queue of measuring Type C S Basic Measurement correspondence has been expired, the performance data that the second interpolation subelement 123 stops to increase newly gathers task and joins the team, after waiting for that thread takes out corresponding message queue, newly-built one to measure type be the message queue of CS Basic Measurement again, and will wait for and the measurement type of follow-up arrival is that the performance data of CS Basic Measurement gathers task and adds in the newly-built message queue.
When not having the message queue of measuring Type C S Basic Measurement correspondence, the 3rd adds subelement 124 newly-built, and to measure types be the message queue of CS Basic Measurement, is that the performance data of CS Basic Measurement gathers task and adds in the newly-built message queue with the measurement type that arrives.
With reference to Fig. 9, the another embodiment of device that network management system performance data of the present invention gathers is proposed, in device one embodiment that above-mentioned network management system performance data gathers, also comprise:
Enquiry module 30, whether be used for regularly query messages formation full;
Adjust thread module 40, be used for adjusting quantity and/or the stand-by period of thread according to whether having full message queue, waiting time is the time interval that thread obtains message queue.
Whether enquiry module 30 can regularly be inquired about all message queues full.Enquiry module 30 can be realized this query function by a counter is set: when message queue is expired, counter adds 1, when thread takes out a full message queue, counter subtracts 1, enquiry module 30 can regularly obtain the counting of counter, and is non-0 as the counting of counter, and representative exists at least one message queue full, when counter is 0, just represented all message queues and be discontented with.Enquiry module 30 also can be known to inquire about by each message queue being arranged full scale, or adopts other can realize that the query messages formation expired the mode of state.
When having full message queue, it is more to illustrate that pending performance data gathers task, adjust the stand-by period that thread module 40 can corresponding minimizing thread and/or increase the number of threads of concurrent working, gather task executions speed to accelerate performance data, the stand-by period of thread is the time interval that thread obtains message queue.When all message queues were all discontented, it was less illustrate that pending performance data gathers task, adjusted the stand-by period that thread module 40 can corresponding increase thread and/or reduced the number of threads of concurrent working, gathered task executions speed with the reduction performance data.
With reference to Figure 10, adjust thread module 40 and comprise:
First adjustment unit 41 is used for when having full message queue, and the stand-by period of minimizing thread, when the stand-by period of thread reached default minimum value, a newly-built thread reached preset value up to number of threads;
Second adjustment unit 42 is used for when not having full message queue, increases the stand-by period of thread, when the stand-by period of thread reaches default maximal value, finishes thread.
When having full message queue, it is more that the medium pending performance data of description messages formation gathers task, first adjustment unit 41 can take following mode to adjust quantity and/or the stand-by period of thread: during enquiry module 30 certain inquiries, there is full message queue, then first adjustment unit 41 reduces the stand-by period of thread in certain sequence, reduce the stand-by period 50ms of first thread during if any a plurality of thread, when enquiry module inquiry 30 next time, when still having full message queue, continue to reduce the stand-by period 50ms of first thread, when the stand-by period of first thread has reached minimum value, continuation is done as above to handle to second thread, when the stand-by period of all threads all is minimum value, and a newly-built thread, number of threads behind the newly-built thread can not surpass preset value, otherwise stops newly-built thread.
When not having full message queue, it is less that the medium pending performance data of description messages formation gathers task, second adjustment unit 42 can take following mode to adjust quantity and/or the stand-by period of thread: during enquiry module 30 certain inquiries, all message queues are discontented, then increase the stand-by period of thread in certain sequence, increase the stand-by period 50ms of first thread during if any a plurality of thread, when enquiry module inquiry 30 next time, all message queues are still discontented, continue to increase the stand-by period 50ms of first thread, stand-by period up to first thread has reached maximal value, finish this thread, and continue second thread done as above to handle, up to only surplusing a thread, and the stand-by period of this thread is default maximal value.When not having pending message queue, second adjustment unit 42 can finish all threads.
It should be noted that, adjust thread module 40 and can adjust number of threads and stand-by period individually or simultaneously, those skilled in the art therefore associate other can realize that the quantity that gathers task according to performance data adjusts the mode of thread all applicable to adjustment thread module 40 of the present invention.
The device that a kind of network management system performance data provided by the invention gathers, comprise that by foundation performance data gathers the message queue of task, and limit the number of threads that the execution performance data gather task, prevented the network management system collapse that causes because a large amount of threads are concurrent.Further, can gather the quantity adjustment thread of task according to performance data, improve the network system performance.
The above only is the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (8)

1. the method that the network management system performance data gathers is characterized in that, comprising:
Set up a plurality of message queues, described message queue comprises that performance data gathers task;
Set up the thread that quantity is no more than a preset value, described thread obtains message queue, and carries out that performance data gathers task in the described message queue;
Whether regularly inquire about described message queue full;
According to whether having full message queue, adjust quantity and/or the stand-by period of described thread, the described stand-by period is the time interval that thread obtains message queue.
2. the method that gathers of network management system performance data as claimed in claim 1 is characterized in that, describedly sets up a plurality of message queues and comprises:
Gather the classification of task classifies to message queue by performance data;
Newly-increased performance data is gathered task adds in the corresponding message queue according to classification.
3. the method that gathers of network management system performance data as claimed in claim 2 is characterized in that, describedly newly-increased performance data is gathered task adds in the corresponding message queue according to classification and comprises:
Judge that newly-increased performance data gathers the task classification;
When the message queue of classification is discontented under newly-increased performance data gathers task, adds newly-increased performance data and gather task to this message queue; Or,
When the message queue of classification has been expired under newly-increased performance data gathers task, stop to join the team, wait for that this message queue takes the newly-built message queue in back away, and add newly-increased performance data and gather task to newly-built message queue; Or,
When the message queue of classification does not exist under newly-increased performance data gathers task, a newly-built message queue, and add newly-increased performance data and gather task to newly-built message queue.
4. the method that gathers of network management system performance data as claimed in claim 1 is characterized in that whether described basis exists full message queue, and quantity and/or the stand-by period of adjusting thread comprise:
When having full message queue, reduce the stand-by period of described thread, when the stand-by period of described thread reached default minimum value, a newly-built thread reached described preset value up to number of threads;
When not having full message queue, increase the stand-by period of described thread, when the stand-by period of described thread reaches default maximal value, finish described thread.
5. the device that the network management system performance data gathers is characterized in that, comprising:
Set up the formation module, be used for setting up a plurality of message queues, described message queue comprises that performance data gathers task;
Set up the thread module, be used for setting up the thread that quantity is no more than a preset value, described thread obtains message queue, is used for carrying out described message queue performance data and gathers task;
Enquiry module, whether be used for regularly inquiring about described message queue full;
Adjust the thread module, be used for adjusting quantity and/or the stand-by period of described thread according to whether having full message queue, the described stand-by period is the time interval that thread obtains message queue.
6. the device that gathers of network management system performance data as claimed in claim 5 is characterized in that the described formation module of setting up comprises:
Taxon is classified to message queue for the classification that gathers task by performance data;
Add TU task unit, be used for that newly-increased performance data is gathered task and add corresponding message queue to according to classification.
7. the device that gathers of network management system performance data as claimed in claim 6 is characterized in that described interpolation TU task unit comprises:
Judgment sub-unit is used for judging that newly-increased performance data gathers the classification of task;
First adds subelement, when discontented for the message queue of classification under newly-increased performance data gathers task, add the performance data that increases newly and gathers task to this message queue;
Second adds subelement, when the message queue that is used for classification under newly-increased performance data gathers task has been expired, stops to join the team, and waits for that this message queue takes the newly-built message queue in back away, and adds newly-increased performance data and gather task and arrive newly-built message queue;
The 3rd adds subelement, when the message queue that is used for classification under newly-increased performance data gathers task does not exist, and a newly-built message queue, and add newly-increased performance data and gather task and arrive newly-built message queue.
8. the device that gathers of network management system performance data as claimed in claim 5 is characterized in that described adjustment thread module comprises:
First adjustment unit is used for reducing the stand-by period of described thread when the full message queue of existence, and when the stand-by period of described thread reached default minimum value, a newly-built thread reached described preset value up to number of threads;
Second adjustment unit is used for increasing the stand-by period of described thread when not having full message queue, when the stand-by period of described thread reaches default maximal value, finishes described thread.
CN 201010279843 2010-09-10 2010-09-10 Method and device for summarizing performance data of network management system Expired - Fee Related CN102402459B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201010279843 CN102402459B (en) 2010-09-10 2010-09-10 Method and device for summarizing performance data of network management system
PCT/CN2010/080112 WO2012031439A1 (en) 2010-09-10 2010-12-22 Method and device for collecting performance data of network management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010279843 CN102402459B (en) 2010-09-10 2010-09-10 Method and device for summarizing performance data of network management system

Publications (2)

Publication Number Publication Date
CN102402459A CN102402459A (en) 2012-04-04
CN102402459B true CN102402459B (en) 2013-09-11

Family

ID=45810084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010279843 Expired - Fee Related CN102402459B (en) 2010-09-10 2010-09-10 Method and device for summarizing performance data of network management system

Country Status (2)

Country Link
CN (1) CN102402459B (en)
WO (1) WO2012031439A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6387747B2 (en) * 2013-09-27 2018-09-12 日本電気株式会社 Information processing apparatus, failure avoidance method, and computer program
CN104991814A (en) * 2015-06-19 2015-10-21 北京奇虎科技有限公司 Task execution result acquiring method and system
CN105281962B (en) * 2015-12-03 2018-08-28 成都广达新网科技股份有限公司 One kind realizing network management performance acquisition system and its working method based on parallel pipeline
CN105701257B (en) * 2016-03-31 2019-05-21 北京奇虎科技有限公司 Data processing method and device
CN108829521B (en) * 2018-06-13 2022-05-13 平安科技(深圳)有限公司 Task processing method and device, computer equipment and storage medium
CN111221698A (en) * 2018-11-26 2020-06-02 北京京东金融科技控股有限公司 Task data acquisition method and device
CN110460534B (en) * 2019-07-26 2024-05-14 腾讯云计算(北京)有限责任公司 Method, device, equipment and storage medium for reporting request message
CN111796930B (en) * 2020-05-21 2023-12-22 福建天泉教育科技有限公司 Method for optimizing message processing and storage medium
CN115314360B (en) * 2022-07-27 2024-04-12 浪潮软件股份有限公司 Message queue service performance monitoring system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588316A (en) * 2004-06-29 2005-03-02 北京大学 Property optimizing method for applying server
CN1756190A (en) * 2004-09-30 2006-04-05 北京航空航天大学 Distributed performance data acquisition method
CN1901568A (en) * 2005-07-22 2007-01-24 中兴通讯股份有限公司 Method for realizing historical property collection in net managing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262367A (en) * 2008-03-07 2008-09-10 中兴通讯股份有限公司 Collection method and device for performance data
CN101420330B (en) * 2008-12-11 2011-04-27 北京立通无限科技有限公司 Collecting method and device for performance data of mail proxy gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588316A (en) * 2004-06-29 2005-03-02 北京大学 Property optimizing method for applying server
CN1756190A (en) * 2004-09-30 2006-04-05 北京航空航天大学 Distributed performance data acquisition method
CN1901568A (en) * 2005-07-22 2007-01-24 中兴通讯股份有限公司 Method for realizing historical property collection in net managing system

Also Published As

Publication number Publication date
CN102402459A (en) 2012-04-04
WO2012031439A1 (en) 2012-03-15

Similar Documents

Publication Publication Date Title
CN102402459B (en) Method and device for summarizing performance data of network management system
CN103425568A (en) Method and device for processing log information
CN102404760B (en) Method and device for real-time measurement of system performance
CN105490876A (en) Method for automatic testing of server performance through packet sending linkage and concurrent monitoring
CN104158699A (en) Data acquisition method based on priority and segmentation
CN101547150A (en) Method and device for scheduling data communication input port
CN102970244A (en) Network message processing method of multi-CPU (Central Processing Unit) inter-core load balance
CN101883014B (en) Method and system for acquiring performance statistical data
CN104331328A (en) Virtual resource scheduling method and virtual resource scheduling device
US20100329146A1 (en) Flow information collection apparatus
CN105630725B (en) A kind of method of data synchronization for distributed parallel computing environment
CN107479966B (en) Signaling acquisition method based on multi-core CPU
CN101931986B (en) Indication method of network energy efficiency, indicator and system
CN102118361A (en) Method and device for controlling data transmission based on network protocol
CN107402874A (en) A kind of storage device performance statistical system and method
CN1984119A (en) Method for controlling flow by time-division technology
CN103179285B (en) A kind of acquisition method of CDR file and device
CN101977130A (en) Method and device for monitoring bandwidth of Ethernet port in real time
CN105610633A (en) Self-sampling system and method for real-time performance in communication equipment
CN104714875A (en) Distributed automatic collecting method
CN101631330B (en) Method and device for collecting and processing performance data
CN103279816A (en) Active window-based terminal work efficiency statistical method and system
CN104052778A (en) Distributed phone bill statistical method, device thereof and system thereof
CN106911594B (en) Method for improving communication efficiency of mesh network application
CN106960018A (en) The automatic transmission of industrial production control real-time data acquisition form and store method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130911

Termination date: 20170910

CF01 Termination of patent right due to non-payment of annual fee