CN105450471A - Method and primary server for monitoring states of Tomcat - Google Patents

Method and primary server for monitoring states of Tomcat Download PDF

Info

Publication number
CN105450471A
CN105450471A CN201510881425.2A CN201510881425A CN105450471A CN 105450471 A CN105450471 A CN 105450471A CN 201510881425 A CN201510881425 A CN 201510881425A CN 105450471 A CN105450471 A CN 105450471A
Authority
CN
China
Prior art keywords
tomcat
state parameter
state
predetermined interval
monitoring
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
Application number
CN201510881425.2A
Other languages
Chinese (zh)
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201510881425.2A priority Critical patent/CN105450471A/en
Publication of CN105450471A publication Critical patent/CN105450471A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention relates to the field of computers, provides a method and a primary server for monitoring states of a Tomcat, and aims to monitor the states of the Tomcat automatically. The method comprises the following steps: acquiring one or more state parameters of the Tomcat from a Tomcat state page; judging whether the state parameters meet the preset conditions showing that the Tomcat operates normally or not; and outputting prompt information showing that the Tomcat is in an abnormal state when the state parameters do not meet the preset conditions.

Description

A kind of method and master server of monitoring Tomcat state
Technical field
The present invention relates to computer realm, particularly relate to a kind of method and master server of monitoring Tomcat state.
Background technology
Tom cat Tomcat is a www application server, operates in master server, belongs to lightweight application server, is commonly used under the occasion that middle-size and small-size system and concurrent users are not a lot.Current, the monitoring of Tomcat is manually performed by keeper.Specifically, when keeper think need monitoring Tomcat time, enter the server administration interface of Tomcat, then from administration interface, search each state parameter, finally, keeper evaluates the state of Tomcat according to the state parameter found.If assessment result represents that Tomcat is not in good state, then keeper safeguards Tomcat.
But, because keeper can not monitor Tomcat state at any time, so just there is monitoring possibility not in time in the method relying on personal monitoring Tomcat state in prior art.
Summary of the invention
The embodiment of the present application provides a kind of method and master server of monitoring Tomcat state, automatically monitors Tomcat state for realizing.
First aspect, this application provides a kind of method of monitoring Tomcat state, comprising:
At least one state parameter of described Tomcat is obtained from Tomcat status page;
Judge whether at least one state parameter described meets that to represent that described Tomcat normally runs pre-conditioned;
When at least one state parameter described do not meet described pre-conditioned time, export for representing that described Tomcat is in the information of abnormality.
Optionally, before at least one state parameter obtaining described Tomcat from Tomcat status page, also comprise:
Receive the state parameter of the monitoring modular for monitoring described Tomcat state at the described Tomcat of current monitoring moment acquisition; Wherein, described monitoring module obtains the state parameter of described Tomcat according to predetermined interval;
Based on the state parameter of the described Tomcat that the described current monitoring moment obtains, upgrade described Tomcat status page.
Optionally, judge that whether at least one state parameter described meets that to represent that described Tomcat normally runs pre-conditioned, comprising:
Obtain at least one default Tomcat state parameter scope corresponding with at least one state parameter described;
Judge at least one state parameter described whether at least one default Tomcat state parameter scope described.
Optionally, judge at least one state parameter described whether meet represent that described Tomcat normally runs pre-conditioned before, also comprise:
Judge whether at least one state parameter described has the first state parameter;
When at least one state parameter described has described first state parameter, calculate the mean value of described first state parameter in the monitoring moment to described current monitoring moment.
Optionally, when the visit capacity of described Tomcat is less than threshold value, described predetermined interval is the first predetermined interval; When the visit capacity of described Tomcat is more than or equal to described threshold value, described predetermined interval is the second predetermined interval being greater than described first predetermined interval.
Second aspect, this application provides a kind of master server, comprising:
Obtain unit, for obtaining at least one state parameter of described Tomcat from Tomcat status page;
Judging unit, for judging whether at least one state parameter described meets that to represent that described Tomcat normally runs pre-conditioned;
Tip element, for do not meet when at least one state parameter described described pre-conditioned time, export for representing that described Tomcat is in the information of abnormality.
Optionally, described master server also comprises:
Receiving element, for before at least one state parameter obtaining described Tomcat from Tomcat status page, receives the state parameter of the monitoring modular for monitoring described Tomcat state at the described Tomcat of current monitoring moment acquisition; Wherein, described monitoring module obtains the state parameter of described Tomcat according to predetermined interval;
Updating block, for the state parameter of the described Tomcat based on described current monitoring moment acquisition, upgrades described Tomcat status page.
Optionally, described judging unit is for obtaining at least one default Tomcat state parameter scope corresponding with at least one state parameter described; Judge at least one state parameter described whether at least one default Tomcat state parameter scope described.
Optionally, described master server also comprises:
Judgment sub-unit, for judge at least one state parameter described whether meet represent that described Tomcat normally runs pre-conditioned before, judge whether at least one state parameter described has the first state parameter;
Computing unit, for when at least one state parameter described has described first state parameter, calculates the mean value of described first state parameter in the monitoring moment to described current monitoring moment.
Optionally, when the visit capacity of described Tomcat is less than threshold value, described predetermined interval is the first predetermined interval; When the visit capacity of described Tomcat is more than or equal to described threshold value, described predetermined interval is the second predetermined interval being greater than described first predetermined interval.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
In the technical scheme of the embodiment of the present application, master server obtains at least one state parameter of Tomcat from Tomcat status page.Then judging that the whether satisfied expression Tomcat of at least one state parameter normally runs pre-conditioned, when not meeting pre-conditioned, exporting for representing that Tomcat is in the information of abnormality.So master server by judging whether at least one state parameter recorded in Tomcat status page meets pre-conditioned, and then realizes automatically monitoring Tomcat state.Not only reduce artificial dependence, but also can be avoided personal monitoring not in time, export information prompting keeper when at least one state parameter does not meet pre-conditioned in time and safeguard.So, solve in prior art the technical problem relying on personal monitoring Tomcat state, achieve the technique effect of monitoring Tomcat state automatically.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of monitoring Tomcat state in the embodiment of the present application;
Fig. 2 is the structural representation of master server in the embodiment of the present application.
Embodiment
The embodiment of the present application provides a kind of method and master server of monitoring Tomcat state, solves the technical problem relying on personal monitoring Tomcat state in prior art, realizes the technique effect of monitoring Tomcat state automatically.
In order to solve the problems of the technologies described above, the technical scheme general thought that the application provides is as follows:
Master server by judging whether at least one state parameter recorded in Tomcat status page meets pre-conditioned, and then realizes automatically monitoring Tomcat state.Not only reduce artificial dependence, but also can be avoided personal monitoring not in time, export information prompting keeper when at least one state parameter does not meet pre-conditioned in time and safeguard.So, solve in prior art the technical problem relying on personal monitoring Tomcat state, achieve the technique effect of monitoring Tomcat state automatically.
Below by accompanying drawing and specific embodiment, technical solution of the present invention is described in detail, the specific features being to be understood that in the embodiment of the present application and embodiment is the detailed description to technical scheme, instead of the restriction to technical scheme, when not conflicting, the technical characteristic in the embodiment of the present application and embodiment can combine mutually.
Term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
The application's first aspect provides a kind of method of monitoring Tomcat state.In the embodiment of the present application, Tomcat application server (being called for short " Tomcat " hereinafter), for operating in the application in master server.Further, in a master server, one or more Tomcat can be run, concrete restriction is not done to the volume cost application of Tomcat.The method of monitoring when the state of technical scheme to each Tomcat in master server application the embodiment of the present application is identical.
Please refer to Fig. 1, the method for the monitoring Tomcat in the embodiment of the present application comprises:
S101: at least one state parameter obtaining described Tomcat from Tomcat status page.
S102: judge whether at least one state parameter described meets that to represent that described Tomcat normally runs pre-conditioned.
S103: when at least one state parameter described do not meet described pre-conditioned time, export for representing that described Tomcat is in the information of abnormality.
Specifically, in the embodiment of the present application, Tomcat status page is for recording the state parameter of Tomcat, such as JVM (java virtual machine, JavaVirtualMachine) memory usage, current thread number, Tomcat processing time, Tomcat number of request and network turnover flow etc.So master server can obtain at least one state parameter of Tomcat from Tomcat status page.In specific implementation process, master server only can obtain a state parameter, such as JVM memory usage, also multiple state parameter can be obtained, such as JVM memory usage and current thread number two state parameters, or Tomcat processing time, Tomcat number of request and network turnover flow three state parameters, the application does not do concrete restriction.
After obtaining at least one state parameter, in S102, it is pre-conditioned that master server judges whether at least one state parameter meets.Specifically, the pre-conditioned condition being expression Tomcat and normally running in the embodiment of the present application, can comprise the rated range of multiple parameter, such as JVM memory usage is 20% to 30%, current thread number is no more than 500, and/or Tomcat number of request is no more than 3000 etc.
When at least one state parameter meets pre-conditioned, represent that Tomcat state is normal, no exceptions, then master server continues monitoring Tomcat.And when at least one state parameter does not meet pre-conditioned, represent that Tomcat state is abnormal, occur abnormal, therefore in S103, master server input is for representing that Tomcat is in the information of abnormality.
Specifically, when master server judges that at least one parameter of Tomcat does not meet pre-conditioned, determine to monitor Tomcat abnormal, in order to point out keeper to safeguard Tomcat in time, master server points out keeper by information.
In specific implementation process, information can be specially Word message, such as " find Tomcat abnormal, position: * * *, Exception Type: * * * ", and then at this Word message of display screen display of master server.Or can also be information of voice prompt, such as, " find that Tomcat is abnormal, position: * * *, Exception Type: * * * ", and then export this voice messaging by the audio output device of master server.In specific implementation process, the application those of ordinary skill in the field can be arranged according to actual, and the application does not do concrete restriction.
As can be seen from foregoing description, master server by judging whether at least one state parameter recorded in Tomcat status page meets pre-conditioned, and then realizes automatically monitoring Tomcat state.Not only reduce artificial dependence, but also can be avoided personal monitoring not in time, export information prompting keeper when at least one state parameter does not meet pre-conditioned in time and safeguard.So, solve in prior art the technical problem relying on personal monitoring Tomcat state, achieve the technique effect of monitoring Tomcat state automatically.
Specifically, in order to realize master server, Tomcat being monitored automatically, on the Tomcat needing monitoring, creating monitoring modular in advance, and monitoring modular is associated with needing the Tomcat monitored, monitoring modular is mapped mutually with corresponding Tomcat status page simultaneously.The major function of monitoring modular catches Tomcat real-time status parameter, and be pushed to master server, and then the state parameter that monitoring modular pushes is mapped in corresponding Tomcat status page by master server.In specific implementation process, monitoring modular starting up can be set, and then after the Tomcat of monitoring modular association starts, monitoring modular just can start monitors to Tomcat.
Further, the state parameter continuing to catch Tomcat in order to avoid monitoring modular causes burden to Tomcat, and the application those of ordinary skill in the field can in advance for monitoring modular arranges predetermined interval, such as 5s, 10s or 1min etc.And then from monitoring modular Startup time, monitoring modular carries out first time seizure, and after this every predetermined interval, monitoring modular determines that the current monitoring moment arrives, and catches the state parameter of a Tomcat.
So, before S101, also comprise:
Receive the state parameter of the monitoring modular for monitoring described Tomcat state at the described Tomcat of current monitoring moment acquisition; Wherein, described monitoring module obtains the state parameter of described Tomcat according to predetermined interval;
Based on the state parameter of the described Tomcat that the described current monitoring moment obtains, upgrade described Tomcat status page.
Specifically, monitoring modular is according to predetermined interval, and such as 15s, catches the state parameter of a Tomcat, the state parameter of the Tomcat then captured in the current monitoring moment is pushed to master server, and then master server receives the state parameter of the Tomcat that monitoring modular obtains.Then, according to the mapping of this monitoring modular and Tomcat status page, determine that the state parameter received is specially the state parameter of which Tomcat, and which Tomcat status page the state parameter received should be recorded in.
After determining, master server just based on the state parameter of the Tomcat of current monitoring moment acquisition, upgrades Tomcat status page.Specifically, in the embodiment of the present application, the state parameter of the Tomcat that the current monitoring moment obtains is kept in Tomcat status page by master server, and will be revised as the current monitoring moment update time, thus makes the last state that can include Tomcat in Tomcat status page.
Wherein, the state parameter of the Tomcat received is kept in Tomcat status page by with fixing string format by master server.Further, the state parameter received each time is all preserved, so that keeper checks as an independent data.
Further, judge in S102 whether at least one state parameter meets pre-conditioned, in the embodiment of the present application, specifically comprise:
Obtain at least one default Tomcat state parameter scope corresponding with at least one state parameter described;
Judge at least one state parameter described whether at least one default Tomcat state parameter scope described.
In the embodiment of the present application, default Tomcat state parameter scope is stored in master server.Specifically, the rated range that Tomcat state parameter scope is Tomcat each state parameter when normally running is preset.In other words, when each state parameter of Tomcat is in rated range, Tomcat is normal, or Tomcat can bear.Preset the scope including but not limited to JVM memory usage, current thread number, number of request, network turnover amount and Tomcat processing time etc. in Tomcat state parameter scope.So, when judging whether at least one state parameter meets pre-conditioned, be exactly specifically judge at least one state parameter whether in the rated range of correspondence.
So, after master server obtains at least one state parameter, obtain at least one default Tomcat state parameter scope corresponding at least one state parameter further.For example, suppose that at least one state parameter is specially JVM memory usage 40%, current thread number 550 and number of request 3204.So master server obtains JVM memory usage scope [20%, 30%], current thread number scope [0,500] and the number of request scope [0,3000] in default Tomcat state parameter scope further.
Then, at least one state parameter is judged whether within the scope of at least one default Tomcat state parameter.When in the rated range of each state parameter at least one state parameter all in correspondence, represent that at least one state parameter meets pre-conditioned, Tomcat state is normal; When in the one or more rated ranges not in correspondence at least one state parameter, represent that at least one state parameter does not meet pre-conditioned, Tomcat abnormal state.
Continue to use example above, the scope of JVM memory usage is [20%, 30%], and master server judges that JVM memory usage 40% is greater than the upper limit 30%, so JVM memory usage is not in rated range; The scope of current thread number is [0,500], and master server judges that current thread number 550 is greater than the upper limit 500, so current thread number over range, it is dangerous that Tomcat has faced collapse; Number of request scope is [0,3000], and master server judges that number of request 3204 is more than 3000, so number of request is not in rated range.So, three state parameters are not all in the default Tomcat state parameter scope of correspondence, so at least one state parameter does not meet pre-conditioned, master server determines that Tomcat state needs to safeguard, exports information.
Further, in the embodiment of the present application, in order to more reasonably monitor Tomcat state, judge whether at least one state parameter meet that expression Tomcat normally runs pre-conditioned before, also comprise:
Judge whether at least one state parameter described has the first state parameter;
When at least one state parameter described has described first state parameter, calculate the mean value of described first state parameter in the monitoring moment to described current monitoring moment.
Specifically, monitoring modular is specially the instantaneous value of Tomcat state at the state parameter that the current monitoring moment captures, but, for some parameters, such as JVM memory usage, Tomcat processing time and number of request etc., mean value more can embody the time of day of Tomcat.So, judge at least one state parameter whether meet pre-conditioned before, master server first can also judge whether there is the first state parameter at least one state parameter further.
Specifically, the first state parameter is exactly the parameter that mean value more can embody the time of day of Tomcat.Be previously provided with the first state parameter in master server and be specially which state parameter, and then at least one state parameter obtained and the first state parameter preset are contrasted, thus judge whether there is the first state parameter at least one state parameter, and the first state parameter specifically which.
For example, suppose that the first state parameter preset is specially JVM memory usage, Tomcat processing time, number of request and network turnover amount.At least one state parameter obtained is JVM memory usage, Tomcat processing time, number of request and current thread number.By contrast, judge that JVM memory usage, Tomcat processing time and number of request are the first state parameter.
When there being the first state parameter at least one state parameter, calculate a monitoring moment to the first state parameter mean value in the current monitoring moment.Specifically, in the embodiment of the present application, calculate the first state parameter mean value to be specially on the first state parameter the value in a monitoring moment and the value in current monitoring moment and divided by two.Such as going up a monitoring moment JVM memory usage is 20%, and current monitoring moment JVM memory usage is 40%, then the mean value of JVM memory usage is (20%+40%)/2=30%.
Follow-up judge whether at least one state parameter meets pre-conditioned time, then specifically use the mean value of the first state parameter to judge for the first state parameter.Continue to use example above, suppose that at least one state parameter is specially JVM memory usage 40%, current thread number 550 and number of request 3204.Master server determines that JVM memory usage and number of request are the first state parameter, and obtains JVM memory usage 20% and the number of request 200 in a upper monitoring moment in a monitoring moment.And then the mean value of JVM memory usage is 30%, the mean value of number of request is 1702.
The scope of JVM memory usage is [20%, 30%], and master server judges that JVM memory usage 30% is in [20%, 30%], so JVM memory usage is in rated range; The scope of current thread number is [0,500], and master server judges that current thread number 550 is greater than the upper limit 500, so current thread number over range, it is dangerous that Tomcat has faced collapse; Number of request scope is [0,3000], and master server judges that number of request 1702 is not more than 3000, so number of request is in rated range.So, in three state parameters, current thread number is not in the default Tomcat state parameter scope of correspondence, so at least one state parameter does not meet pre-conditioned, master server determines that Tomcat state needs to safeguard, exports information.
Optionally, the state parameter frequently catching Tomcat in order to avoid monitoring modular causes Tomcat to bear, and in the embodiment of the present application, when the visit capacity of Tomcat is less than threshold value, predetermined interval is the first predetermined interval; When the visit capacity of Tomcat is more than or equal to threshold value, predetermined interval is the second predetermined interval being greater than the first predetermined interval.
Specifically, when the visit capacity of Tomcat exceedes threshold value, represent Tomcat current business, if prefixed time interval is too small, the frequent state parameter catching Tomcat, will increase the weight of the burden of Tomcat further.So predetermined interval now should be set to the first larger predetermined interval, such as 1min, 2min or 1.5min etc.And when the visit capacity of Tomcat is less than or equal to threshold value, represent that Tomcat is current not busy, so the state parameter catching Tomcat would not cause Tomcat, over-burden.So predetermined interval now can be set to the second predetermined interval being less than the first predetermined interval, such as 20s or 10s etc.Specifically, in the embodiment of the present application, threshold value is arranged according to the concrete condition of Tomcat by the application those of ordinary skill in the field, and visit capacity can be represented by number of request.
For example, given threshold is number of request 2000.When number of request is more than 2000, arranging the first predetermined interval is such as 1min.When number of request is less than or equal to 2000, arranging the second predetermined interval example is 10s.Field described in the application can be arranged according to actual, and the application does not do concrete restriction.
Based on the inventive concept same with the method for monitoring Tomcat state in previous embodiment, the application's second aspect also provides a kind of master server, as shown in Figure 2, comprising:
Obtain unit 201, for obtaining at least one state parameter of Tomcat from Tomcat status page;
Judging unit 202, pre-conditioned for judging that the whether satisfied expression Tomcat of at least one state parameter normally runs;
Tip element 203, for when at least one state parameter does not meet pre-conditioned, exports for representing that Tomcat is in the information of abnormality.
Further, master server also comprises:
Receiving element, for before at least one state parameter obtaining Tomcat from Tomcat status page, receives the state parameter of the monitoring modular for monitoring Tomcat state at the Tomcat of current monitoring moment acquisition; Wherein, monitoring module obtains the state parameter of Tomcat according to predetermined interval;
Updating block, for the state parameter of the Tomcat based on current monitoring moment acquisition, upgrades Tomcat status page.
Specifically, in the embodiment of the present application, judging unit 202 is for obtaining at least one default Tomcat state parameter scope corresponding with at least one state parameter; Judge at least one state parameter whether at least one default Tomcat state parameter scope.
Further, master server also comprises:
Judgment sub-unit, for judge at least one state parameter whether meet represent that Tomcat normally runs pre-conditioned before, judge whether at least one state parameter has the first state parameter;
Computing unit, for when at least one state parameter has the first state parameter, calculates the mean value of the first state parameter in the monitoring moment to current monitoring moment.
Further, when the visit capacity of Tomcat is less than threshold value, predetermined interval is the first predetermined interval; When the visit capacity of Tomcat is more than or equal to threshold value, predetermined interval is the second predetermined interval being greater than the first predetermined interval.
The various variation pattern of the method for the monitoring Tomcat state in earlier figures 1 embodiment and instantiation are equally applicable to the master server of the present embodiment, by the detailed description of the aforementioned method to monitoring Tomcat state, those skilled in the art clearly can know the implementation method of master server in the present embodiment, so succinct in order to specification, be not described in detail in this.
Above-mentioned one or more technical scheme in the embodiment of the present application, at least has one or more technique effects following:
In the technical scheme of the embodiment of the present application, master server obtains at least one state parameter of Tomcat from Tomcat status page.Then judging that the whether satisfied expression Tomcat of at least one state parameter normally runs pre-conditioned, when not meeting pre-conditioned, exporting for representing that Tomcat is in the information of abnormality.So master server by judging whether at least one state parameter recorded in Tomcat status page meets pre-conditioned, and then realizes automatically monitoring Tomcat state.Not only reduce artificial dependence, but also can be avoided personal monitoring not in time, export information prompting keeper when at least one state parameter does not meet pre-conditioned in time and safeguard.So, solve in prior art the technical problem relying on personal monitoring Tomcat state, achieve the technique effect of monitoring Tomcat state automatically.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. monitor a method for Tomcat state, be applied to master server, it is characterized in that, comprising:
At least one state parameter of described Tomcat is obtained from Tomcat status page;
Judge whether at least one state parameter described meets that to represent that described Tomcat normally runs pre-conditioned;
When at least one state parameter described do not meet described pre-conditioned time, export for representing that described Tomcat is in the information of abnormality.
2. the method for claim 1, is characterized in that, before at least one state parameter obtaining described Tomcat from Tomcat status page, also comprises:
Receive the state parameter of the monitoring modular for monitoring described Tomcat state at the described Tomcat of current monitoring moment acquisition; Wherein, described monitoring module obtains the state parameter of described Tomcat according to predetermined interval;
Based on the state parameter of the described Tomcat that the described current monitoring moment obtains, upgrade described Tomcat status page.
3. method as claimed in claim 2, is characterized in that, judges that whether at least one state parameter described meets that to represent that described Tomcat normally runs pre-conditioned, comprising:
Obtain at least one default Tomcat state parameter scope corresponding with at least one state parameter described;
Judge at least one state parameter described whether at least one default Tomcat state parameter scope described.
4. method as claimed in claim 3, is characterized in that, judge at least one state parameter described whether meet represent that described Tomcat normally runs pre-conditioned before, also comprise:
Judge whether at least one state parameter described has the first state parameter;
When at least one state parameter described has described first state parameter, calculate the mean value of described first state parameter in the monitoring moment to described current monitoring moment.
5. method as claimed in claim 4, it is characterized in that, when the visit capacity of described Tomcat is less than threshold value, described predetermined interval is the first predetermined interval; When the visit capacity of described Tomcat is more than or equal to described threshold value, described predetermined interval is the second predetermined interval being greater than described first predetermined interval.
6. a master server, is characterized in that, comprising:
Obtain unit, for obtaining at least one state parameter of described Tomcat from Tomcat status page;
Judging unit, for judging whether at least one state parameter described meets that to represent that described Tomcat normally runs pre-conditioned;
Tip element, for do not meet when at least one state parameter described described pre-conditioned time, export for representing that described Tomcat is in the information of abnormality.
7. master server as claimed in claim 6, it is characterized in that, described master server also comprises:
Receiving element, for before at least one state parameter obtaining described Tomcat from Tomcat status page, receives the state parameter of the monitoring modular for monitoring described Tomcat state at the described Tomcat of current monitoring moment acquisition; Wherein, described monitoring module obtains the state parameter of described Tomcat according to predetermined interval;
Updating block, for the state parameter of the described Tomcat based on described current monitoring moment acquisition, upgrades described Tomcat status page.
8. master server as claimed in claim 7, it is characterized in that, described judging unit is for obtaining at least one default Tomcat state parameter scope corresponding with at least one state parameter described; Judge at least one state parameter described whether at least one default Tomcat state parameter scope described.
9. master server as claimed in claim 8, it is characterized in that, described master server also comprises:
Judgment sub-unit, for judge at least one state parameter described whether meet represent that described Tomcat normally runs pre-conditioned before, judge whether at least one state parameter described has the first state parameter;
Computing unit, for when at least one state parameter described has described first state parameter, calculates the mean value of described first state parameter in the monitoring moment to described current monitoring moment.
10. master server as claimed in claim 9, it is characterized in that, when the visit capacity of described Tomcat is less than threshold value, described predetermined interval is the first predetermined interval; When the visit capacity of described Tomcat is more than or equal to described threshold value, described predetermined interval is the second predetermined interval being greater than described first predetermined interval.
CN201510881425.2A 2015-12-03 2015-12-03 Method and primary server for monitoring states of Tomcat Pending CN105450471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510881425.2A CN105450471A (en) 2015-12-03 2015-12-03 Method and primary server for monitoring states of Tomcat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510881425.2A CN105450471A (en) 2015-12-03 2015-12-03 Method and primary server for monitoring states of Tomcat

