CN109922141A - The real time acquiring method and device of activity request list in Java application server - Google Patents

The real time acquiring method and device of activity request list in Java application server Download PDF

Info

Publication number
CN109922141A
CN109922141A CN201910128937.XA CN201910128937A CN109922141A CN 109922141 A CN109922141 A CN 109922141A CN 201910128937 A CN201910128937 A CN 201910128937A CN 109922141 A CN109922141 A CN 109922141A
Authority
CN
China
Prior art keywords
request
application server
java application
activity
handled
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
CN201910128937.XA
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.)
Beijing Boln Software Ltd By Share Ltd
Original Assignee
Beijing Boln Software Ltd By Share 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 Beijing Boln Software Ltd By Share Ltd filed Critical Beijing Boln Software Ltd By Share Ltd
Priority to CN201910128937.XA priority Critical patent/CN109922141A/en
Publication of CN109922141A publication Critical patent/CN109922141A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides the real time acquiring method and device of activity request list in Java application server, and method includes: the activity request order for receiving user terminal and sending, and activity request order is used to obtain the activity request list of Java application server;The stack information handled in real time at the beginning of obtaining the request url handled, the request handled based on activity request order, in handling duration and thread pool;The activity request list of Java application server is sent to user terminal, it is shown user terminal to the activity request list of Java application server, includes in the information of activity request list: the stack information handled in real time at the beginning of the request url handled of acquisition, the request handled, in handling duration and thread pool.Can make user terminal obtain in real time in Java application server include the request that is handling at the beginning of, the activity request list of stack information that is handled in real time in handling duration and thread pool.

Description

The real time acquiring method and device of activity request list in Java application server
Technical field
The present embodiments relate to business support and data service technical field more particularly to a kind of Java application servers The real time acquiring method and device of middle activity request list.
Background technique
In numerous operation systems for operating in Java application server, frequent occurrence the problem of service request low-response. For problem once occurring, positioning is extremely complex, seriously affects the stable operation of production system.How the basic original of problem is quickly found out Cause becomes a great challenging thing.
Currently, the thread monitor function that application server weblogic is realized is relatively than more comprehensive, in weblogic The solicited message that the console page can handled with monitoring thread information and current thread.
But the thread information that weblogic console provides, can not check corresponding requests are when to start to process , the real-time stack information of handling duration and current thread processing.And these information alignment processing failure problems are also extremely to have ?.
Summary of the invention
In view of the problems of the existing technology, the embodiment of the present invention provides activity request column in a kind of Java application server The real time acquiring method and device of table.
The embodiment of the present invention provides a kind of real time acquiring method of activity request list in Java application server, is applied to Agent end process is acted on behalf of on Java application server, comprising:
The activity request order that user terminal is sent is received, the activity request order is for obtaining Java application server Activity request list;
Based on the activity request order, at the beginning of obtaining the request url handled, the request handled, The stack information handled in real time in the handling duration and thread pool of the request handled;
The activity request list of Java application server is sent to user terminal, so that the user terminal takes Java application The activity request list of business device is shown, and includes in the information of the activity request list: the request of acquisition handled The heap handled in real time at the beginning of url, the request handled, in the handling duration and thread pool of the request that are handling Stack information.
The embodiment of the present invention provides a kind of real time acquiring method of activity request list in Java application server, is applied to User terminal, comprising:
Display module every preset time period sends activity request order and parameter, the activity request to acquisition module The activity request list for obtaining Java application server is ordered, the parameter specifies the agency on Java application server Agent end process;
The activity request order that the display module is sent is transmitted to the specified Java of the parameter and applied by acquisition module Agent end process is acted on behalf of on server;
Acquisition module receives the activity request list for the Java application server that the Agent end process is sent, and passes through Display module is shown, and includes in the information of the activity request list: the request that Java application server is being handled The heap handled in real time at the beginning of url, the request handled, in the handling duration and thread pool of the request that are handling Stack information.
The embodiment of the present invention provides a kind of real-time acquisition device of activity request list in Java application server, is applied to Agent end process is acted on behalf of on Java application server, comprising:
Receiving module, for receiving the activity request order of user terminal transmission, the activity request order is for obtaining The activity request list of Java application server;
Module is obtained, for being based on the activity request order, obtains the request url handled, asking of handling The stack information handled in real time at the beginning of asking, in the handling duration and thread pool of the request that are handling;
Sending module, for the activity request list of Java application server to be sent to user terminal, so that the user End is shown the activity request list of Java application server, includes in the information of the activity request list: acquisition At the beginning of the request url that is handling, the request handled, the handling duration and thread pool of the request that are handling In the stack information that handles in real time.
The embodiment of the present invention provides a kind of real-time acquisition device of activity request list in Java application server, is applied to User terminal, comprising:
Display module is used for every preset time period, sends activity request order and parameter, the activity to acquisition module Request command is used to obtain the activity request list of Java application server, and the parameter specifies on Java application server Act on behalf of Agent end process;
Acquisition module, the activity request order for sending the display module are transmitted to the specified Java of the parameter Agent end process is acted on behalf of on application server;The activity for receiving the Java application server that the Agent end process is sent is asked List is asked, includes in the information of the activity request list: request url that Java application server is being handled, being handled Request at the beginning of, the stack information that is handled in real time in the handling duration and thread pool of the request that are handling;
Display module, the activity request list for being also used to Java application server received to the acquisition module are opened up Show.
The embodiment of the present invention provides a kind of electronic equipment, including memory, processor and storage are on a memory and can be The computer program run on processor, the processor are realized when executing described program such as the step of the above method.
The real time acquiring method and device of activity request list in Java application server provided in an embodiment of the present invention lead to The Agent end process of acting on behalf of crossed on Java application server receives the activity request order that user terminal is sent, the activity request The activity request list for obtaining Java application server is ordered, the activity request order is based on, what acquisition was being handled It is handled in real time at the beginning of request url, the request that is handling, in the handling duration and thread pool of the request that are handling Stack information, the activity request list of Java application server is sent to user terminal, so that the user terminal answers Java It is shown with the activity request list of server, include in the information of the activity request list: acquisition is being handled It is handled in real time at the beginning of request url, the request that is handling, in the handling duration and thread pool of the request that are handling Stack information, thereby, it is possible to make user terminal obtain activity request list in Java application server in real time, and the activity is asked Seek the storehouse letter handled in real time at the beginning of in list including the request that is handling, in handling duration and thread pool Breath, it is particularly useful to subsequent positioning failure code.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
The real-time acquisition side of activity request list in a kind of Java application server that Fig. 1 provides for one embodiment of the invention The flow diagram of method;
Fig. 2 be another embodiment of the present invention provides a kind of Java application server in activity request list real-time acquisition The flow diagram of method;
The real-time acquisition dress of activity request list in a kind of Java application server that Fig. 3 provides for one embodiment of the invention The structural schematic diagram set;
Fig. 4 be another embodiment of the present invention provides a kind of Java application server in activity request list real-time acquisition The structural schematic diagram of device;
Fig. 5 is the entity structure schematic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 shows the real-time of activity request list in a kind of Java application server of one embodiment of the invention offer and obtains The flow diagram of method is taken, the present embodiment the method is applied to act on behalf of Agent end process on Java application server, such as Shown in Fig. 1, the real time acquiring method of activity request list in the Java application server of the present embodiment, comprising:
S1, the activity request order that user terminal is sent is received, the activity request order is for obtaining Java application service The activity request list of device;
S2, it is based on the activity request order, obtains the request url (uniform resource locator) handled, is locating The stack information handled in real time at the beginning of the request of reason, in the handling duration and thread pool of the request that are handling;
S3, the activity request list of Java application server is sent to user terminal, so that the user terminal answers Java It is shown with the activity request list of server, include in the information of the activity request list: acquisition is being handled It is handled in real time at the beginning of request url, the request that is handling, in the handling duration and thread pool of the request that are handling Stack information.
The real time acquiring method of activity request list, is applied in Java application server provided in an embodiment of the present invention Agent end process is acted on behalf of on Java application server, the activity request order sent by receiving user terminal, the activity is asked It asks order for obtaining the activity request list of Java application server, is based on the activity request order, acquisition is being handled Request url, locate in real time at the beginning of the request that is handling, in the handling duration and thread pool of the request that are handling The activity request list of Java application server is sent to user terminal, so that the user terminal is to Java by the stack information of reason The activity request list of application server is shown, and includes in the information of the activity request list: the processing of acquisition Request url, locate in real time at the beginning of the request that is handling, in the handling duration and thread pool of the request that are handling The stack information of reason, thereby, it is possible to so that user terminal is obtained activity request list in Java application server, and the activity in real time The storehouse letter handled in real time at the beginning of in request list including the request handled, in handling duration and thread pool More useful solicited messages such as breath, it is particularly useful to subsequent positioning failure code.
Further, on the basis of the above embodiments, the step S2 may include:
Based on the activity request order, by way of injecting servlet code, obtain handling request url, The storehouse letter handled in real time at the beginning of the request handled, in the handling duration and thread pool of the request that are handling Breath.
Specifically, it is based on the activity request order, by way of injecting servlet code, what acquisition was being handled It is handled in real time at the beginning of request url, the request that is handling, in the handling duration and thread pool of the request that are handling Stack information, may include:
Based on the activity request order, using bytecode Dynamic injection technology, injecting codes logic to servlet class Servcie method, when entering service method at the beginning of record request, and by current request information and thread information It is recorded in activity request list, when exiting service method, this solicited message is emptied in activity request list, thus It calculates in all requests handled at the beginning of each request and handling duration, is calculated by thread object Handle the real-time stack information of request thread.
In this way, at the beginning of the available request url handled of the present embodiment, the request handled, The stack information handled in real time in the handling duration and thread pool of the request of processing.
The real time acquiring method of activity request list, is applied in Java application server provided in an embodiment of the present invention Agent end process is acted on behalf of on Java application server, family end is able to use and obtains activity in Java application server in real time and ask Ask list, and at the beginning of in the activity request list including the request handled, handling duration and thread pool In more useful solicited messages such as the stack information that handles in real time, it is particularly useful to subsequent positioning failure code.
Activity request list obtains in real time in a kind of Java application server provided Fig. 2 shows one embodiment of the invention The flow diagram of method is taken, the present embodiment the method is applied to user terminal, as shown in Fig. 2, the Java of the present embodiment is applied The real time acquiring method of activity request list in server, comprising:
P1, display module every preset time period send activity request order to acquisition module and parameter, the activity are asked Order is asked to specify the generation on Java application server for obtaining the activity request list of Java application server, the parameter Manage Agent end process.
The activity request order that the display module is sent is transmitted to the specified Java of the parameter and answered by P2, acquisition module Agent end process is acted on behalf of on server.
P3, acquisition module receive the activity request list for the Java application server that the Agent end process is sent, and lead to It crosses display module to be shown, includes in the information of the activity request list: the request that Java application server is being handled The heap handled in real time at the beginning of url, the request handled, in the handling duration and thread pool of the request that are handling Stack information.
The real time acquiring method of activity request list in Java application server provided in an embodiment of the present invention is applied to use Family end sends activity request order and parameter, the activity request to acquisition module by display module every preset time period The activity request list for obtaining Java application server is ordered, the parameter specifies the agency on Java application server The activity request order that the display module is sent is transmitted to the specified Java of the parameter by Agent end process, acquisition module Agent end process is acted on behalf of on application server, acquisition module receives the Java application server that the Agent end process is sent Activity request list, and be shown by display module, include in the information of the activity request list: Java application clothes At the beginning of the business device request url handled, the request that is handling, the handling duration and line of the request that are handling The stack information that Cheng Chizhong is handled in real time, user terminal can obtain activity request list in Java application server in real time as a result, And locate in real time at the beginning of in the activity request list including the request handled, in handling duration and thread pool More useful solicited messages such as stack information of reason, it is particularly useful to subsequent positioning failure code.
Further, on the basis of the above embodiments, Agent end number of processes may be thousands of, the acquisition Module can be made of multiple acquisition module node clusters, and correspondingly, the step P1 may include:
Display module acts on behalf of Agent end process from the acquisition module node that pre-establishes and Java application server In subordinate relation table, retrieves and act on behalf of the corresponding acquisition module node of Agent end process on Java application server, every pre- If the period is by activity request order and specifies the parameter for acting on behalf of Agent end process on Java application server and is sent to inspection The acquisition module node that rope arrives;
Correspondingly, the step P2 may include:
The activity request order that the display module is sent is transmitted to the parameter and referred to by the acquisition module node retrieved Agent end process is acted on behalf of on fixed Java application server;
Correspondingly, the step P3 may include:
The acquisition module node retrieved receives the activity request for the Java application server that the Agent end process is sent List, and be shown by display module, include in the information of the activity request list: Java application server is being located At the beginning of the request url of reason, the request handled, in the handling duration and thread pool of the request that are handling in real time The stack information of processing.
It is understood that the display module acquisition module node that needs real-time servicing to pre-establish and Java application service The subordinate relation table for acting on behalf of Agent end process on device.
The real time acquiring method of activity request list in Java application server provided in an embodiment of the present invention is applied to use Family end can obtain activity request list in Java application server in real time, and include in the activity request list More useful request letters such as stack information handled in real time at the beginning of the request of processing, in handling duration and thread pool Breath, it is particularly useful to subsequent positioning failure code.
Fig. 3 shows the real-time of activity request list in a kind of Java application server of one embodiment of the invention offer and obtains The structural schematic diagram of device is taken, the present embodiment described device is applied to act on behalf of Agent end process on Java application server, such as Shown in Fig. 3, the real-time acquisition device of activity request list in the Java application server of the present embodiment, comprising: receiving module 31, Obtain module 32 and sending module 33;Wherein:
The receiving module 31, for receiving the activity request order of user terminal transmission, the activity request order is used for Obtain the activity request list of Java application server;
The acquisition module 32 obtains the request url handled, is locating for being based on the activity request order The stack information handled in real time at the beginning of the request of reason, in the handling duration and thread pool of the request that are handling;
The sending module 33, for the activity request list of Java application server to be sent to user terminal, so that institute It states user terminal to be shown the activity request list of Java application server, includes in the information of the activity request list: The request url handled that obtains, at the beginning of the request handled, the handling duration of request that is handling and The stack information handled in real time in thread pool.
Specifically, the receiving module 31 receives the activity request order that user terminal is sent, and the activity request order is used In the activity request list for obtaining Java application server;The acquisition module 32 is based on the activity request order, obtains just At the beginning of the request url of processing, the request handled, in the handling duration and thread pool of the request that are handling The stack information handled in real time;The activity request list of Java application server is sent to user terminal by the sending module 33, So that the user terminal is shown the activity request list of Java application server, in the information of the activity request list Include: at the beginning of the request url handled of acquisition, the request handled, when the processing of the request that is handling The stack information handled in real time in long and thread pool.
The real-time acquisition device of activity request list, is applied in Java application server provided in an embodiment of the present invention Agent end process is acted on behalf of on Java application server, family end is able to use and obtains activity in Java application server in real time and ask Ask list, and at the beginning of in the activity request list including the request handled, handling duration and thread pool In more useful solicited messages such as the stack information that handles in real time, it is particularly useful to subsequent positioning failure code.
Further, on the basis of the above embodiments, the acquisition module 32, can be specifically used for
Based on the activity request order, by way of injecting servlet code, obtain handling request url, The storehouse letter handled in real time at the beginning of the request handled, in the handling duration and thread pool of the request that are handling Breath.
Specifically, it is described obtain in module 32 based on the activity request order, pass through the side of injection servlet code Formula, at the beginning of obtaining the request url handled, the request that is handling, the handling duration of request that is handling with And the stack information handled in real time in thread pool, may include:
Based on the activity request order, using bytecode Dynamic injection technology, injecting codes logic to servlet class Servcie method, when entering service method at the beginning of record request, and by current request information and thread information It is recorded in activity request list, when exiting service method, this solicited message is emptied in activity request list, thus It calculates in all requests handled at the beginning of each request and handling duration, is calculated by thread object Handle the real-time stack information of request thread.
In this way, the beginning of the available request url handled of the acquisition module of the present embodiment, the request handled Time, the request handled handling duration and thread pool in the stack information that handles in real time.
The real-time acquisition device of activity request list, is applied in Java application server provided in an embodiment of the present invention Agent end process is acted on behalf of on Java application server, family end is able to use and obtains activity in Java application server in real time and ask Ask list, and at the beginning of in the activity request list including the request handled, handling duration and thread pool In more useful solicited messages such as the stack information that handles in real time, it is particularly useful to subsequent positioning failure code.
The real-time acquisition device of activity request list, can be used in Java application server provided in an embodiment of the present invention The technical solution of embodiment of the method shown in earlier figures 1 is executed, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 4 shows the real-time of activity request list in a kind of Java application server of one embodiment of the invention offer and obtains The structural schematic diagram of device is taken, the present embodiment described device is applied to user terminal, as shown in figure 4, the Java of the present embodiment is applied The real-time acquisition device of activity request list in server, comprising: acquisition module 41 and display module 42;Wherein:
The display module 42 is used for every preset time period, sends activity request order and parameter to acquisition module 41, The activity request order is used to obtain the activity request list of Java application server, and the parameter specifies Java application clothes Agent end process is acted on behalf of on business device;
The acquisition module 41, the activity request order for sending the display module 42 are transmitted to the parameter and refer to Agent end process is acted on behalf of on fixed Java application server;Receive the Java application server that the Agent end process is sent Activity request list, include in the information of the activity request list: request url that Java application server is being handled, The storehouse letter handled in real time at the beginning of the request handled, in the handling duration and thread pool of the request that are handling Breath;
The display module 42 is also used to the activity request column to the received Java application server of the acquisition module 42 Table is shown.
Specifically, 42 every preset time period of display module sends activity request order and ginseng to acquisition module 41 Number, the activity request order are used to obtain the activity request list of Java application server, and the parameter specifies Java and answers Agent end process is acted on behalf of on server;The activity request order that the acquisition module 41 sends the display module 42 It is transmitted on the specified Java application server of the parameter and acts on behalf of Agent end process, receive the Agent end process and send Java application server activity request list, include in the information of the activity request list: Java application server is just At the beginning of the request url of processing, the request handled, in the handling duration and thread pool of the request that are handling The stack information handled in real time;The display module 42 asks the activity of the received Java application server of the acquisition module 42 List is asked to be shown.
The real-time acquisition device of activity request list in Java application server provided in an embodiment of the present invention is applied to use Family end can obtain activity request list in Java application server in real time, and include in the activity request list More useful request letters such as stack information handled in real time at the beginning of the request of processing, in handling duration and thread pool Breath, it is particularly useful to subsequent positioning failure code.
Further, on the basis of the above embodiments, Agent end number of processes may be thousands of, the acquisition Module can be made of multiple acquisition module node clusters, and correspondingly, the display module 42 can be specifically used for
The subordinate relation for acting on behalf of Agent end process from the acquisition module node and Java application server pre-established In table, retrieves and act on behalf of the corresponding acquisition module node of Agent end process, every preset time period on Java application server By activity request order and specifies the parameter for acting on behalf of Agent end process on Java application server and be sent to adopting of retrieving Collect Module nodes;
Correspondingly, the acquisition module 41, can be specifically used for
The activity request order that the display module 42 is sent is transmitted to the parameter by the acquisition module node retrieved Agent end process is acted on behalf of on specified Java application server;The acquisition module node that retrieves receive the Agent end into The activity request list for the Java application server that journey is sent includes in the information of the activity request list: Java application clothes At the beginning of the business device request url handled, the request that is handling, the handling duration and line of the request that are handling The stack information that Cheng Chizhong is handled in real time.
Correspondingly, the display module 42 can also be specifically used for answering the received Java of acquisition module node retrieved It is shown with the activity request list of server.
It is understood that the display module acquisition module node that needs real-time servicing to pre-establish and Java application service The subordinate relation table for acting on behalf of Agent end process on device.
The real-time acquisition device of activity request list in Java application server provided in an embodiment of the present invention is applied to use Family end can obtain activity request list in Java application server in real time, and include in the activity request list More useful request letters such as stack information handled in real time at the beginning of the request of processing, in handling duration and thread pool Breath, it is particularly useful to subsequent positioning failure code.
The real-time acquisition device of activity request list, can be used in Java application server provided in an embodiment of the present invention The technical solution of embodiment of the method shown in earlier figures 2 is executed, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 5 shows the entity structure schematic diagram of a kind of electronic equipment of one embodiment of the invention offer, as shown in figure 5, The electronic equipment may include memory 502, processor 501 and be stored on memory 502 and can run on processor 501 Computer program, the step of processor 501 realizes the above method when executing described program, for example, receive user The activity request order sent is held, the activity request order is used to obtain the activity request list of Java application server;Base In the activity request order, at the beginning of obtaining the request url handled, the request handled, handling The stack information handled in real time in the handling duration and thread pool of request;The activity request list of Java application server is sent out User terminal is given, so that the user terminal is shown the activity request list of Java application server, the activity request Include in the information of list: at the beginning of the request url handled of acquisition, the request handled, handling The stack information handled in real time in the handling duration and thread pool of request;Or, comprising: display module is every preset time Section sends activity request order and parameter to acquisition module, and the activity request order is for obtaining Java application server Activity request list, the parameter specify and act on behalf of Agent end process on Java application server;Acquisition module is by the exhibition Show activity request order that module is sent be transmitted on the specified Java application server of the parameter act on behalf of Agent end into Journey;Acquisition module receives the activity request list for the Java application server that the Agent end process is sent, and by showing mould Block is shown, and includes in the information of the activity request list: request url that Java application server is being handled, The stack information handled in real time at the beginning of the request of processing, in the handling duration and thread pool of the request that are handling.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, should The step of above method is realized when computer program is executed by processor, for example, receive the activity request that user terminal is sent Order, the activity request order are used to obtain the activity request list of Java application server;It is ordered based on the activity request Enable, at the beginning of obtaining the request url handled, the request that is handling, the handling duration of request that is handling with And the stack information handled in real time in thread pool;The activity request list of Java application server is sent to user terminal, so that The user terminal is shown the activity request list of Java application server, wraps in the information of the activity request list Contain: at the beginning of the request url handled of acquisition, the request handled, the handling duration of request that is handling And the stack information handled in real time in thread pool;Or, comprising: display module every preset time period is sent out to acquisition module Activity request order and parameter are sent, the activity request order is used to obtain the activity request list of Java application server, institute It states parameter and specifies and act on behalf of Agent end process on Java application server;The work that acquisition module sends the display module Dynamic request command is transmitted on the specified Java application server of the parameter and acts on behalf of Agent end process;Acquisition module receives The activity request list for the Java application server that the Agent end process is sent, and be shown by display module, it is described Include in the information of activity request list: the beginning of request url, the request handled that Java application server is being handled Time, the request handled handling duration and thread pool in the stack information that handles in real time.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. the real time acquiring method of activity request list in a kind of Java application server, applied on Java application server Act on behalf of Agent end process characterized by comprising
The activity request order that user terminal is sent is received, the activity request order is used to obtain the activity of Java application server Request list;
Based on the activity request order, at the beginning of obtaining the request url handled, the request handled, The stack information handled in real time in the handling duration and thread pool of the request of processing;
The activity request list of Java application server is sent to user terminal, so that the user terminal is to Java application server Activity request list be shown, include in the information of the activity request list: the request url of acquisition handled, The storehouse letter handled in real time at the beginning of the request handled, in the handling duration and thread pool of the request that are handling Breath.
2. acquisition is being located the method according to claim 1, wherein described be based on the activity request order At the beginning of the request url of reason, the request handled, in the handling duration and thread pool of the request that are handling in real time The stack information of processing, comprising:
Based on the activity request order, by way of injecting servlet code, the request url, handled is obtained The stack information handled in real time at the beginning of the request of processing, in the handling duration and thread pool of the request that are handling.
3. according to the method described in claim 2, it is characterized in that, it is described be based on the activity request order, pass through injection The mode of servlet code, at the beginning of obtaining the request url handled, the request that is handling, asking of handling The stack information handled in real time in the handling duration and thread pool asked, comprising:
Based on the activity request order, using bytecode Dynamic injection technology, injecting codes logic to servlet class Servcie method, when entering service method at the beginning of record request, and by current request information and thread information It is recorded in activity request list, when exiting service method, this solicited message is emptied in activity request list, thus It calculates in all requests handled at the beginning of each request and handling duration, is calculated by thread object Handle the real-time stack information of request thread.
4. the real time acquiring method of activity request list in a kind of Java application server is applied to user terminal, which is characterized in that Include:
Display module every preset time period sends activity request order and parameter, the activity request order to acquisition module For obtaining the activity request list of Java application server, the parameter specifies the agency on Java application server Agent end process;
The activity request order that the display module is sent is transmitted to the specified Java application service of the parameter by acquisition module Agent end process is acted on behalf of on device;
Acquisition module receives the activity request list for the Java application server that the Agent end process is sent, and passes through displaying Module is shown, and includes in the information of the activity request list: request url that Java application server is being handled, just The storehouse letter handled in real time at the beginning of the request of processing, in the handling duration and thread pool of the request that are handling Breath.
5. according to the method described in claim 4, it is characterized in that, the acquisition module is by multiple acquisition module node cluster groups At correspondingly, the display module every preset time period sends activity request order and parameter to acquisition module, comprising:
Display module is from the subordinate for acting on behalf of Agent end process on the acquisition module node that pre-establishes and Java application server In relation table, retrieves and act on behalf of the corresponding acquisition module node of Agent end process on Java application server, when default Between section activity request order and the parameter for acting on behalf of Agent end process for specifying on Java application server are sent to and are retrieved Acquisition module node;
Correspondingly, the activity request order that the display module is sent is transmitted to what the parameter was specified by the acquisition module Agent end process is acted on behalf of on Java application server, comprising:
The activity request order that the display module is sent is transmitted to what the parameter was specified by the acquisition module node retrieved Agent end process is acted on behalf of on Java application server;
Correspondingly, the acquisition module receives the activity request list for the Java application server that the Agent end process is sent, And it is shown by display module, comprising:
The acquisition module node retrieved receives the activity request column for the Java application server that the Agent end process is sent Table, and be shown by display module.
6. the real-time acquisition device of activity request list in a kind of Java application server, applied on Java application server Act on behalf of Agent end process characterized by comprising
Receiving module, for receiving the activity request order of user terminal transmission, the activity request order is answered for obtaining Java With the activity request list of server;
Module is obtained, for being based on the activity request order, obtains the request url handled, the request handled Time started, the request handled handling duration and thread pool in the stack information that handles in real time;
Sending module, for the activity request list of Java application server to be sent to user terminal, so that the user terminal pair The activity request list of Java application server is shown, and include in the information of the activity request list: acquisition is At the beginning of the request url of processing, the request handled, it is real in the handling duration and thread pool of the request that are handling When the stack information that handles.
7. device according to claim 6, which is characterized in that the acquisition module, specifically for being asked based on the activity Order is asked, by way of injecting servlet code, at the beginning of obtaining the request url handled, the request handled Between, the stack information that is handled in real time in the handling duration and thread pool of the request that are handling.
8. the real-time acquisition device of activity request list in a kind of Java application server is applied to user terminal, which is characterized in that Include:
Display module is used for every preset time period, sends activity request order and parameter, the activity request to acquisition module The activity request list for obtaining Java application server is ordered, the parameter specifies the agency on Java application server Agent end process;
Acquisition module, the activity request order for sending the display module are transmitted to the specified Java application of the parameter Agent end process is acted on behalf of on server;Receive the activity request column for the Java application server that the Agent end process is sent Table includes in the information of the activity request list: request url that Java application server is being handled, asking of handling The stack information handled in real time at the beginning of asking, in the handling duration and thread pool of the request that are handling;
Display module, the activity request list for being also used to Java application server received to the acquisition module are shown.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor is realized when executing described program such as any one of claims 1 to 3 the method Step or the processor are realized when executing described program such as the step of claim 4 or 5 the method.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer It is realized when program is executed by processor such as the step of any one of claims 1 to 3 the method or the computer program is located It manages when device executes and realizes such as the step of claim 4 or 5 the method.
CN201910128937.XA 2019-02-21 2019-02-21 The real time acquiring method and device of activity request list in Java application server Pending CN109922141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910128937.XA CN109922141A (en) 2019-02-21 2019-02-21 The real time acquiring method and device of activity request list in Java application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910128937.XA CN109922141A (en) 2019-02-21 2019-02-21 The real time acquiring method and device of activity request list in Java application server

Publications (1)

Publication Number Publication Date
CN109922141A true CN109922141A (en) 2019-06-21

Family

ID=66961977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910128937.XA Pending CN109922141A (en) 2019-02-21 2019-02-21 The real time acquiring method and device of activity request list in Java application server

Country Status (1)

Country Link
CN (1) CN109922141A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110837455A (en) * 2019-11-07 2020-02-25 北京宝兰德软件股份有限公司 Script-based application configuration information acquisition method and device

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040075690A1 (en) * 2002-10-18 2004-04-22 Cirne Lewis K. User interface for viewing performance information about transactions
US20060143608A1 (en) * 2004-12-28 2006-06-29 Jan Dostert Thread monitoring using shared memory
US20100031252A1 (en) * 2008-07-29 2010-02-04 Compuware Corporation Method And System For Monitoring The Performance Of An Application And At Least One Storage Device For Storing Code Which Performs The Method
CN101799751A (en) * 2009-12-02 2010-08-11 山东浪潮齐鲁软件产业股份有限公司 Method for building monitoring agent software of host machine
US20120005658A1 (en) * 2007-06-05 2012-01-05 Computer Associates Think, Inc. Programmatic Root Cause Analysis For Application Performance Management
US20140068068A1 (en) * 2009-09-10 2014-03-06 AppDynamics, Inc. Performing call stack sampling
CN104407910A (en) * 2014-10-29 2015-03-11 华南理工大学 Virtualization server performance monitoring method and system
CN104503891A (en) * 2014-12-10 2015-04-08 北京京东尚科信息技术有限公司 Method and device for online monitoring JVM (Java Virtual Machine) thread
CN104699759A (en) * 2015-02-10 2015-06-10 上海新炬网络信息技术有限公司 Method for maintaining automatic operation of database
US20160098341A1 (en) * 2014-10-06 2016-04-07 Oracle International Corporation Web application performance testing
CN106375435A (en) * 2016-08-31 2017-02-01 福建天晴数码有限公司 Web thread timeout monitoring method and system
CN106407088A (en) * 2016-09-08 2017-02-15 努比亚技术有限公司 Method and device for detecting multi-core CPU
US20170269977A1 (en) * 2014-10-31 2017-09-21 AppDynamics, Inc. Business transaction context for call graph
CN107291586A (en) * 2016-04-01 2017-10-24 腾讯科技(深圳)有限公司 The analysis method and device of a kind of application program
CN108089978A (en) * 2017-11-28 2018-05-29 华北电力大学(保定) A kind of diagnostic method for analyzing ASP.NET application software performance and failure
CN108563526A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 A kind of iOS interim cards monitoring strategies
CN108733496A (en) * 2017-04-24 2018-11-02 腾讯科技(上海)有限公司 Event-handling method and device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040075690A1 (en) * 2002-10-18 2004-04-22 Cirne Lewis K. User interface for viewing performance information about transactions
US20060143608A1 (en) * 2004-12-28 2006-06-29 Jan Dostert Thread monitoring using shared memory
US20120005658A1 (en) * 2007-06-05 2012-01-05 Computer Associates Think, Inc. Programmatic Root Cause Analysis For Application Performance Management
US20100031252A1 (en) * 2008-07-29 2010-02-04 Compuware Corporation Method And System For Monitoring The Performance Of An Application And At Least One Storage Device For Storing Code Which Performs The Method
US20140068068A1 (en) * 2009-09-10 2014-03-06 AppDynamics, Inc. Performing call stack sampling
CN101799751A (en) * 2009-12-02 2010-08-11 山东浪潮齐鲁软件产业股份有限公司 Method for building monitoring agent software of host machine
US20160098341A1 (en) * 2014-10-06 2016-04-07 Oracle International Corporation Web application performance testing
CN104407910A (en) * 2014-10-29 2015-03-11 华南理工大学 Virtualization server performance monitoring method and system
US20170269977A1 (en) * 2014-10-31 2017-09-21 AppDynamics, Inc. Business transaction context for call graph
CN104503891A (en) * 2014-12-10 2015-04-08 北京京东尚科信息技术有限公司 Method and device for online monitoring JVM (Java Virtual Machine) thread
CN104699759A (en) * 2015-02-10 2015-06-10 上海新炬网络信息技术有限公司 Method for maintaining automatic operation of database
CN107291586A (en) * 2016-04-01 2017-10-24 腾讯科技(深圳)有限公司 The analysis method and device of a kind of application program
CN106375435A (en) * 2016-08-31 2017-02-01 福建天晴数码有限公司 Web thread timeout monitoring method and system
CN106407088A (en) * 2016-09-08 2017-02-15 努比亚技术有限公司 Method and device for detecting multi-core CPU
CN108733496A (en) * 2017-04-24 2018-11-02 腾讯科技(上海)有限公司 Event-handling method and device
CN108089978A (en) * 2017-11-28 2018-05-29 华北电力大学(保定) A kind of diagnostic method for analyzing ASP.NET application software performance and failure
CN108563526A (en) * 2018-03-06 2018-09-21 北京酷我科技有限公司 A kind of iOS interim cards monitoring strategies

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱琦等: "《分布式应用系统运维理论与实践》", 31 October 2014, 中国环境科学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110837455A (en) * 2019-11-07 2020-02-25 北京宝兰德软件股份有限公司 Script-based application configuration information acquisition method and device
CN110837455B (en) * 2019-11-07 2023-04-14 北京宝兰德软件股份有限公司 Script-based application configuration information acquisition method and device

Similar Documents

Publication Publication Date Title
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
CN105183299B (en) A kind of man-machine interface service processing system and method
CN102880503B (en) Data analysis system and data analysis method
US7886295B2 (en) Connection manager, method, system and program product for centrally managing computer applications
CN107688496A (en) Task distribution formula processing method, device, storage medium and server
CN112559133A (en) Cloud-edge coordination system and cloud-edge coordination method based on native container technology
CN108388479A (en) Postpone information push method, device, computer equipment and storage medium
CN109656782A (en) Visual scheduling monitoring method, device and server
CN105978721B (en) The methods, devices and systems of monitoring service operating status in a kind of group system
CN113220431B (en) Cross-cloud distributed data task scheduling method, device and storage medium
CN111210340A (en) Automatic task processing method and device, server and storage medium
CN106250254B (en) A kind of task processing method and system
CN106357430A (en) Method and system for service state monitoring of cloud computing cluster
CN106484459A (en) It is applied to flow control method and the device of JavaScript
CN109922141A (en) The real time acquiring method and device of activity request list in Java application server
CN107908481A (en) A kind of method of data synchronization, device and system
CN112131188B (en) Batch file distribution processing method and device
CN108959657A (en) A kind of operation of data modification method and device
EP3687133B1 (en) System and method for synchronization of media objects between devices operating in a multiroom system
CN109274533B (en) Web service fault positioning device and method based on rule engine
CN110839061A (en) Data distribution method, device and storage medium
CN111722914B (en) Timed task distribution method, timed task distribution system, computer equipment and storage medium
CN111756778A (en) Server disk cleaning script pushing method and device and storage medium
US11294704B2 (en) Monitoring and reporting performance of online services using a monitoring service native to the online service
CN111601291A (en) RFID middleware, publish-subscribe system and data transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190621

RJ01 Rejection of invention patent application after publication