CN104410671B - A kind of snapshot grasping means and data supervising device - Google Patents

A kind of snapshot grasping means and data supervising device Download PDF

Info

Publication number
CN104410671B
CN104410671B CN201410614080.XA CN201410614080A CN104410671B CN 104410671 B CN104410671 B CN 104410671B CN 201410614080 A CN201410614080 A CN 201410614080A CN 104410671 B CN104410671 B CN 104410671B
Authority
CN
China
Prior art keywords
thread
snapshot
data
tomcat servers
http request
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.)
Active
Application number
CN201410614080.XA
Other languages
Chinese (zh)
Other versions
CN104410671A (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.)
Shenzhen Landray Software Co ltd
Original Assignee
Shenzhen Landray Software 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 Shenzhen Landray Software Co ltd filed Critical Shenzhen Landray Software Co ltd
Priority to CN201410614080.XA priority Critical patent/CN104410671B/en
Publication of CN104410671A publication Critical patent/CN104410671A/en
Application granted granted Critical
Publication of CN104410671B publication Critical patent/CN104410671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of snapshot grasping means and data monitoring tools, and intermittent response slack-off time point occurs in Tomcat servers, accurately positioning WEB application, grabs important information when intermittence response is slack-off in time.Present invention method includes:Data monitoring instrument obtains the busy Thread Count of WEB application in Tomcat servers, when it is determined that the busy Thread Count is more than preset thread threshold, obtains the HTTP request snapshot and JVM thread snapshot of the Tomcat servers.

Description

A kind of snapshot grasping means and data supervising device
Technical field
The present invention relates to the communications field, more particularly to a kind of snapshot grasping means and data supervising device.
Background technology
The WEB application being deployed in Tomcat servers, when application generation obstruction or front end have more than and be expected concurrently During access, application system response is often slack-off, and this can influence the use of user, when sometimes this influence can continue one section Between, it is sometimes just short several seconds.
At present, there is the health status of monitoring tools monitoring system, when application generation obstruction or front end have more than and be expected simultaneously During the access of hair, the monitoring tools send alarm, prompt user to apply unusable.
In actual applications, only reflect the availability situation of application, can not solve so that application responds slack-off ask Topic, in the formal environments of user, when this intermittence response of generation is slack-off, if grabbing important information not in time, after It is continuous to be difficult to orientation problem, because the time that problem occurs is difficult to determine, and manually analyzes and be also difficult to grasp time point.
The content of the invention
The embodiments of the invention provide a kind of snapshot grasping means and data supervising device, in Tomcat servers In, accurately position WEB application and intermittent response slack-off time point occurs, grab weight when intermittence response is slack-off in time Want information.
A kind of snapshot grasping means, including:
Data monitoring instrument obtains the busy Thread Count of Tomcat servers;
When it is determined that the busy Thread Count is more than preset thread threshold, the data monitoring instrument obtains the Tomcat The HTTP request snapshot and JVM thread snapshot of server.
A kind of data monitoring device, including:
Thread acquisition module, for obtaining the busy Thread Count of Tomcat servers;
Snapshot acquisition module, for being more than preset thread threshold when the busy Thread Count for determining the thread acquisition module acquisition During value, the HTTP request snapshot and JVM thread snapshot of the Tomcat servers are obtained.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:When it is determined that busy Thread Count is more than During preset thread threshold, the HTTP request snapshot and JVM thread snapshot of the Tomcat servers are obtained.Busy Thread Count, represent The actual Thread Count for handling HTTP request business, under general status, busy Thread Count may be visited than relatively low when moment occurs When the amount of asking increases or system is blocked, busy Thread Count will increase, and there may come a time when that increase is very big suddenly, there may come a time when to hold Continuous increase, at this moment, the response of system will be slack-off, causes intermittent response slack-off, so, sets a preset thread threshold, When more than preset thread threshold, data monitoring instrument just captures JVM thread snapshot, while captures in Tomcat servers HTTP request snapshot, it thus accurately located WEB application and intermittent response slack-off time point occur, catch HTTP request The snapshot of content, while the two important informations of the snapshot of JVM thread have been caught again, HTTP request represents what to do, JVM lines Journey represents actual and what is doing, and the two important informations are combined, can be very easily it is determined that because what reason causes Intermittence response it is slack-off.
Brief description of the drawings
Fig. 1 is one schematic flow sheet of snapshot grasping means in the embodiment of the present invention;
Fig. 2 is another schematic flow sheet of snapshot grasping means in the embodiment of the present invention;
Fig. 3 is one example schematic of data that first assembly is obtained in the embodiment of the present invention;
Fig. 4 is one example schematic of component that JVM thread snapshot is obtained in the embodiment of the present invention;
Fig. 5 is one example schematic of component that HTTP request snapshot is obtained in the embodiment of the present invention;
Fig. 6 is one example schematic of HTTP request snapshot in the embodiment of the present invention;
Fig. 7 is one example schematic of JVM thread snapshot in the embodiment of the present invention;
Fig. 8 is one structural representation of data monitoring device in the embodiment of the present invention;
Fig. 9 is another structural representation of data monitoring device in the embodiment of the present invention.
Embodiment
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 Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
The term used in the description of the invention herein is for the purpose of describing particular embodiments and is not intended to work For limitation of the present invention.
Term " Tomcat servers " is Apache Software Foundation (Apache Software Foundation) A core project in Jakarta projects, is formed by Apache, Sun and some other company and personal joint development, Tomcat servers are the Web Application Servers of a free open source code, the server based on JMX comprehensively monitoring and Web program management.
Term " JMX (Java Management Extensions, Java administration extensions) " be one for application program, set Standby, system etc. is implanted into the framework of management function.JMX can cross over a series of OS platforms, system architecture and The network transmission protocol, flexible system, network and the service management application for developing Seamless integration-.”
Term " WEB application ", which represents a kind of, can pass through the application program of webpage web access.
Term " busy Thread Count " represents the number of the actual HTTP threads for handling specific affairs in Tomcat servers Mesh.Accordingly, " total number of threads " also in Tomcat servers, the Thread Count that can be used in Tomcat servers is represented Mesh, busy Thread Count is no more than its total number of threads in Tomcat servers.
Term " preset thread threshold " is default thread threshold, and it can be according to the total number of threads in Tomcat servers To set, such as it is set as the 1/2 of total number of threads, 3/4, or 4/5 etc., can also be according to Tomcat servers normal operation one As the Thread Count that needs set, such as be set as 50,100,130 etc., can also have many setting means, ensure It is no more than total number of threads and can meet the normal use of WEB application in Tomcat servers, specific setting means, herein not It is construed as limiting.
Term " JVM thread snapshot " represents the method call sequence that current all JVM are carrying out and performed One set, each thread perform different method calls, and each thread is made a distinction using thread sequence number, and JVM thread is fast According to the inner method call for both containing and being currently executing, it also contains all historical approach before the thread is completed and call, lead to A JVM thread snapshot is crossed, it is known that a thread is from starting what method call currently be carried out.Wherein, term " JVM " is Java Virtual Machine (Java Virtual Machine) abbreviation, and JVM is a kind of specification for computing device, it Be one and fabricate computer out, be by the computer of reality analogue simulation various computer functions realize.
Term " Http asks snapshot " represents a set of the Http requests of current all access Tomcat servers, its In include Http request content.
Referring to Fig. 1, snapshot grasping means one embodiment includes in the embodiment of the present invention:
101st, data monitoring instrument obtains the busy Thread Count of Tomcat servers;
When Tomcat servers are run, data monitoring instrument can continue real-time acquisition Tomcat servers it is busy Thread Count.
102nd, when it is determined that the busy Thread Count is more than preset thread threshold, described in the data monitoring instrument acquisition The HTTP request snapshot and JVM thread snapshot of Tomcat servers.
After data monitoring instrument gets the busy Thread Count of Tomcat servers, it can be compared with preset thread threshold Compared with when it is determined that the busy Thread Count is more than preset thread threshold, the data monitoring instrument obtains the HTTP of Tomcat servers Ask snapshot and JVM thread snapshot.
Include the content of the Http requests of current accessed Tomcat servers in the HTTP request snapshot, expression needs to transport What operation is WEB application of the row on Tomcat servers perform, include in JVM thread snapshot JVM be carrying out with The method call sequence performed, represents what operation is the WEB application operated on Tomcat servers perform.
It is understood that the preset thread threshold should be set in no more than total number of threads and can meet that Tomcat is serviced In the range of the normal use of WEB application on device, if preset thread threshold is set rationally, when busy Thread Count is more than preplaced line During journey threshold value, that is, represent that the WEB application instant response quantitative change on Tomcat servers is big, or system is blocked, Ji Jiangjin Enter to respond slack-off state, now obtaining HTTP request snapshot and JVM thread snapshot can just get so that responding slack-off The reason for important information.
In the embodiment of the present invention when it is determined that busy Thread Count is more than preset thread threshold, the Tomcat servers are obtained HTTP request snapshot and JVM thread snapshot.Busy Thread Count, represent that reality is handling the Thread Count of HTTP request business, one As under situation, busy Thread Count may be than relatively low, when the increase of moment visit capacity occurring or system is blocked, busy thread Number will increase, and there may come a time when that increase is very big suddenly, there may come a time when to continue increase, at this moment, the response of system will be slack-off, causes Intermittence response is slack-off, so, sets a preset thread threshold, when more than preset thread threshold, data monitoring instrument is just JVM thread snapshot is captured, while captures the HTTP request snapshot in TOMCAT servers, thus accurately located WEB should At the time point slack-off with intermittent response occurs, the snapshot of HTTP request content is caught, while caught the snapshot of JVM thread again The two important informations, HTTP request represent what to do, and JVM thread represents actual and what is doing, by the two important informations With reference to can be very easily it is determined that because intermittent response be slack-off caused by what reason.
The snapshot grasping means in the embodiment of the present invention is specifically described below, referring to Fig. 2, the embodiment of the present invention Middle another embodiment of snapshot grasping means includes:
201st, data monitoring instrument by JMX agreements gather Tomcat servers in first assembly data, described first Include the busy Thread Count and total number of threads of the Tomcat servers in the data of component;
When Tomcat servers are run, data monitoring instrument gathers in Tomcat servers first group by JMX agreements The data of part, the busy Thread Count and total number of threads of the Tomcat servers are included in the data of the first assembly.
As shown in figure 3, for using the SDK of Java language, ((Java Development Kit, JDK) is inner One instrument Jconsole in face obtains the value of the example, wherein attribute currentThreadsBusy of the data of the first assembly Current busy Thread Count is represented, attribute currentThreadCount value represents current total Thread Count.
202nd, the data monitoring instrument determines preset thread threshold according to the total number of threads;
After data monitoring instrument obtains the total number of threads of the WEB application, preset thread threshold is determined according to the total number of threads, The preset thread threshold is not more than the total number of threads.
The total number of threads for distributing to WEB application in Tomcat servers is one critically important money of the WEB such as Tomcat containers Source pond, for responding the HTTP request of browser initiation, the size of general total number of threads can configure, and how much is concrete configuration Will be depending on the disposal ability of the feature of WEB application with application server hardware.For example, generally for 8 thread 8G internal memories Equipment, by total number of threads size be configured to 200 it is more suitable.
Busy Thread Count is exactly the HTTP threads that those are handling specific affairs, and this number is bigger, is illustrated currently The affairs of processing are more, and when certain amount is reached, the computing resource of hardware is it is possible that bottleneck, therefore front end user Slack-off sensation is just had, or it is special abnormal when what occurs, as database goes wrong, network goes wrong, disk IO goes wrong, and HTTP threads are all likely to occur a large amount of waits, and at this moment busy Thread Count may quickly go up, and at this time only have Capture snapshot could orientation problem occur where, so we herein just set a preset thread threshold, when more than Just automatic crawl snapshot, this general preset thread threshold are arranged to the half of total number of threads more when preset thread threshold Properly;For example, configuration total number of threads is 200, then preset thread threshold could be arranged to 100, certainly, according to specific circumstances There can also be other set-up modes, such as other numerical value is set, or, set by other percentages, do not do herein Limit.
203rd, when it is determined that the busy Thread Count is more than preset thread threshold, data monitoring instrument is adopted by JMX agreements Collect the data of the second component in Tomcat servers, include HTTP request data in the data of second component;
When it is determined that the busy number of the thread is more than preset thread threshold, the data monitoring instrument is gathered by JMX agreements The data of second component in Tomcat servers, include HTTP request data in the data of second component;
As shown in figure 4, for using the SDK of Java language, ((Java Development Kit, JDK) is inner One instrument Jconsole in face obtains the example of the data of second component, wherein, file under the second component The thread that each HTTP request is responded in Tomcat servers is have recorded in RequestProcessor, is included in each object The content of specific HTTP request.
204th, when it is determined that the busy Thread Count is more than preset thread threshold, data monitoring instrument is adopted by JMX agreements Collect the data of the 3rd component in Tomcat servers, include JVM thread data in the data of the 3rd component;
When it is determined that the busy Thread Count is more than preset thread threshold, data monitoring instrument is gathered by JMX agreements The data of 3rd component in Tomcat servers, include JVM thread data in the data of the 3rd component;
As shown in figure 5, for using the SDK of Java language, ((Java Development Kit, JDK) is inner One instrument Jconsole in face obtains the example of the data of the 3rd component, wherein, it is by the 3rd component Threading It can obtain the JVM thread data of Tomcat servers.
It is understood that step 204 can perform before step 203, it can after step 203 perform, also may be used To be performed with step 203 simultaneously, it is not construed as limiting herein.
205th, the data monitoring instrument please according to the HTTP of the HTTP request data generation Tomcat servers Seek quickness photograph, the JVM thread snapshot of the Tomcat servers is generated according to the JVM thread data.
, can be according to the HTTP request data after the data monitoring instrument obtains the HTTP request data of Tomcat servers HTTP request snapshot is generated, after obtaining the JVM thread data of Tomcat servers, JVM can be generated according to the JVM thread data Thread snapshot.
It is understood that the JMX thread-datas have recorded the operation actually performed, the HTTP request data have recorded please Ask the operation of execution.
206th, according to the HTTP request snapshot and JVM thread snapshot, WEB application in the Tomcat servers is analyzed Performance.
After the data monitoring instrument obtains HTTP request snapshot and JVM thread snapshot, according to the HTTP request snapshot and JVM Thread snapshot, analyze the performance of WEB application in the Tomcat servers.
, can be by artificial (such as exploit person it should be understood that the analysis to the HTTP request snapshot and JVM thread snapshot Member) complete, can also established standardses flow, be automatically performed by equipment, be not construed as limiting herein.
Illustrate below to the performance for analyzing WEB application according to HTTP request snapshot and JVM thread snapshot using manual type Illustrate:
As shown in fig. 6, it is the example for a HTTP request snapshot being truncated to, it is assumed that the snapshot is entitled:Middleware main frame 22_HttpRequestTrace_20130715163001.html;
As shown in fig. 7, it is the example for a JVM thread snapshot being truncated to, it is assumed that the snapshot is entitled:
Middleware main frame 22_ThreadTrace_20130715163001.html;
Developer has found the HTTP request snapshot (middleware main frame 22_HttpRequestTrace_ 20130715163001.html) middle in the presence of largely to destination address http://oa.test.cn//j_acegi_ The access that security_che ck are carried out, and occur largely similar request illustrate a certain function be likely to occur it is a large amount of access or There is obstructing problem;
Developer determines to ask destination address http://oa.test.cn//j_acegi_security_check's Thread name has:Http-80-200, http-80-107, http-80-233, http-80-181 etc.;
Developer chooses a portion, by taking http-80-107 as an example, in thread snapshot middleware main frame 22_ Same thread name http-80-107 thread stacks are searched in ThreadTrace_20130715163001.html, from storehouse It is last know that current thread is communicated with database, (such as the http-80- if it find that different thread stacks 200, http-80-233 with http-80-181 etc. thread stacks) be all the problem of processing is similar, such developer is with regard to energy Know that problem occurs somewhere, such as if a large amount of access methods for occurring calling database, that database of descriptions hair Life is blocked, and analysis is just turned to database side analysis by developer, if largely there is I O read calling, that is likely to occur magnetic Disk bottleneck etc., it can also orient other many problems according to different situations, will not enumerate here.
Optionally, automatically HTTP request snapshot and JVM thread snapshot can also be analyzed by equipment, specifically 's:It is described when the number of the thread to be conducted interviews in the HTTP request snapshot to same destination address exceeds default value Data monitoring instrument can record the thread name of the thread to be conducted interviews to same destination address;The data monitoring instrument The thread name of record is searched in the JVM thread snapshot, determines the thread to be conducted interviews to same destination address The operation of execution;The operation performed according to the thread to be conducted interviews to same destination address, determines the busy Thread Count The problem of WEB application is present during more than preset thread threshold.And what the thread to be conducted interviews to same destination address performed The corresponding relation for the problem of operation exists with WEB application, can be stored on the data monitoring instrument by developer in advance, There can be the data monitoring instrument to be obtained from network, not limit herein.
In the embodiment of the present invention, it is numerous that data monitoring instrument can obtain this by the first assembly in Tomcat servers Hurry into number of passes so that obtain it is busy enter number of passes it is relatively reliable, opportunity slack-off to system holds more accurate, further, HTTP request snapshot and JVM thread snapshot are obtained, according to the two snapshots, WEB application in Tomcat servers can be analyzed Performance, where can be when alignment system is slack-off easily and fast the problem of, when being analyzed, if an only snapshot, such as Only HTTP request snapshot, because information in thread is not bound with HTTP request information, it is difficult to which or request cannot be known Object content what is, it is difficult to orientation problem, if only JVM thread snapshot, because information is numerous and jumbled, without target, it is also difficult to The root to go wrong is positioned, only both combine, and could quickly and accurately orient the true cause for causing system slack-off, so as to It is convenient to be solved to it.
The data monitoring device in the embodiment of the present invention is described below, referring to Fig. 8, number in the embodiment of the present invention Include according to supervising device one embodiment:
Thread acquisition module 801, for obtaining the busy Thread Count of Tomcat servers;
Snapshot acquisition module 802, the busy Thread Count for being obtained when the determination thread acquisition module 801 are more than preset During thread threshold, the HTTP request snapshot and JVM thread snapshot of the Tomcat servers are obtained.
In the embodiment of the present invention when it is determined that busy Thread Count is more than preset thread threshold, snapshot acquisition module 802 obtains The HTTP request snapshot and JVM thread snapshot of the Tomcat servers.Busy Thread Count, represent that reality handles HTTP request The Thread Count of business, under general status, busy Thread Count may be than relatively low, when the increase of moment visit capacity occurring or system occurs During obstruction, busy Thread Count will increase, and there may come a time when that increase is very big suddenly, there may come a time when to continue increase, at this moment, the sound of system Should will be slack-off, cause intermittent response slack-off, so, a preset thread threshold be set, when more than preset thread threshold, Snapshot acquisition module 802 just captures JVM thread snapshot, while captures the HTTP request snapshot in TOMCAT servers, thus It accurately located WEB application and intermittent response slack-off time point occur, catch the snapshot of HTTP request content, while grab again The snapshot of JVM thread the two important informations have been lived, HTTP request represents what to do, and JVM thread represents actual and what is doing, The two important informations are combined, can be very easily it is determined that because intermittent response be slack-off caused by what reason.
The data monitoring device in the embodiment of the present invention is specifically described below, referring to Fig. 9, the embodiment of the present invention In data monitoring device include:
Thread acquisition module 901, for obtaining the busy Thread Count of Tomcat servers;
Snapshot acquisition module 902, the busy Thread Count for being obtained when the determination thread acquisition module 901 are more than preset During thread threshold, the HTTP request snapshot and JVM thread snapshot of the Tomcat servers are obtained;
In the present embodiment, the thread acquisition module 901 is specifically used for, and is gathered by JMX agreements the in Tomcat servers The data of one component, the busy Thread Count and thread that the Tomcat servers are included in the data of the first assembly are total Number;
The data monitoring device also includes:
Threshold determination module 903, for determining the preset thread threshold, the preset thread according to the total number of threads Threshold value is not more than the total number of threads;
Optionally, the snapshot acquisition module 902 specifically includes:
First acquisition unit 9021, it is described for gathering the data of the second component in Tomcat servers by JMX agreements Include HTTP request data in the data of second component;
Second acquisition unit 9022, it is described for gathering the data of the 3rd component in Tomcat servers by JMX agreements Include JVM thread data in the data of 3rd component;
Snapshot generation unit 9023, the HTTP for generating the Tomcat servers according to the HTTP request data please Seek quickness photograph, the JVM thread snapshot of the Tomcat servers is generated according to the JVM thread data;
Optionally, the data monitoring device can also include:
Analysis module 904, for according to the HTTP request snapshot and JVM thread snapshot, analyzing the Tomcat services The performance of WEB application in device;
Optionally, the analysis module 904 can specifically include:
Recording unit 9041, for when the number of the thread to be conducted interviews in the HTTP request snapshot to same destination address When mesh exceeds default value, the thread name of the thread to be conducted interviews to same destination address is recorded;
Searching unit 9042, for searching the thread name of record in the JVM thread snapshot, determine described to same The operation that the thread that one destination address conducts interviews performs;
Determining unit 9043, for the operation performed according to the thread to be conducted interviews to same destination address, it is determined that Busy Thread Count the problem of WEB application is present in the Tomcat servers when being more than preset thread threshold.
In the embodiment of the present invention, thread acquisition module 901 can be obtained by the first assembly in Tomcat servers This it is busy enter number of passes so that obtain it is busy enter number of passes it is relatively reliable, opportunity slack-off to system holds more accurate, further , snapshot acquisition module 902 obtains HTTP request snapshot and JVM thread snapshot, and according to the two snapshots, analysis module 904 can To analyze the performance of the WEB application, where can be when alignment system is slack-off easily and fast the problem of, when being analyzed, if only There are a snapshot, such as only HTTP request snapshot, because the information in thread is not bound with HTTP request information, it is difficult to or Person cannot know that what the object content of request is, it is difficult to orientation problem, if only JVM thread snapshot, because information is numerous and jumbled, does not have There is target, it is also difficult to position the root to go wrong, only both combine, and could quickly and accurately orient causes system slack-off True cause, solved so as to convenient to it.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (6)

  1. A kind of 1. snapshot grasping means, it is characterised in that including:
    Data monitoring instrument obtains the busy Thread Count of Tomcat servers;The busy Thread Count is represented in Tomcat servers The number of the actual HTTP threads for handling specific affairs;
    When it is determined that the busy Thread Count is more than preset thread threshold, the data monitoring instrument obtains the Tomcat services The HTTP request snapshot and JVM thread snapshot of device;
    According to the HTTP request snapshot and JVM thread snapshot, the performance of WEB application in the Tomcat servers is analyzed;
    Wherein, it is described according to the HTTP request snapshot and JVM thread snapshot, analyze WEB application in the Tomcat servers Performance specifically include:
    It is described when the number of the thread to be conducted interviews in the HTTP request snapshot to same destination address exceeds default value The thread name of the thread to be conducted interviews described in data monitoring tool records to same destination address;
    The data monitoring instrument searches the thread name of record in the JVM thread snapshot, determines described to same mesh The operation that the thread that mark address conducts interviews performs;
    The operation performed according to the thread to be conducted interviews to same destination address, it is preset to determine that the busy Thread Count is more than The problem of WEB application is present in the Tomcat servers during thread threshold.
  2. 2. according to the method for claim 1, it is characterised in that the data monitoring instrument obtains the numerous of Tomcat servers Engaged line number of passes specifically includes:
    Data monitoring instrument gathers the data of first assembly in Tomcat servers, the number of the first assembly by JMX agreements Include the busy Thread Count and total number of threads of the Tomcat servers in;
    Methods described also includes:
    The data monitoring instrument determines the preset thread threshold according to the total number of threads, and the preset thread threshold is little In the total number of threads.
  3. 3. according to the method for claim 2, it is characterised in that the data monitoring instrument obtains the Tomcat servers HTTP request snapshot and JVM thread snapshot specifically include:
    The data monitoring instrument gathers the data of the second component in Tomcat servers, second component by JMX agreements Data in include HTTP request data;
    The data monitoring instrument gathers the data of the 3rd component in Tomcat servers, the 3rd component by JMX agreements Data in include JVM thread data;
    The data monitoring instrument generates the HTTP request snapshot of the Tomcat servers, root according to the HTTP request data The JVM thread snapshot of the Tomcat servers is generated according to the JVM thread data.
  4. A kind of 4. data monitoring device, it is characterised in that including:
    Thread acquisition module, for obtaining the busy Thread Count of Tomcat servers;The busy Thread Count represents Tomcat clothes The number of the actual HTTP threads for handling specific affairs in business device;
    Snapshot acquisition module, for being more than preset thread threshold when the busy Thread Count for determining the thread acquisition module acquisition When, obtain the HTTP request snapshot and JVM thread snapshot of the Tomcat servers;
    Analysis module, for according to the HTTP request snapshot and JVM thread snapshot, analyzing WEB in the Tomcat servers The performance of application;
    Wherein, the analysis module specifically includes:
    Recording unit, for when the number of the thread to be conducted interviews in the HTTP request snapshot to same destination address is beyond pre- During setting value, the thread name of the thread to be conducted interviews to same destination address is recorded;
    Searching unit, for searching the thread name of record in the JVM thread snapshot, determine it is described to same target The operation that the thread that location conducts interviews performs;
    Determining unit, for the operation performed according to the thread to be conducted interviews to same destination address, determine described busy Thread Count the problem of WEB application is present in the Tomcat servers when being more than preset thread threshold.
  5. 5. data monitoring device according to claim 4, it is characterised in that the thread acquisition module is specifically used for, and leads to The data of first assembly in JMX agreements collection Tomcat servers are crossed, are included in the data of the first assembly described The busy Thread Count and total number of threads of Tomcat servers;
    The data monitoring device also includes:
    Threshold determination module, for determining the preset thread threshold according to the total number of threads, the preset thread threshold is not More than the total number of threads.
  6. 6. data monitoring device according to claim 5, it is characterised in that the snapshot acquisition module specifically includes:
    First acquisition unit, for gathering the data of the second component in Tomcat servers, second component by JMX agreements Data in include HTTP request data;
    Second acquisition unit, for gathering the data of the 3rd component in Tomcat servers, the 3rd component by JMX agreements Data in include JVM thread data;
    Snapshot generation unit, for generating the HTTP request snapshot of the Tomcat servers according to the HTTP request data, The JVM thread snapshot of the Tomcat servers is generated according to the JVM thread data.
CN201410614080.XA 2014-11-03 2014-11-03 A kind of snapshot grasping means and data supervising device Active CN104410671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410614080.XA CN104410671B (en) 2014-11-03 2014-11-03 A kind of snapshot grasping means and data supervising device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410614080.XA CN104410671B (en) 2014-11-03 2014-11-03 A kind of snapshot grasping means and data supervising device

Publications (2)

Publication Number Publication Date
CN104410671A CN104410671A (en) 2015-03-11
CN104410671B true CN104410671B (en) 2017-11-10

Family

ID=52648269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410614080.XA Active CN104410671B (en) 2014-11-03 2014-11-03 A kind of snapshot grasping means and data supervising device

Country Status (1)

Country Link
CN (1) CN104410671B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385341B (en) * 2016-08-31 2021-03-26 福建天晴数码有限公司 Method and system for monitoring thread by client
CN107360019A (en) * 2017-06-06 2017-11-17 武汉票据交易中心有限公司 A kind of thread monitor method and system of server
CN107632899B (en) * 2017-08-08 2020-12-04 山东中创软件商用中间件股份有限公司 Snapshot service method and device of application server
CN111367774A (en) * 2018-12-26 2020-07-03 阿里巴巴集团控股有限公司 Detection method and device
CN111475387A (en) * 2019-01-24 2020-07-31 阿里巴巴集团控股有限公司 Server overload judgment method and server
CN111506453B (en) * 2019-01-31 2023-06-16 阿里巴巴集团控股有限公司 Disk snapshot creation method, device, system and storage medium
CN112685243A (en) * 2019-10-17 2021-04-20 北京京东振世信息技术有限公司 Data acquisition method, system, terminal and storage medium for fault site
CN111679955B (en) * 2020-08-11 2020-12-18 北京东方通软件有限公司 Monitoring diagnosis and snapshot analysis system for application server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605056A (en) * 2009-06-16 2009-12-16 中兴通讯股份有限公司 A kind of J2EE server monitoring device and adopt the method for supervising of this device
CN102147746A (en) * 2010-03-05 2011-08-10 微软公司 Dynamic thread pool management
CN102361484A (en) * 2011-07-05 2012-02-22 上海交通大学 Passive network performance measuring system and page identification method thereof
CN102567185A (en) * 2011-12-31 2012-07-11 北京新媒传信科技有限公司 Monitoring method of application server
CN102779062A (en) * 2011-05-09 2012-11-14 阿里巴巴集团控股有限公司 Method and device for controlling number of threads accessing system resources
CN103853647A (en) * 2012-11-29 2014-06-11 北京千橡网景科技发展有限公司 Method and equipment for automatically detecting server problem

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605056A (en) * 2009-06-16 2009-12-16 中兴通讯股份有限公司 A kind of J2EE server monitoring device and adopt the method for supervising of this device
CN102147746A (en) * 2010-03-05 2011-08-10 微软公司 Dynamic thread pool management
CN102779062A (en) * 2011-05-09 2012-11-14 阿里巴巴集团控股有限公司 Method and device for controlling number of threads accessing system resources
CN102361484A (en) * 2011-07-05 2012-02-22 上海交通大学 Passive network performance measuring system and page identification method thereof
CN102567185A (en) * 2011-12-31 2012-07-11 北京新媒传信科技有限公司 Monitoring method of application server
CN103853647A (en) * 2012-11-29 2014-06-11 北京千橡网景科技发展有限公司 Method and equipment for automatically detecting server problem

Also Published As

Publication number Publication date
CN104410671A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN104410671B (en) A kind of snapshot grasping means and data supervising device
WO2020238066A1 (en) Software pressure test method and apparatus, and storage medium and server
CN103902646B (en) Distributed task managing system and method
CN104346148B (en) Obtain method, the apparatus and system of program feature consumption information
CN110138837A (en) Request processing method, device, computer equipment and storage medium
CN104765689B (en) A kind of interface capability data supervise method and apparatus in real time
CN105607986A (en) Acquisition method and device of user behavior log data
WO2014182581A1 (en) Identifying impacted tests from statically collected data
CN111382023A (en) Code fault positioning method, device, equipment and storage medium
CN111124830B (en) Micro-service monitoring method and device
CN109885624A (en) Data processing method, device, computer equipment and storage medium
CN110083391A (en) Call request monitoring method, device, equipment and storage medium
CN103109293B (en) A kind of user behavior processing system and method
US8631279B2 (en) Propagating unobserved exceptions in distributed execution environments
CN109902028A (en) Automated testing method, device, equipment and the storage medium of ACL characteristic
CN110502366A (en) Case executes method, apparatus, equipment and computer readable storage medium
CN111130900A (en) Data acquisition method and device based on distributed interconnection of coordination services
EP2634699B1 (en) Application monitoring
CN108733545B (en) Pressure testing method and device
CN103810086A (en) Method, device and system for processing website causing browser breakdown
CN116340269A (en) Method for acquiring and searching Flink task logs in real time based on elastic search
US9736215B1 (en) System and method for correlating end-user experience data and backend-performance data
US20130041999A1 (en) Determining information about a computing system
CN107656849B (en) Method and device for positioning performance problem of software system
CN117251373A (en) Pressure testing method, device, equipment and storage medium

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