Publications (1)

Publication Number Publication Date
CN105450471A true CN105450471A (en) 2016-03-30

Family

ID=55560275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510881425.2A Pending CN105450471A (en) 2015-12-03 2015-12-03 Method and primary server for monitoring states of Tomcat

Country Status (1)

Country Link
CN (1) CN105450471A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020138564A1 (en) * 2001-03-21 2002-09-26 Treptow Jay A. Universal printing and document imaging system and method
US20040205665A1 (en) * 2003-04-11 2004-10-14 Takaya Matsuishi Web page creation apparatus, web page creation method, web page creation program, and recording medium
CN102930392A (en) * 2012-10-25 2013-02-13 沈阳化工大学 System for running information of transformer substation
CN103997585A (en) * 2013-02-20 2014-08-20 柯尼卡美能达株式会社 Data processing apparatus and content displaying method
CN104320285A (en) * 2014-11-06 2015-01-28 中国建设银行股份有限公司 Website running status monitoring method and device
CN104954184A (en) * 2015-06-15 2015-09-30 四川长虹电器股份有限公司 Monitoring and alarming method and system for cloud background server cluster

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020138564A1 (en) * 2001-03-21 2002-09-26 Treptow Jay A. Universal printing and document imaging system and method
US20040205665A1 (en) * 2003-04-11 2004-10-14 Takaya Matsuishi Web page creation apparatus, web page creation method, web page creation program, and recording medium
CN102930392A (en) * 2012-10-25 2013-02-13 沈阳化工大学 System for running information of transformer substation
CN103997585A (en) * 2013-02-20 2014-08-20 柯尼卡美能达株式会社 Data processing apparatus and content displaying method
CN104320285A (en) * 2014-11-06 2015-01-28 中国建设银行股份有限公司 Website running status monitoring method and device
CN104954184A (en) * 2015-06-15 2015-09-30 四川长虹电器股份有限公司 Monitoring and alarming method and system for cloud background server cluster

Similar Documents

Publication Publication Date Title
WO2019000630A1 (en) Multi-task scheduling method and system, application server and computer-readable storage medium
CN106250180B (en) A kind of ODEX optimal control method and mobile terminal
CN107273182B (en) Method and system for dynamically expanding virtual machine resources
CN110764913B (en) Data calculation method based on rule calling, client and readable storage medium
CN109840141B (en) Thread control method and device based on cloud monitoring, electronic equipment and storage medium
JPWO2018131556A1 (en) Resource setting control device, resource setting control system, resource setting control method, and resource setting control program
CN112379808A (en) Window control method, device, equipment and medium
CN103354990A (en) System and method for processing virtual machine in cloud platform
CN115001967A (en) Data acquisition method and device, electronic equipment and storage medium
CN103036975A (en) Virtual machine control method and control device
CN109032685A (en) A kind of method and terminal accelerating Android system starting
CN111555987B (en) Current limiting configuration method, device, equipment and computer storage medium
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
CN110569114B (en) Service processing method, device, equipment and storage medium
CN111984740A (en) Business data table processing method and device, computer equipment and storage medium
CN105450471A (en) Method and primary server for monitoring states of Tomcat
CN112817687A (en) Data synchronization method and device
WO2021212492A1 (en) Information pushing method and apparatus, electronic device, and computer-readable medium
CN115185456A (en) Cluster capacity shrinkage risk prompting method, device, equipment and medium
US20130103724A1 (en) Network and method for managing models
CN114237755A (en) Application running method and device, electronic equipment and storage medium
CN113360736A (en) Method and device for capturing internet data
CN112882749A (en) Method and device for controlling up and down lines of application example and storage medium
CN106776035B (en) Method and system for realizing cross-system multi-document algorithm docking and request heterogeneous system
CN112486556B (en) Method, system, terminal and storage medium for server to be compatible with BMC

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: 20160330