CN103838659A - Method and device for controlling system logs - Google Patents

Method and device for controlling system logs Download PDF

Info

Publication number
CN103838659A
CN103838659A CN201410053917.8A CN201410053917A CN103838659A CN 103838659 A CN103838659 A CN 103838659A CN 201410053917 A CN201410053917 A CN 201410053917A CN 103838659 A CN103838659 A CN 103838659A
Authority
CN
China
Prior art keywords
log information
log
functional module
sent
message queue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410053917.8A
Other languages
Chinese (zh)
Other versions
CN103838659B (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201410053917.8A priority Critical patent/CN103838659B/en
Publication of CN103838659A publication Critical patent/CN103838659A/en
Application granted granted Critical
Publication of CN103838659B publication Critical patent/CN103838659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and device for controlling system logs. The method and device aim to solve the problems that due to a large amount of log information, the load of a system further rises and more memory resources are used. The system where the system logs are located comprises at least one function module and a log task information queue. The method includes the steps of receiving the log information sent by each function module in the system, monitoring the load state of the system, and reducing the amount of the log information sent to the log task information queue when the load of the system is larger than a preset flow control threshold. By means of the method and device, the problems that when the load of the system is high, a large amount of the log information cause further increasing of the load of the system, and more memory resources are used are solved.

Description

A kind of control method of system journal and device
Technical field
The present invention relates to daily record control technology field, particularly relate to a kind of control method and device of system journal.
Background technology
System journal is that in system operational process, each functional module (is for example used for recorded key information, crucial flow process, state, message etc.) a kind of mode, each functional module in system can be recorded to its key message in system journal as required in system operational process, thereby as a kind of effective means of ex-post analysis problem.
In current system log management process, each functional module sends to log content (comprising key message) in the message queue of log task by sending log information, from message queue, read out again corresponding log information by log task, and be written in journal file.
But in said method, in the time that the load of system is higher, if now there is a large amount of log information demands, can causes the load of system further to raise, thereby affect the operation of system; In addition, because the processing procedure of log task relates to the I/O(Input/Output that efficiency is lower, I/O) operation, the priority of task is lower, therefore also can cause log information to be accumulated in a large number system buffer, thereby can consume more memory source.
Summary of the invention
The invention provides a kind of control method and device of system journal, to solve load when system when higher, a large amount of log informations causes the load of system further to raise, and consumes the problem of more memory source.
In order to address the above problem, the invention discloses a kind of control method of system journal, it is characterized in that, the system at described system journal place comprises at least one functional module and log task message queue, described method comprises:
Receive the log information that in described system, each functional module sends;
Monitor the load condition of described system;
In the time that the load of described system is greater than default Flow Control threshold value, reduce the quantity of the log information that is sent to described log task message queue.
Preferably, the step that described reduction is sent to the quantity of the log information of described log task message queue comprises:
Adopt overall control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Adopt balanced control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Adopt module controls mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Adopt meticulous control mode to reduce the quantity of the log information that is sent to described log task message queue.
Preferably, the step that the overall control mode reduction of described employing is sent to the quantity of the log information of described log task message queue comprises:
The load of described system and the default Flow Control upper limit and Flow Control lower limit are compared;
If the load of described system is greater than the default Flow Control upper limit, judge current log recording state;
If opening, is revised as closed condition, give up the log information that described each functional module sends;
If the load of described system is less than default Flow Control lower limit, judge current log recording state;
If closed condition, is revised as opening, the log information that described each functional module is sent is sent to described log task message queue.
Preferably, described system also comprises multiple tokens, and the state of described token comprises idle condition and seizure condition, and the step that the balanced control mode of described employing reduces the quantity of the log information that is sent to described log task message queue comprises:
Obtain the token quantity in idle condition in described system;
From described log information, choose the log information with the described token number in idle condition;
The log information of choosing is sent to described log task message queue, remaining log information is carried out to buffer memory.
Preferably, described log information comprises transmitting time,
Described choosing from described log information with the step of the log information of the described token number in idle condition comprises:
According to the sequencing of described transmitting time, described log information is sorted;
First log information from sequence starts, and chooses the log information with the described token number in idle condition.
Preferably, the step that described employing module controls mode reduces the quantity of the log information that is sent to described log task message queue comprises:
The quantity of the log information that interior described each functional module of unit interval of adding up respectively default sends;
If the quantity of the log information that certain functional module sends is greater than default amount threshold, give up the log information that this functional module sends, remaining log information is sent to described log task message queue.
Preferably, described log information comprises the functional module mark that sends this log information,
The step of the quantity of the log information that described interior described each functional module of unit interval of adding up respectively default sends comprises:
Add up respectively the quantity that comprises the log information of same functional module mark in default unit interval, identify the quantity of the log information that corresponding functional module sends using described quantity as described same functional module;
The step of the described log information of giving up this functional module transmission comprises:
Give up the log information that comprises this functional module mark.
Preferably, the step that the meticulous control mode reduction of described employing is sent to the quantity of the log information of described log task message queue comprises:
Judge the log information that whether has repetition in the log information that in the default unit interval, described each functional module sends;
If exist, choose one or more log informations from the log information of described repetition;
Give up the log information not being selected in the log information of described repetition, do not have the log information repeating to be sent to described log task message queue the log information being selected and residue.
Preferably, described log information comprises filename and line number,
In the described log information that judges described each functional module transmission in the default unit interval, whether exist the step of the log information of repetition to comprise:
Filename and line number that the log information that described in obtaining respectively in the default unit interval, each functional module sends comprises;
Judge whether to exist the filename log information identical with line number comprising;
If existence, the log information that the log information of existence repetition in the log information of interior described each functional module transmission of definite default unit interval, and definite filename log information identical with line number comprising is repetition.
On the other hand, the invention also discloses a kind of control device of system journal, it is characterized in that, the system at described system journal place comprises at least one functional module and log task message queue, and described device comprises:
Receiver module, the log information sending for receiving each functional module of described system;
Monitoring module, for monitoring the load condition of described system;
Reduce module, while being greater than default Flow Control threshold value for monitor the load of described system when described monitoring module, reduce the quantity of the log information that is sent to described log task message queue.
Preferably, described reduction module comprises:
Entirety is controlled submodule, for adopting overall control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
The balanced submodule of controlling, for adopting balanced control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Module controls submodule, is sent to the quantity of the log information of described log task message queue for adopting module controls mode to reduce;
And/or,
Meticulous control submodule, for adopting meticulous control mode to reduce the quantity of the log information that is sent to described log task message queue.
Preferably, described entirety control submodule comprises:
Relatively subelement, for comparing the load of described system and the default Flow Control upper limit and Flow Control lower limit;
The first judgment sub-unit, for prescribing a time limit when the described relatively load that the comparative result of subelement is described system is greater than in default Flow Control, judges current log recording state;
First revises subelement, in the time that the judged result of described the first judgment sub-unit is opening, is revised as closed condition, gives up the log information that described each functional module sends;
The second judgment sub-unit, for prescribing a time limit when the described relatively load that the comparative result of subelement is described system is less than under default Flow Control, judges current log recording state;
Second revises subelement, in the time that the judged result of described the second judgment sub-unit is closed condition, is revised as opening, and the log information that described each functional module is sent is sent to described log task message queue.
Preferably, described system also comprises multiple tokens, and the state of described token comprises idle condition and seizure condition,
The described balanced submodule of controlling comprises:
Token obtains subelement, for obtaining the token quantity of described system in idle condition;
First chooses subelement, for choosing from described log information and the log information of the described token number in idle condition;
First sends subelement, for the log information of choosing being sent to described log task message queue;
Buffer memory subelement, for carrying out buffer memory by remaining log information.
Preferably, described log information comprises transmitting time,
Described first chooses subelement, specifically for described log information being sorted according to the sequencing of described transmitting time; First log information from sequence starts, and chooses the log information with the described token number in idle condition.
Preferably, described module controls submodule comprises:
Statistics subelement, for adding up respectively the quantity of the log information that in default unit interval, described each functional module sends;
Second sends subelement, while being greater than default amount threshold for count the quantity of log information of certain functional module transmission when described statistics subelement, give up the log information that this functional module sends, remaining log information is sent to described log task message queue.
Preferably, described log information comprises the functional module mark that sends this log information,
Described statistics subelement, specifically for adding up respectively the quantity that comprises the log information of same functional module mark in default unit interval, identifies the quantity of the log information that corresponding functional module sends using described quantity as described same functional module;
Described second sends subelement, specifically for giving up the log information that comprises this functional module mark.
Preferably, described meticulous control submodule comprises:
Repeat judgment sub-unit, for judging whether the log information of described each functional module transmission in the default unit interval exists the log information of repetition;
Second chooses subelement, in the judged result of described repetition judgment sub-unit when existing, from the log information of described repetition, choose one or more log informations;
The 3rd sends subelement, and the log information not being selected for giving up the log information of described repetition does not have the log information repeating to be sent to described log task message queue the log information being selected and residue.
Preferably, described log information comprises filename and line number,
Described repetition judgment sub-unit, the filename and the line number that comprise specifically for obtaining respectively the log information of described each functional module transmission in the default unit interval; Judge whether to exist the filename log information identical with line number comprising; If existence, the log information that the log information of existence repetition in the log information of interior described each functional module transmission of definite default unit interval, and definite filename log information identical with line number comprising is repetition.
Compared with prior art, the present invention includes following advantage:
In the present invention, can monitor the load condition of system, after receiving the log information that in described system, each functional module sends, if the load of current system is greater than default Flow Control threshold value, can reduce the quantity of the log information that is sent to described log task message queue.Owing to having reduced the quantity of the log information sending, therefore can avoid load in system higher time, a large amount of log informations causes the load of system further to raise, consume the problem of more memory source.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the system at a kind of system journal of the present invention place;
Fig. 2 is the process flow diagram of the control method of a kind of system journal of the embodiment of the present invention one;
Fig. 3 is the process flow diagram of the control method of a kind of system journal of the embodiment of the present invention two;
Fig. 4 is the structured flowchart of the control device of a kind of system journal of the embodiment of the present invention three.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
In order to solve load when system when higher, a large amount of log informations causes the load of system further to raise, and consumes the problem of more memory source, the present invention proposes a kind of by carrying out the mode of daily record quantity control so that system journal is controlled.
With reference to Fig. 1, show the schematic diagram of the system at a kind of system journal of the present invention place, according to Fig. 1, this system can comprise multiple functional modules (functional module 1, functional module 2, ..., functional module N), daily record quantity control module and log task administration module, in wherein said log task administration module, can comprise log task message queue.
In current system log management process, each functional module is directly the log information that comprises log content (comprising key message) to be sent in the log task message queue of log task administration module, from log task message queue, read out again corresponding log information by log task administration module, and be written in journal file, therefore a large amount of log informations will cause system loading to rise, and consumes more memory source.
In system shown in Fig. 1, increase daily record quantity control module the quantity of the log information that sends to log task administration module has been controlled.First, each functional module can send to daily record quantity control module by log information by the mode of asynchronous message, daily record quantity control module is controlled the quantity of log information according to actual conditions, and then by daily record quantity control module, log information is sent in the log task message queue of log task administration module.
Below, control method and device by following each embodiment to a kind of system journal describe, and following multiple embodiment all can realize on the basis of the system at said system daily record place.
Embodiment mono-:
With reference to Fig. 2, show the process flow diagram of the control method of a kind of system journal of the embodiment of the present invention one, the method specifically can comprise the following steps:
Step 201, receives the log information that in described system, each functional module sends.
Step 202, monitors the load condition of described system.
Step 203, in the time that the load of described system is greater than default Flow Control threshold value, reduces the quantity of the log information that is sent to described log task message queue.
Above-mentioned steps 201-step 203 can be all the performed function of daily record quantity control module in Fig. 1, for the load condition of described system, can monitor in real time, also can regularly monitor.Be less than or equal to default Flow Control threshold value if judge the load of described system, can illustrate and temporarily control without the quantity to log information, the log information that therefore can directly each received functional module be sent is sent in log task message queue; Be greater than default Flow Control threshold value if judge the load of described system, can illustrate that log information now can cause system loading further to rise, affect the performance of system, therefore can reduce the quantity of the log information that is sent to described log task message queue, thereby avoid the load of system to cause larger impact.
Embodiment bis-:
Below, by the present embodiment two, the control method of system journal is described in detail.
With reference to Fig. 3, show the process flow diagram of the control method of a kind of system journal of the embodiment of the present invention two, the method specifically can comprise the following steps:
Step 301, receives the log information that in described system, each functional module sends.
System journal is that in system operational process, each functional module is used for a kind of mode of recorded key information (for example, crucial flow process, state, message etc.).In system operational process, each functional module in system can be recorded to the key message of self in system journal as required, thereby as a kind of effective means of ex-post analysis problem.The log content such as the key message that each functional module can record send with the form of log information.
Step 302, monitors the load condition of described system.
In the embodiment of the present invention, described monitoring can be monitoring in real time, can be also regular monitoring, for the cycle of regular monitoring, those skilled in the art according to the practical experience setting of being correlated with, for example, are set to 5s, and the embodiment of the present invention is not limited this.
Wherein, the load condition of described system can be according to the CPU(Central ProcessingUnit of system, CPU (central processing unit)) parameter such as the message buffer occupancy of occupancy or system determines.For example, can obtain the current CPU usage of system, and using described CPU usage as the current load of system; Or the message buffer occupancy that the system of obtaining is current, and using described message buffer occupancy as the current load of system.Certainly, can also determine the load condition of system in conjunction with CPU usage and message buffer occupancy, or can also be by the load condition of other determination of property parameter systems in system, the embodiment of the present invention is not limited this.
Step 303, judges whether the load of described system is greater than default Flow Control threshold value.
After determining the current load condition of system, can control the quantity of the log information that is sent to log task message queue according to the load condition of system.Therefore, first can judge whether the load of described system is greater than default Flow Control threshold value, if so, perform step 304; If not, perform step 305.
For described Flow Control threshold value, those skilled in the art are according to the practical experience setting of being correlated with, and it is 70% that described Flow Control threshold value is for example set, etc., the embodiment of the present invention is not limited this.
Step 304, reduction is sent to the quantity of the log information of described log task message queue.
Be greater than default Flow Control threshold value if judge the load of described system, can illustrate that now system loading is higher, if there is again a large amount of log informations to be sent to log task message queue, will cause system loading further to promote, consume more memory source.Therefore, in this kind of situation, in the embodiment of the present invention, can reduce the quantity of the log information that is sent to described log task message queue, to alleviate the impact that system loading is caused.
In a preferred embodiment of the present invention, this step 304 can comprise: adopt overall control mode to reduce the quantity of the log information that is sent to described log task message queue; And/or, adopt balanced control mode to reduce the quantity of the log information that is sent to described log task message queue; And/or, adopt module controls mode to reduce the quantity of the log information that is sent to described log task message queue; And/or, adopt meticulous control mode to reduce the quantity of the log information that is sent to described log task message queue.Also be, in this step 304, can from above-mentioned overall control mode, balanced control mode, module controls mode and meticulous control mode, select any or select any two kinds of modes combination wherein or select any three kinds of modes combination wherein or select whole four kinds of mode combinations, completing the process of the quantity that reduces the log information that is sent to described log task message queue.
Below, respectively above-mentioned four kinds of control modes are introduced.
1, overall control mode
In the embodiment of the present invention, the step that adopts overall control mode to reduce the quantity of the log information that is sent to described log task message queue specifically can comprise following sub-step:
Sub-step a1, compares the load of described system and the default Flow Control upper limit and Flow Control lower limit;
In the embodiment of the present invention, can set in advance a Flow Control upper limit and a Flow Control lower limit, whether will send log information to log task message queue for controlling.More balanced in order to guarantee system loading, between two numerical value of the above-mentioned Flow Control upper limit and Flow Control lower limit, there is certain intervals, certain buffer zone is set, in the time that system loading is positioned at buffer zone, will keep current state.For example, can arrange in Flow Control and be limited to 80%, under Flow Control, be limited to 60%, between 60%-80%, be buffer zone.
If the load of described system is greater than the default Flow Control upper limit, carry out sub-step a2; If the load of described system is less than default Flow Control lower limit, carry out sub-step a4; If the load of described system is more than or equal to default Flow Control lower limit, and be less than or equal to the default Flow Control upper limit, carry out sub-step a6.
In a preferred embodiment of the present invention, can also in above-mentioned daily record quantity control module, a log recording state be set, it can comprise opening and closed condition, in the time that daily record recording status is opening, represent to allow the log information that each functional module is sent to be sent in log task message queue, in the time that daily record recording status is closed condition, represent not allow the log information that just each functional module sends to be sent in log task message queue, therefore can whether send log information to log task message queue according to this log recording state control.
Sub-step a2, judges current log recording state;
Prescribe a time limit when the load of described system is greater than in default Flow Control, can illustrate that system loading is now comparatively nervous, therefore, in this kind of situation, will shield the log information that each functional module sends.Due to the monitoring of system loading state is carried out in real time or regularly, therefore before processing, this may revise log recording state.Therefore, in the embodiment of the present invention, can first judge current log recording state, opening if, carries out sub-step a3; Closed condition if, carries out sub-step a6.
Sub-step a3, is revised as closed condition, gives up the log information that described each functional module sends;
If be greater than the default Flow Control upper limit at the load of described system, and current log recording state is opening, to be now closed condition by described log recording status modifier, give up the log information that described each functional module sends, the log information of refusing described each functional module to send is sent in log task message queue.
Sub-step a4, judges current log recording state;
Prescribe a time limit when the load of described system is less than under default Flow Control, can illustrate that system loading is now comparatively idle, therefore, in this kind of situation, the log information that each functional module can be sent be sent in log task message queue.First can judge current log recording state, closed condition if, carries out sub-step a5; Opening if, carries out sub-step a6.
Sub-step a5, is revised as opening, and the log information that described each functional module is sent is sent to described log task message queue.
If be less than default Flow Control lower limit at the load of described system, and when current log recording state is closed condition, will be now opening by described log recording status modifier, and the log information that described each functional module is sent be sent to described log task message queue.
Sub-step a6, keeps current log recording state.
Be more than or equal to default Flow Control lower limit if judge the load of described system in sub-step a1, and be less than or equal to the default Flow Control upper limit, can keep current log recording state.If current log recording state is opening, the log information described each functional module being sent is sent to described log task message queue; If current log recording state is closed condition, give up the log information that described each functional module sends.
If judging current log recording state in sub-step a2 is closed condition, can keep log recording state is closed condition, give up the log information that described each functional module sends, the log information of refusing described each functional module to send is sent in log task message queue.
If judging current log recording state in sub-step a4 is opening, can keep log recording state is opening, and the log information that described each functional module is sent is sent in log task message queue.
By overall control mode, can in the time that the load of system be very high, (be greater than on flow and prescribe a time limit), stop sending log information to log task message queue, the quantity that is about to the log information that is sent to described log task message queue is reduced to zero, thus the burden of mitigation system.
2, balanced control mode
In the embodiment of the present invention, the step that adopts balanced control mode to reduce the quantity of the log information that is sent to described log task message queue specifically can comprise following sub-step:
Sub-step b1, obtains the token quantity in idle condition in system;
Token is a kind ofly can control the special frames that node occupies media, with distinguishes data frame and other control frames.Token method is called again isarithmic, the basic thought of token method is: the flag information (codes of one or more binary digits compositions) that uniqueness is called token sends to another node from a node, only has the node of the acquisition token packets of information of just having the right to send.In the time that a node is ready for sending packets of information, first to wait for the arrival of token, in the time the token that his token of process is idle condition being detected, can capture this token, and the state of this token is set to seizure condition, then send information take " frame " as unit to destination node; Information is with token to destination node, and destination node is by information reproduction, and token continues to go in ring and turns back to sending node, and at this moment transmitting station just discharges the token of capturing, and token becomes idle condition again.If all tokens are seizure condition, now wish that the node of transmission information will wait for the appearance of idle condition token.
In the system at described system journal place, can also comprise multiple tokens, the state of described token can comprise two kinds of idle condition and seizure conditions.In the embodiment of the present invention, can control the quantity of the log information that is sent to described log task message queue according to token.First, can obtain the token quantity in idle condition in described system, control according to this token quantity.
It should be noted that, before above-mentioned sub-step b1, can also judge and in system, whether have the token in idle condition, if existed, carry out sub-step b1, if there is no, temporarily do not process (temporarily stop send to log task message queue log information), until carry out sub-step b1 while there is the token in idle condition.
Sub-step b2 chooses the log information with the described token number in idle condition from described log information;
Getting in system after the token quantity in idle condition, can send log information to log task message queue according to the quantity of this token.Specifically can from described log information, choose the log information with the described token number in idle condition.
In a preferred embodiment of the present invention, described log information is except comprising log content, can also comprise the transmitting time of this log information, therefore in the embodiment of the present invention, can from described log information, choose according to the transmitting time of described log information the log information with the described token number in idle condition.Therefore, this sub-step b2 specifically can comprise: according to the sequencing of described transmitting time, described log information is sorted; First log information from sequence starts, and chooses the log information with the described token number in idle condition.
Certainly, can also adopt other information from described log information, to choose and the log information of the described token number in idle condition, the embodiment of the present invention is not limited this.For example, can also for each log information, priority be set in advance, in described log information, can also comprise the priority that this log information is corresponding, in such cases, this sub-step b2 specifically can comprise: according to the sequence of described priority, described log information is sorted; First log information from sequence starts, and chooses the log information with the described token number in idle condition.
Sub-step b3, is sent to described log task message queue by the log information of choosing, and remaining log information is carried out to buffer memory.
After the log information of choosing from described log information with the described token number in idle condition, the log information of choosing can be sent to described log task message queue by the described token in idle condition, and remaining log information is carried out to buffer memory.
After the log information of choosing is successfully sent to described log task message queue by the token in idle condition, will discharge the shared token of this log information, the shared token of this log information will be converted to idle condition from seizure condition.For the residue log information of buffer memory after sequence, be successfully sent to by waiting for the token that the log information of log task message queue discharges, be sent to log task message queue by the token in idle condition after being released.
The above-mentioned sub-step b1-sub-step b3 execution that can circulate, after sub-step b3 executes, can return to step b1 and obtain the token quantity in idle condition in system, if now there is the token of idle condition, can from the log information of buffer memory, choose and the log information of the current token number in idle condition (this choose process can with reference to above-mentioned sub-step b2), finally the log information of choosing is sent to described log task message queue by the described token in idle condition.
By balanced control mode, can be in the time that the load of system be higher (while being greater than default flow threshold), by the quantity of the log information that is sent to described log task message queue is reduced to identical with the token quantity in idle condition in system, thereby guarantee the equilibrium of log recording, the burden of mitigation system.
3, module controls mode
In the embodiment of the present invention, the step that adopts module controls mode to reduce the quantity of the log information that is sent to described log task message queue specifically can comprise following sub-step:
Sub-step c1, the quantity of the log information that interior described each functional module of unit interval of adding up respectively default sends;
In the embodiment of the present invention, the quantity of the log information sending due to each functional module is unbalanced, therefore can also adopt module controls, for example, only the more functional module of log information sending is carried out to Flow Control, and can not affect other functional modules.
Along with the operation of system, the quantity of the log information that each functional module sends will be accumulated, therefore in embodiments of the present invention, the quantity of the log information that each functional module in the statistical unit time sends is to send the highest functional module of log information frequency in order to find, if the log information quantity that this functional module sends within the unit interval is greater than default amount threshold, gives up the log information that this functional module sends.For the concrete numerical value of described unit interval, those skilled in the art adjust setting according to concrete system, for example, can be set be 10 minutes, 30 minutes, 1 hour the described unit interval etc., and the embodiment of the present invention is not limited this.
The quantity of the log information that interior described each functional module of unit interval that first, can add up respectively default sends.In a preferred embodiment of the present invention, described log information can also comprise the functional module mark that sends this log information, therefore, this sub-step c1 specifically can comprise: add up respectively the quantity that comprises the log information of same functional module mark in default unit interval, identify the quantity of the log information that corresponding functional module sends using described quantity as described same functional module.
For example, described system comprises 3 functional modules, its mark is respectively 1,2,3, can add up respectively the quantity that comprises the log information of mark 1, mark 2, mark 3 in default unit interval, the quantity of the log information that the quantity that comprises the log information that identifies 1 is sent as functional module 1, the quantity of the log information that the quantity that comprises the log information that identifies 2 is sent as functional module 2, the quantity of the log information that the quantity that comprises the log information that identifies 3 is sent as functional module 3, etc.
It should be noted that, for the quantity of the log information that in the statistical unit time, each functional module sends, can also in the daily record quantity control module shown in Fig. 1, a timer be set, can add up while starting to arrive the default unit interval to the time from timing, the quantity of the log information that in this unit interval, each functional module sends, for concrete process, the embodiment of the present invention is discussed no longer in detail at this.
Sub-step c2, if the quantity of the log information that certain functional module sends is greater than default amount threshold, gives up the log information that this functional module sends, and remaining log information is sent to described log task message queue.
In the embodiment of the present invention, can set in advance an amount threshold, and the quantity of the log information that in the default unit interval of above-mentioned statistics, each functional module sends is compared with described amount threshold respectively, if the quantity of the log information that certain functional module sends is greater than default amount threshold, can illustrate that the log information that this functional module sends within the default unit interval is more, in this kind of situation, can give up the log information that this functional module sends, and remaining log information is sent to described log task message queue, the quantity that described remaining log information is the log information of other transmission is less than or equal to the log information of the functional module transmission of default amount threshold.Wherein, the step of giving up the log information that this functional module sends specifically can comprise: give up the log information that comprises this functional module mark.In said process, if exist the quantity of the log information that multiple functional modules send within the default unit interval to be greater than default amount threshold, can give up the log information that the plurality of functional module sends.
In the embodiment of the present invention, this sub-step c2 can also adopt other mode to give up the log information that certain or certain several functional modules send.For example, add up respectively the quantity of the log information that in default unit interval, described each functional module sends in sub-step c1 after, can also be from wherein choosing one or several maximum functional module of quantity of log information of transmission, and give up the log information that this one or several functional module sends, then remaining log information is sent to described log task message queue.
For the concrete numerical value of above-mentioned amount threshold, and specifically give up the log information that several functional modules send, those skilled in the art carry out related setting according to practical experience, for example can set according to the concrete condition of current system load, if system loading is higher, amount threshold is set to lower value, the number of giving up is set to more number, if system loading is lower, amount threshold is set to higher value, the number of giving up is set to less number, etc., the embodiment of the present invention is not limited this.
By module controls mode, can be in the time that the load of system be higher (while being greater than default flow threshold), by giving up the log information of some functional module transmission, can reduce the quantity of the log information that is sent to described log task message queue, thus the burden of mitigation system.
4, meticulous control mode
In the embodiment of the present invention, the step that adopts meticulous control mode to reduce the quantity of the log information that is sent to described log task message queue specifically can comprise following sub-step:
Sub-step d1, judges the log information that whether has repetition in the log information that in the default unit interval, described each functional module sends;
System may have the log information of a large amount of repetitions in operational process according to business, can select the log information of this repetition to carry out Flow Control according to system loading situation.First can judge the log information that whether has repetition in the log information that in the default unit interval, described each functional module sends, if exist, carry out sub-step d2, if do not exist, not deal with.
Along with the operation of system, in the log information that each functional module sends, exist the possibility of the log information repeating larger, therefore in embodiments of the present invention, judge that in the log information that in the default unit interval, each functional module sends, whether having the log information of repetition is the log information in order to reduce repetition.Same, for the concrete numerical value of described unit interval, those skilled in the art adjust setting according to concrete system, for example, can be set be 10 minutes, 30 minutes, 1 hour the described unit interval etc., and the embodiment of the present invention is not limited this.
In a preferred embodiment of the present invention, described log information can also comprise filename and line number, therefore, this sub-step d1 specifically can comprise: filename and line number that the log information that described in obtaining respectively in the default unit interval, each functional module sends comprises; Judge whether to exist the filename log information identical with line number comprising; If existence, the log information that the log information of existence repetition in the log information of interior described each functional module transmission of definite default unit interval, and definite filename log information identical with line number comprising is repetition; If do not exist, determine the log information that does not have repetition in the log information that in the default unit interval, described each functional module sends.
It should be noted that, in order to judge the log information that whether has repetition in the log information that in the default unit interval, described each functional module sends, can also in the daily record quantity control module shown in Fig. 1, a timer be set, can judge while starting to arrive the default unit interval to the time from timing, in the log information that in this unit interval, each functional module sends, whether there is the log information of repetition, for concrete process, the embodiment of the present invention is discussed no longer in detail at this.
Sub-step d2 chooses one or more log informations from the log information of described repetition;
If there is the log information repeating in received log information within the default unit interval, can choose one or more log informations from the log information of described repetition.In the embodiment of the present invention, can determine and specifically choose several log informations according to the situation of current system load.For example, if system loading is higher, can choose less log information, if system loading is lower, can choose more log information, those skilled in the art carry out relevant treatment according to actual conditions, and the embodiment of the present invention is not limited this.
If choose a log information, from the log information of described repetition, choose arbitrarily one, for example choose a transmitting time log information the earliest.If choose multiple log informations, can adopt the method for filtration to choose, for example, first can sort to the log information of described repetition according to the priority of transmitting time; Then according to default number, the log information after sorting is divided into groups, for example, every 3 log informations can be divided into one group; Finally from every group, choose a log information.Certainly, according to the actual conditions of system loading, can also adopt other mode to carry out choosing of log information, the embodiment of the present invention is discussed no longer in detail at this.
Sub-step d3, gives up the log information not being selected in the log information of described repetition, does not have the log information repeating to be sent to described log task message queue the log information being selected and residue.
Choose one or more log informations from the log information of described repetition after, the log information not being selected in the log information of described repetition can be given up, then not have the log information repeating to be sent to described log task message queue the log information being selected and residue.
By meticulous control mode, can be in the time that the load of system be higher (while being greater than default flow threshold), by giving up the log information of some repetition, can reduce the quantity of the log information that is sent to described log task message queue, thus the burden of mitigation system.
Step 305, the log information that each received functional module is sent is sent to described log task message queue.
If judge that in step 303 load of described system is less than or equal to default Flow Control threshold value, illustrate that current system loading can meet the demand of the log information of processing each functional module transmission, therefore temporarily can not control the quantity of the log information that is sent to log task message queue, the log information directly each received functional module being sent is sent to described log task message queue.
After log information being sent to described log task message queue, can from message queue, being read out by log task corresponding log information, and be written in journal file.For concrete processing procedure, the embodiment of the present invention is discussed no longer in detail.
In the embodiment of the present invention, it is mainly the transmission of controlling dynamically log information according to the load condition of system, overall control, balanced control, module controls, four kinds of control modes of meticulous control are provided, normal operation but also the maximized reservation log recording function of system were not only guaranteed, have good dirigibility and controllability, various ways can be for system according to the actual conditions employing of selecting a good opportunity.
For aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
Embodiment tri-:
With reference to Fig. 4, show the structured flowchart of the control device of a kind of system journal of the embodiment of the present invention three, the system at described system journal place comprises at least one functional module and log task message queue, described device specifically can comprise with lower module:
Receiver module 401, the log information sending for receiving each functional module of described system;
Monitoring module 402, for monitoring the load condition of described system;
Reduce module 403, while being greater than default Flow Control threshold value for monitor the load of described system when described monitoring module, reduce the quantity of the log information that is sent to described log task message queue.
In a preferred embodiment of the present invention, described reduction module can comprise following submodule:
Entirety is controlled submodule, for adopting overall control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
The balanced submodule of controlling, for adopting balanced control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Module controls submodule, is sent to the quantity of the log information of described log task message queue for adopting module controls mode to reduce;
And/or,
Meticulous control submodule, for adopting meticulous control mode to reduce the quantity of the log information that is sent to described log task message queue.
Wherein, described entirety control submodule can comprise following subelement:
Relatively subelement, for comparing the load of described system and the default Flow Control upper limit and Flow Control lower limit;
The first judgment sub-unit, for prescribing a time limit when the described relatively load that the comparative result of subelement is described system is greater than in default Flow Control, judges current log recording state;
First revises subelement, in the time that the judged result of described the first judgment sub-unit is opening, is revised as closed condition, gives up the log information that described each functional module sends;
The second judgment sub-unit, for prescribing a time limit when the described relatively load that the comparative result of subelement is described system is less than under default Flow Control, judges current log recording state;
Second revises subelement, in the time that the judged result of described the second judgment sub-unit is closed condition, is revised as opening, and the log information that described each functional module is sent is sent to described log task message queue.
Described system can also also comprise multiple tokens, and the state of described token can comprise idle condition and seizure condition.The described balanced submodule of controlling can comprise following subelement:
Token obtains subelement, for obtaining the token quantity of described system in idle condition;
First chooses subelement, for choosing from described log information and the log information of the described token number in idle condition;
First sends subelement, for the log information of choosing being sent to described log task message queue;
Buffer memory subelement, for carrying out buffer memory by remaining log information.Wherein, described log information can also comprise transmitting time, and described first chooses subelement, specifically can be for described log information being sorted according to the sequencing of described transmitting time; First log information from sequence starts, and chooses the log information with the described token number in idle condition.
In the embodiment of the present invention, after the log information of choosing being successfully sent to described log task message queue by the token in idle condition at the first transmission subelement, to discharge the shared token of this log information, the shared token of this log information will be converted to idle condition from seizure condition.For the residue log information of buffer memory after sequence, be successfully sent to by waiting for the token that the log information of log task message queue discharges, be sent to log task message queue by the token in idle condition after being released.Therefore, in the embodiment of the present invention, the described balanced submodule of controlling can also comprise that token discharges subelement, for after the log information of choosing being successfully sent to described log task message queue by the token in idle condition at the first transmission subelement, discharge the shared token of described log information.
Described module controls submodule can comprise following subelement:
Statistics subelement, for adding up respectively the quantity of the log information that in default unit interval, described each functional module sends;
Second sends subelement, while being greater than default amount threshold for count the quantity of log information of certain functional module transmission when described statistics subelement, give up the log information that this functional module sends, remaining log information is sent to described log task message queue.
Wherein, described log information can also comprise the functional module mark that sends this log information.Described statistics subelement, specifically can be for adding up respectively the quantity that comprises the log information of same functional module mark in default unit interval, identifies the quantity of the log information that corresponding functional module sends using described quantity as described same functional module; Described second sends subelement, specifically can be for giving up the log information that comprises this functional module mark.
Described meticulous control submodule can comprise following subelement:
Repeat judgment sub-unit, for judging whether the log information of described each functional module transmission in the default unit interval exists the log information of repetition;
Second chooses subelement, in the judged result of described repetition judgment sub-unit when existing, from the log information of described repetition, choose one or more log informations;
The 3rd sends subelement, and the log information not being selected for giving up the log information of described repetition does not have the log information repeating to be sent to described log task message queue the log information being selected and residue.
Wherein, described log information can also comprise filename and line number, described repetition judgment sub-unit, filename and the line number that specifically can comprise for obtaining respectively the log information of described each functional module transmission in the default unit interval; Judge whether to exist the filename log information identical with line number comprising; If existence, the log information that the log information of existence repetition in the log information of interior described each functional module transmission of definite default unit interval, and definite filename log information identical with line number comprising is repetition.
In the embodiment of the present invention, can monitor the load condition of system, after receiving the log information that in described system, each functional module sends, if the load of current system is greater than default Flow Control threshold value, can reduce the quantity of the log information that is sent to described log task message queue.Owing to having reduced the quantity of the log information sending, therefore can avoid load in system higher time, a large amount of log informations causes the load of system further to raise, consume the problem of more memory source.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
The present invention can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises and carries out particular task or realize routine, program, object, assembly, data structure of particular abstract data type etc.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, be executed the task by the teleprocessing equipment being connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium including memory device.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, commodity or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, commodity or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises described key element and also have other identical element.
Control method to a kind of system journal provided by the present invention and device above, be described in detail, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (18)

1. a control method for system journal, is characterized in that, the system at described system journal place comprises at least one functional module and log task message queue, and described method comprises:
Receive the log information that in described system, each functional module sends;
Monitor the load condition of described system;
In the time that the load of described system is greater than default Flow Control threshold value, reduce the quantity of the log information that is sent to described log task message queue.
2. method according to claim 1, is characterized in that, the step that described reduction is sent to the quantity of the log information of described log task message queue comprises:
Adopt overall control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Adopt balanced control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Adopt module controls mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Adopt meticulous control mode to reduce the quantity of the log information that is sent to described log task message queue.
3. method according to claim 2, is characterized in that, the step that the overall control mode of described employing reduces the quantity of the log information that is sent to described log task message queue comprises:
The load of described system and the default Flow Control upper limit and Flow Control lower limit are compared;
If the load of described system is greater than the default Flow Control upper limit, judge current log recording state;
If opening, is revised as closed condition, give up the log information that described each functional module sends;
If the load of described system is less than default Flow Control lower limit, judge current log recording state;
If closed condition, is revised as opening, the log information that described each functional module is sent is sent to described log task message queue.
4. method according to claim 2, it is characterized in that, described system also comprises multiple tokens, and the state of described token comprises idle condition and seizure condition, and the step that the balanced control mode of described employing reduces the quantity of the log information that is sent to described log task message queue comprises:
Obtain the token quantity in idle condition in described system;
From described log information, choose the log information with the described token number in idle condition;
The log information of choosing is sent to described log task message queue, remaining log information is carried out to buffer memory.
5. method according to claim 4, is characterized in that, described log information comprises transmitting time,
Described choosing from described log information with the step of the log information of the described token number in idle condition comprises:
According to the sequencing of described transmitting time, described log information is sorted;
First log information from sequence starts, and chooses the log information with the described token number in idle condition.
6. method according to claim 2, is characterized in that, the step that described employing module controls mode reduces the quantity of the log information that is sent to described log task message queue comprises:
The quantity of the log information that interior described each functional module of unit interval of adding up respectively default sends;
If the quantity of the log information that certain functional module sends is greater than default amount threshold, give up the log information that this functional module sends, remaining log information is sent to described log task message queue.
7. method according to claim 6, is characterized in that, described log information comprises the functional module mark that sends this log information,
The step of the quantity of the log information that described interior described each functional module of unit interval of adding up respectively default sends comprises:
Add up respectively the quantity that comprises the log information of same functional module mark in default unit interval, identify the quantity of the log information that corresponding functional module sends using described quantity as described same functional module;
The step of the described log information of giving up this functional module transmission comprises:
Give up the log information that comprises this functional module mark.
8. method according to claim 2, is characterized in that, the step that the meticulous control mode of described employing reduces the quantity of the log information that is sent to described log task message queue comprises:
Judge the log information that whether has repetition in the log information that in the default unit interval, described each functional module sends;
If exist, choose one or more log informations from the log information of described repetition;
Give up the log information not being selected in the log information of described repetition, do not have the log information repeating to be sent to described log task message queue the log information being selected and residue.
9. method according to claim 8, is characterized in that, described log information comprises filename and line number,
In the described log information that judges described each functional module transmission in the default unit interval, whether exist the step of the log information of repetition to comprise:
Filename and line number that the log information that described in obtaining respectively in the default unit interval, each functional module sends comprises;
Judge whether to exist the filename log information identical with line number comprising;
If existence, the log information that the log information of existence repetition in the log information of interior described each functional module transmission of definite default unit interval, and definite filename log information identical with line number comprising is repetition.
10. a control device for system journal, is characterized in that, the system at described system journal place comprises at least one functional module and log task message queue, and described device comprises:
Receiver module, the log information sending for receiving each functional module of described system;
Monitoring module, for monitoring the load condition of described system;
Reduce module, while being greater than default Flow Control threshold value for monitor the load of described system when described monitoring module, reduce the quantity of the log information that is sent to described log task message queue.
11. devices according to claim 10, is characterized in that, described reduction module comprises:
Entirety is controlled submodule, for adopting overall control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
The balanced submodule of controlling, for adopting balanced control mode to reduce the quantity of the log information that is sent to described log task message queue;
And/or,
Module controls submodule, is sent to the quantity of the log information of described log task message queue for adopting module controls mode to reduce;
And/or,
Meticulous control submodule, for adopting meticulous control mode to reduce the quantity of the log information that is sent to described log task message queue.
12. devices according to claim 11, is characterized in that, described entirety is controlled submodule and comprised:
Relatively subelement, for comparing the load of described system and the default Flow Control upper limit and Flow Control lower limit;
The first judgment sub-unit, for prescribing a time limit when the described relatively load that the comparative result of subelement is described system is greater than in default Flow Control, judges current log recording state;
First revises subelement, in the time that the judged result of described the first judgment sub-unit is opening, is revised as closed condition, gives up the log information that described each functional module sends;
The second judgment sub-unit, for prescribing a time limit when the described relatively load that the comparative result of subelement is described system is less than under default Flow Control, judges current log recording state;
Second revises subelement, in the time that the judged result of described the second judgment sub-unit is closed condition, is revised as opening, and the log information that described each functional module is sent is sent to described log task message queue.
13. devices according to claim 11, is characterized in that, described system also comprises multiple tokens, and the state of described token comprises idle condition and seizure condition,
The described balanced submodule of controlling comprises:
Token obtains subelement, for obtaining the token quantity of described system in idle condition;
First chooses subelement, for choosing from described log information and the log information of the described token number in idle condition;
First sends subelement, for the log information of choosing being sent to described log task message queue;
Buffer memory subelement, for carrying out buffer memory by remaining log information.
14. devices according to claim 13, is characterized in that, described log information comprises transmitting time,
Described first chooses subelement, specifically for described log information being sorted according to the sequencing of described transmitting time; First log information from sequence starts, and chooses the log information with the described token number in idle condition.
15. devices according to claim 11, is characterized in that, described module controls submodule comprises:
Statistics subelement, for adding up respectively the quantity of the log information that in default unit interval, described each functional module sends;
Second sends subelement, while being greater than default amount threshold for count the quantity of log information of certain functional module transmission when described statistics subelement, give up the log information that this functional module sends, remaining log information is sent to described log task message queue.
16. devices according to claim 15, is characterized in that, described log information comprises the functional module mark that sends this log information,
Described statistics subelement, specifically for adding up respectively the quantity that comprises the log information of same functional module mark in default unit interval, identifies the quantity of the log information that corresponding functional module sends using described quantity as described same functional module;
Described second sends subelement, specifically for giving up the log information that comprises this functional module mark.
17. devices according to claim 11, is characterized in that, described meticulous control submodule comprises:
Repeat judgment sub-unit, for judging whether the log information of described each functional module transmission in the default unit interval exists the log information of repetition;
Second chooses subelement, in the judged result of described repetition judgment sub-unit when existing, from the log information of described repetition, choose one or more log informations;
The 3rd sends subelement, and the log information not being selected for giving up the log information of described repetition does not have the log information repeating to be sent to described log task message queue the log information being selected and residue.
18. devices according to claim 17, is characterized in that, described log information comprises filename and line number,
Described repetition judgment sub-unit, the filename and the line number that comprise specifically for obtaining respectively the log information of described each functional module transmission in the default unit interval; Judge whether to exist the filename log information identical with line number comprising; If existence, the log information that the log information of existence repetition in the log information of interior described each functional module transmission of definite default unit interval, and definite filename log information identical with line number comprising is repetition.
CN201410053917.8A 2014-02-17 2014-02-17 The control method and device of a kind of system journal Active CN103838659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410053917.8A CN103838659B (en) 2014-02-17 2014-02-17 The control method and device of a kind of system journal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410053917.8A CN103838659B (en) 2014-02-17 2014-02-17 The control method and device of a kind of system journal

Publications (2)

Publication Number Publication Date
CN103838659A true CN103838659A (en) 2014-06-04
CN103838659B CN103838659B (en) 2017-09-01

Family

ID=50802185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410053917.8A Active CN103838659B (en) 2014-02-17 2014-02-17 The control method and device of a kind of system journal

Country Status (1)

Country Link
CN (1) CN103838659B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243587A (en) * 2014-09-18 2014-12-24 苏州阔地网络科技有限公司 Load balancing method and system for message servers
CN105159657A (en) * 2015-06-12 2015-12-16 北京京东尚科信息技术有限公司 Method and system for processing message
CN107135088A (en) * 2016-02-29 2017-09-05 华为技术有限公司 The method and apparatus that daily record is handled in cloud computing system
CN108471387A (en) * 2018-03-27 2018-08-31 中国农业银行股份有限公司 A kind of daily record flow decentralized control method and system
CN108694107A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Backlog monitoring method, device, readable medium and the electronic equipment of message queue
CN108897663A (en) * 2018-06-19 2018-11-27 新华三技术有限公司 log output control method and device
CN108984362A (en) * 2017-05-31 2018-12-11 北京京东尚科信息技术有限公司 Log collection method and device, storage medium, electronic equipment
CN109298990A (en) * 2018-10-17 2019-02-01 平安科技(深圳)有限公司 Log storing method, device, computer equipment and storage medium
CN109656784A (en) * 2018-12-25 2019-04-19 新华三技术有限公司 A kind of log processing method and device
CN110191090A (en) * 2019-04-25 2019-08-30 平安科技(深圳)有限公司 Method of calibration, device, computer equipment and the storage medium of single-sign-on

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100229182A1 (en) * 2009-03-05 2010-09-09 Fujitsu Limited Log information issuing device, log information issuing method, and program
CN101859270A (en) * 2010-04-19 2010-10-13 上海华为技术有限公司 Blog management method, system, master control board and local single-board
CN102208994A (en) * 2010-03-31 2011-10-05 株式会社理光 Log management system, and transmission system, and log management method
CN103226447A (en) * 2012-01-27 2013-07-31 富士通株式会社 Control system and log delivery method
US20130227135A1 (en) * 2011-02-17 2013-08-29 Alcatel-Lucent Monitoring resource congestion in a network processor
CN103312544A (en) * 2013-06-14 2013-09-18 青岛海信传媒网络技术有限公司 Method, equipment and system for controlling terminals during log file reporting
CN103309792A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method and system for controlling log information
CN103348332A (en) * 2011-02-09 2013-10-09 三菱电机株式会社 Log recording apparatus
CN103559120A (en) * 2013-11-13 2014-02-05 北京网秦天下科技有限公司 Log recording method and server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100229182A1 (en) * 2009-03-05 2010-09-09 Fujitsu Limited Log information issuing device, log information issuing method, and program
CN102208994A (en) * 2010-03-31 2011-10-05 株式会社理光 Log management system, and transmission system, and log management method
CN101859270A (en) * 2010-04-19 2010-10-13 上海华为技术有限公司 Blog management method, system, master control board and local single-board
CN103348332A (en) * 2011-02-09 2013-10-09 三菱电机株式会社 Log recording apparatus
US20130227135A1 (en) * 2011-02-17 2013-08-29 Alcatel-Lucent Monitoring resource congestion in a network processor
CN103226447A (en) * 2012-01-27 2013-07-31 富士通株式会社 Control system and log delivery method
CN103309792A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method and system for controlling log information
CN103312544A (en) * 2013-06-14 2013-09-18 青岛海信传媒网络技术有限公司 Method, equipment and system for controlling terminals during log file reporting
CN103559120A (en) * 2013-11-13 2014-02-05 北京网秦天下科技有限公司 Log recording method and server

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243587A (en) * 2014-09-18 2014-12-24 苏州阔地网络科技有限公司 Load balancing method and system for message servers
CN105159657B (en) * 2015-06-12 2019-03-08 北京京东尚科信息技术有限公司 Handle the method and system of message
CN105159657A (en) * 2015-06-12 2015-12-16 北京京东尚科信息技术有限公司 Method and system for processing message
CN107135088A (en) * 2016-02-29 2017-09-05 华为技术有限公司 The method and apparatus that daily record is handled in cloud computing system
CN107135088B (en) * 2016-02-29 2020-09-11 华为技术有限公司 Method and device for processing logs in cloud computing system
CN108694107A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Backlog monitoring method, device, readable medium and the electronic equipment of message queue
CN108984362A (en) * 2017-05-31 2018-12-11 北京京东尚科信息技术有限公司 Log collection method and device, storage medium, electronic equipment
CN108471387A (en) * 2018-03-27 2018-08-31 中国农业银行股份有限公司 A kind of daily record flow decentralized control method and system
CN108897663A (en) * 2018-06-19 2018-11-27 新华三技术有限公司 log output control method and device
CN108897663B (en) * 2018-06-19 2022-08-26 新华三技术有限公司 Log output control method and device
CN109298990A (en) * 2018-10-17 2019-02-01 平安科技(深圳)有限公司 Log storing method, device, computer equipment and storage medium
CN109656784A (en) * 2018-12-25 2019-04-19 新华三技术有限公司 A kind of log processing method and device
CN110191090A (en) * 2019-04-25 2019-08-30 平安科技(深圳)有限公司 Method of calibration, device, computer equipment and the storage medium of single-sign-on

Also Published As

Publication number Publication date
CN103838659B (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN103838659A (en) Method and device for controlling system logs
CN103164268B (en) System optimization method and device
US20140115603A1 (en) Method, apparatus, and system for scheduling processor core in multiprocessor core system
CN110609743A (en) Method, electronic device and computer program product for configuring resources
CN102301664B (en) Method and device for dispatching streams of multicore processor
CN110058940B (en) Data processing method and device in multi-thread environment
US7373467B2 (en) Storage device flow control
US20100037231A1 (en) Method for reading/writing data in a multithread system
CN103888619A (en) Message processing method and system thereof
CN103986585A (en) Message preprocessing method and device
CN113138802B (en) Command distribution device, method, chip, computer device and storage medium
RU2641250C2 (en) Device and method of queue management
CN102591594B (en) Data processing method and equipment
US11341842B2 (en) Metering data management system and computer readable recording medium
CN111538572A (en) Task processing method, device, scheduling server and medium
CN104182360A (en) Multi-core environment trace log processing method and system
CN106407636B (en) Integration result statistical method and device
CN114153609A (en) Resource control method and device, electronic equipment and computer readable storage medium
CN111131066B (en) Traffic shaping method and device
CN107911484B (en) Message processing method and device
CN115981893A (en) Message queue task processing method and device, server and storage medium
CN112580092B (en) Sensitive file identification method and device
CN114090409A (en) Message processing method and device
US9647966B2 (en) Device, method and non-transitory computer readable storage medium for performing instant message communication
US9582438B2 (en) Method and apparatus for identifying cause of interrupt

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant