CN106209427A - Based on Apache service error processing method and system in linux - Google Patents
Based on Apache service error processing method and system in linux Download PDFInfo
- Publication number
- CN106209427A CN106209427A CN201610491112.0A CN201610491112A CN106209427A CN 106209427 A CN106209427 A CN 106209427A CN 201610491112 A CN201610491112 A CN 201610491112A CN 106209427 A CN106209427 A CN 106209427A
- Authority
- CN
- China
- Prior art keywords
- event
- apache service
- event type
- apache
- frequency
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
- H04L41/064—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis involving time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of based on Apache service error processing method and system in linux, including: analyze the event type of error event in Apache Service events source;Add up the frequency of every kind of event type;Whether detection exists the frequency event type more than N in the first scheduled duration;If existing, then described frequency is more than the error event corresponding to the event type of N, is labeled as Apache service fault form event;Whether the event type judging described Apache service fault form event is http-server mistake;The most then restart http-server;Visible, Apache service error event is classified and processed, when Apache service error event is http-server mistake, by restarting HTTP service, thus prevents from making a mistake the phenomenon causing Web site normally to use because of Apache service.
Description
Technical field
The present invention relates to Apache service error processing technology field, more particularly, it relates to one is based in linux
Apache service error processing method and system.
Background technology
Along with the development of cybertimes, the life style of people there occurs change.Computer techno-stress has become as people
A part for life.The study of people, working and living all be unable to do without computer, such as data check, work exchange, life shopping
Etc..In the most substantial amounts of website, building of the Web site under a lot of linux is all carried out according to Apache service.Apache
Supporting numerous characteristics, safety, access speed are main characteristic soon, because its table in terms of function, performance and safety again
The most all ratios are more prominent, can preferably meet the application demand of Web server user.If Apache service there occurs mistake,
Then can affect the availability of Web site.
Therefore, how to Apache service error event handling, it is to avoid the availability affecting Web site is art technology
The problem that personnel need to solve.
Summary of the invention
It is an object of the invention to provide a kind of based on Apache service error processing method and system in linux, with reality
Now to Apache service error event handling, it is to avoid affect the availability of Web site.
For achieving the above object, following technical scheme is embodiments provided:
A kind of based on Apache service error processing method in linux, including:
Analyze the event type of error event in Apache Service events source;
Add up the frequency of every kind of event type;
Whether detection exists the frequency event type more than N in the first scheduled duration;Wherein, N is positive integer;
If existing, then described frequency being more than the error event corresponding to the event type of N, being labeled as Apache clothes
Business fault form event;
Whether the event type judging described Apache service fault form event is http-server mistake;
The most then restart http-server.
Wherein, described in restart http-server after, also include:
Generate the journal file corresponding with described Apache service fault form event.
Wherein, if the event type of described Apache service fault form event is not http-server mistake, then generate
With the described Apache service fault corresponding information of form event, and/or, journal file.
Wherein, the event type of error event in described analysis Apache Service events source, including:
Triggering timing device starts timing;
The event type of the error event in analysis Apache Service events source successively, and by the mistake of every kind of event type
The frequency of event recorded the enumerator of correspondence.
Wherein, whether detection exists the frequency event type more than N in the first scheduled duration, including:
Whether the timing duration detecting described timer is the first scheduled duration;
The most then detect the event type that whether there is frequency in described enumerator more than n times;
If existing, then error event corresponding for described event type is labeled as Apache service fault form event.
Wherein, after a length of first scheduled duration when the timing of described timer, and interval the second scheduled duration, again touch
Sending out timer described resets and starts timing, again triggers described counter O reset and starts counting up.
Wherein, whether detection exists the frequency event type more than N in the first scheduled duration, including:
Whether detection exists the frequency event type more than 3 in 10second.
A kind of based on Apache service error processing system in linux, including:
Analyze module, for analyzing the event type of error event in Apache Service events source;
Statistical module, for adding up the frequency of every kind of event type;
Whether detection module, exist the frequency event type more than N for detection in the first scheduled duration;If depositing
, then triggered mark module;
Described mark module, is used for the error event being more than by described frequency corresponding to the event type of N, is labeled as
Apache service fault form event;Wherein, N is positive integer;
Whether judge module, be http-server for judging the event type of described Apache service fault form event
Mistake;The most then trigger and restart module;
Described restart module, be used for restarting http-server.
Wherein, also include:
Journal file generation module, for generating and the described Apache service fault corresponding journal file of form event.
Wherein, also include:
Information generation module, being used at the event type of described Apache service fault form event is not http clothes
Business device mistake, generates the information corresponding with described Apache service fault form event.
By above scheme, the one that the embodiment of the present invention provides processes based on Apache service error in linux
Method, including: analyze the event type of error event in Apache Service events source;Add up the generation time of every kind of event type
Number;Whether detection exists the frequency event type more than N in the first scheduled duration;If existing, then by described generation time
The number error event corresponding to event type more than N, is labeled as Apache service fault form event;Wherein, N is the most whole
Number;Whether the event type judging described Apache service fault form event is http-server mistake;The most then restart
Http-server;Visible, in the present embodiment, Apache service error event is classified and processed, such as, works as Apache
When service error event is http-server mistake, by restarting HTTP service, thus prevent because Apache service makes a mistake
Cause the phenomenon that Web site cannot normally use;The invention also discloses one to process based on Apache service error in linux
System, can realize above-mentioned technique effect equally.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is that disclosed in the embodiment of the present invention, one is illustrated based on Apache service error process flow in linux
Figure;
Fig. 2 is a kind of based on Apache service error processing system structured flowchart in linux disclosed in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the invention discloses a kind of based on Apache service error processing method and system in linux, to realize
To Apache service error event handling, it is to avoid affect the availability of Web site.
See Fig. 1, the one that the embodiment of the present invention provides based on Apache service error processing method in linux, including:
The event type of error event in S101, analysis Apache Service events source;
Wherein, analyze the event type of error event in Apache Service events source to include:
Triggering timing device starts timing;
The event type of the error event in analysis Apache Service events source successively, and by the mistake of every kind of event type
The frequency of event recorded the enumerator of correspondence.
Concrete, need timing while adding up the frequency of every kind of event type in the present embodiment;Here system
The frequency counting every kind of event type is: record same type of frequency, such as: if analyzing Apache clothes successively
The event type of the error event in business event source is:
A,A,A,B,B,C,C,C,C,F;The frequency of the most each event type is: the frequency of A is 3, the generation of B
Number of times is 2, and the frequency of C is 4, and the frequency of F is 1.
S102, add up the frequency of every kind of event type
Whether S103, detection exist the frequency event type more than N in the first scheduled duration;Wherein, N is the most whole
Number;If exist, then perform S104, by described frequency more than N event type corresponding to error event, be labeled as
Apache service fault form event;
Wherein, whether detection exists the frequency event type more than N in the first scheduled duration, including:
Whether the timing duration detecting described timer is the first scheduled duration;
The most then detect the event type that whether there is frequency in described enumerator more than n times;
If existing, then error event corresponding for described event type is labeled as Apache service fault form event.
Concrete, in the present embodiment, diagnose according to the error event in Apache Service events source, diagnose principle
Being to be analyzed according to rule, rule refers in certain time interval T, same class event generation n times, then explanation can produce fault,
And Apache service error message event is labeled as Apache service fault form event.
Wherein, whether detection exists the frequency event type more than N in the first scheduled duration, including: detect
The frequency event type more than 3 whether is there is in 10second.
It is understood that above-mentioned diagnosis principle can be set according to the empirical value of user, such as, set diagnosis
Principle is: engine serd.service.network.apache{N=2, T=10seconds};I.e. at 10seconds
The frequency of class event is 2.
Such as in example noted hereinabove, the frequency of A is 3, and the frequency of B is 2, and the frequency of C is
The frequency of 4, F is 1, is more than the frequency of different event type in 24hours;If setting N as 3, it is seen then that then only
The frequency of the error event having event type to be C is more than 3, then be labeled as by the error event that event type is C
Apache service fault form event.
Wherein, after a length of first scheduled duration when the timing of described timer, and interval the second scheduled duration, again touch
Sending out timer described resets and starts timing, again triggers described counter O reset and starts counting up.
It is understood that in the present embodiment, detect after the first scheduled duration is T, the second scheduled duration can be stopped
Afterwards, then detecting, the second scheduled duration here can be arranged voluntarily;Such as: if thinking, time interval is little, then second is arranged
Scheduled duration is 1second, if thinking, time interval is long, then can arrange scheduled duration is 3second.
Whether S105, the event type judging described Apache service fault form event are http-server mistake;If
It is then to perform S106, restart http-server.
Wherein, if the event type of described Apache service fault form event is not http-server mistake, then generate
With the described Apache service fault corresponding information of form event, and/or, journal file
Wherein, described in restart http-server after, also include:
Generate and the described Apache service fault corresponding journal file of form event.
Concrete, in the present embodiment, if being judged to http service error according to event type, then restart http and service also
Generate journal file.If non-http mistake, then alert, point out user profile, and generate corresponding journal file.
Concrete, as a example by be apparent from the specifying information of the fault that Apache service occurs, generate and service with Apache
Journal file corresponding to fault form event;At least including event type in journal file, event frequency, event are sent out
The raw time, the details such as event how process.
The processing system provided the embodiment of the present invention below is introduced, and processing system described below is with described above
Processing method can be cross-referenced.
See Fig. 2, the one that the embodiment of the present invention provides based on Apache service error processing system in linux, including:
Analyze module 100, for analyzing the event type of error event in Apache Service events source;
Statistical module 200, for adding up the frequency of every kind of event type;
Whether detection module 300, exist the frequency event type more than N for detection in the first scheduled duration;
If existing, then triggered mark module 400;
Described mark module 400, is used for the error event being more than by described frequency corresponding to the event type of N, mark
It is designated as Apache service fault form event;Wherein, N is positive integer;
Whether judge module 500, be http clothes for judging the event type of described Apache service fault form event
Business device mistake;The most then trigger and restart module 600;
Described restart module 600, be used for restarting http-server.
Based on technique scheme, also include at this programme:
Journal file generation module, for generating and the described Apache service fault corresponding journal file of form event.
Based on technique scheme, also include at this programme:
Information generation module, being used at the event type of described Apache service fault form event is not http clothes
Business device mistake, generates the information corresponding with described Apache service fault form event.
Based on technique scheme, include at statistical module 200 described in this programme:
Timing module, starts timing for triggering timing device;
Counting module, for adding up the frequency of every kind of event type, and recorded the enumerator of correspondence.
The one that the embodiment of the present invention provides based on Apache service error processing method in linux, including: analyze
The event type of error event in Apache Service events source;Add up the frequency of every kind of event type;Detect pre-first
The frequency event type more than N whether is there is in timing is long;If existing, then described frequency is more than the event class of N
Error event corresponding to type, is labeled as Apache service fault form event;Wherein, N is positive integer;Judge described Apache
Whether the event type of service fault form event is http-server mistake;The most then restart http-server;Visible,
In the present embodiment, Apache service error event is classified and processed, such as, when Apache service error event is http
During server mistake, by restarting HTTP service, thus prevent from causing the Web site cannot be normal because Apache service makes a mistake
The phenomenon used;The invention also discloses a kind of based on Apache service error processing system in linux, can realize above-mentioned equally
Technique effect.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment, identical similar portion sees mutually.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.
Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein
General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one
The widest scope caused.
Claims (10)
1. one kind based on Apache service error processing method in linux, it is characterised in that including:
Analyze the event type of error event in Apache Service events source;
Add up the frequency of every kind of event type;
Whether detection exists the frequency event type more than N in the first scheduled duration;Wherein, N is positive integer;
If existing, then described frequency being more than the error event corresponding to the event type of N, being labeled as Apache service event
Barrier form event;
Whether the event type judging described Apache service fault form event is http-server mistake;
The most then restart http-server.
The most according to claim 1 based on Apache service error processing method in linux, it is characterised in that described heavy
After opening http-server, also include:
Generate the journal file corresponding with described Apache service fault form event.
The most according to claim 2 based on Apache service error processing method in linux, it is characterised in that if described
The event type of Apache service fault form event is not http-server mistake, then generate and described Apache service fault
The corresponding information of form event, and/or, journal file.
4. according to described in any one in claim 1-3 based on Apache service error processing method in linux, its feature
It is, the event type of error event in described analysis Apache Service events source, including:
Triggering timing device starts timing;
The event type of the error event in analysis Apache Service events source successively, and by the error event of every kind of event type
Frequency recorded correspondence enumerator.
The most according to claim 4 based on Apache service error processing method in linux, it is characterised in that to detect
The frequency event type more than N whether is there is in first scheduled duration, including:
Whether the timing duration detecting described timer is the first scheduled duration;
The most then detect the event type that whether there is frequency in described enumerator more than n times;
If existing, then error event corresponding for described event type is labeled as Apache service fault form event.
The most according to claim 5 based on Apache service error processing method in linux, it is characterised in that when described
After a length of first scheduled duration during the timing of timer, and interval the second scheduled duration, again trigger described timer and reset also
Start timing, again trigger described counter O reset and start counting up.
The most according to claim 6 based on Apache service error processing method in linux, it is characterised in that to detect
The frequency event type more than N whether is there is in first scheduled duration, including:
Whether detection exists the frequency event type more than 3 in 10second.
8. one kind based on Apache service error processing system in linux, it is characterised in that including:
Analyze module, for analyzing the event type of error event in Apache Service events source;
Statistical module, for adding up the frequency of every kind of event type;
Whether detection module, exist the frequency event type more than N for detection in the first scheduled duration;If existing,
Then triggered mark module;
Described mark module, is used for the error event being more than by described frequency corresponding to the event type of N, is labeled as
Apache service fault form event;Wherein, N is positive integer;
Whether judge module, be that http-server is wrong for judging the event type of described Apache service fault form event
By mistake;The most then trigger and restart module;
Described restart module, be used for restarting http-server.
The most according to claim 8 based on Apache service error processing system in linux, it is characterised in that also to include:
Journal file generation module, for generating and the described Apache service fault corresponding journal file of form event.
The most according to claim 9 based on Apache service error processing system in linux, it is characterised in that also to wrap
Include:
Information generation module, is not http-server for the event type in described Apache service fault form event
Mistake, generates the information corresponding with described Apache service fault form event.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610491112.0A CN106209427A (en) | 2016-06-28 | 2016-06-28 | Based on Apache service error processing method and system in linux |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610491112.0A CN106209427A (en) | 2016-06-28 | 2016-06-28 | Based on Apache service error processing method and system in linux |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106209427A true CN106209427A (en) | 2016-12-07 |
Family
ID=57462582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610491112.0A Pending CN106209427A (en) | 2016-06-28 | 2016-06-28 | Based on Apache service error processing method and system in linux |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106209427A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100186004A1 (en) * | 2009-01-20 | 2010-07-22 | Scott Allen Will | Data analysis system and method |
CN104144063A (en) * | 2013-05-08 | 2014-11-12 | 朱烨 | Website security monitoring and alarming system based on log analysis and firewall security matrixes |
CN105656675A (en) * | 2016-01-20 | 2016-06-08 | 浪潮集团有限公司 | Method for realizing switch system management by adopting LAMP |
-
2016
- 2016-06-28 CN CN201610491112.0A patent/CN106209427A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100186004A1 (en) * | 2009-01-20 | 2010-07-22 | Scott Allen Will | Data analysis system and method |
CN104144063A (en) * | 2013-05-08 | 2014-11-12 | 朱烨 | Website security monitoring and alarming system based on log analysis and firewall security matrixes |
CN105656675A (en) * | 2016-01-20 | 2016-06-08 | 浪潮集团有限公司 | Method for realizing switch system management by adopting LAMP |
Non-Patent Citations (1)
Title |
---|
吴飞: "基于性能分析模型的Apache自主管理系统研究与设计", 《中国优秀硕士学位论文全文数据库》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9298525B2 (en) | Adaptive fault diagnosis | |
JP4866861B2 (en) | Method and system for monitoring transaction-based systems | |
US9294338B2 (en) | Management computer and method for root cause analysis | |
US20150347268A1 (en) | Bottleneck Detector Application Programming Interface | |
CN103902442B (en) | A kind of cloud software health degree evaluating method and system | |
CN101853346A (en) | Virtual machine snapshot and damage suppress | |
WO2019006654A1 (en) | Financial self-service equipment maintenance dispatch generation method, hand-held terminal and electronic device | |
EP3798848B1 (en) | Analyzing large-scale data processing jobs | |
WO2017114152A1 (en) | Service dial testing method, apparatus and system | |
WO2016188100A1 (en) | Information system fault scenario information collection method and system | |
CN102567185B (en) | Monitoring method of application server | |
US20140164840A1 (en) | Method and system for monitoring transaction execution on a computer network and computer storage medium | |
CN106656604A (en) | Microservice request management method, microservice controller and high-concurrence microservice architecture | |
JP6413537B2 (en) | Predictive failure notification device, predictive notification method, predictive notification program | |
JP2012150805A (en) | Systems and methods for detecting fraud associated with systems application processing | |
EP2609714A1 (en) | Isolation of problems in a virtual environment | |
CN104866296A (en) | Data processing method and device | |
CN111008105A (en) | Distributed system call relation visualization method and device | |
CN106201753B (en) | Method and system for processing PCIE errors in linux | |
CN103731315A (en) | Server failure detecting method | |
CN106209427A (en) | Based on Apache service error processing method and system in linux | |
TWI644228B (en) | Server and monitoring method thereof | |
JP6984119B2 (en) | Monitoring equipment, monitoring programs, and monitoring methods | |
JP4575020B2 (en) | Failure analysis device | |
AU2014200806B1 (en) | Adaptive fault diagnosis |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |