CN110609771A - Method for counting time consumption of each internal interface relative to time consumption distribution of current overall request - Google Patents

Method for counting time consumption of each internal interface relative to time consumption distribution of current overall request Download PDF

Info

Publication number
CN110609771A
CN110609771A CN201910882038.9A CN201910882038A CN110609771A CN 110609771 A CN110609771 A CN 110609771A CN 201910882038 A CN201910882038 A CN 201910882038A CN 110609771 A CN110609771 A CN 110609771A
Authority
CN
China
Prior art keywords
interface
calling
request
module
target
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
CN201910882038.9A
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.)
Dajiang Network Technology (shanghai) Co Ltd
Original Assignee
Dajiang Network Technology (shanghai) 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 Dajiang Network Technology (shanghai) Co Ltd filed Critical Dajiang Network Technology (shanghai) Co Ltd
Priority to CN201910882038.9A priority Critical patent/CN110609771A/en
Publication of CN110609771A publication Critical patent/CN110609771A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2733Test interface between tester and unit under test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/277Tester hardware, i.e. output processing circuits with comparison between actual response and known fault-free response

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method for counting time consumption of each internal interface relative to the time consumption distribution of the whole request comprises the following specific steps: s1, receiving an interface calling request sent by an external interface A of calling equipment to a target interface set B; s2, when the request of calling the target interface set by the external interface A is not overtime, establishing a relation between the external interface A and the target interface set B; when the request of calling the target interface set by the external interface A is overtime, continuing the subsequent operation; s3, calling a log of the interface calling request; and S4, analyzing the ratio of the consumed time of each interface in the target interface set B to the calling time of the current interface according to the log. According to the invention, the ratio of the time consumed by each interface in the target interface set B to the current interface calling time is analyzed in the log C generated in the interface calling request period sent to the target interface set B by the external interface A, so that the problem that the request for calling the target interface set B by the external interface A is overtime is quickly positioned.

Description

Method for counting time consumption of each internal interface relative to time consumption distribution of current overall request
Technical Field
The invention relates to the technical field of communication, in particular to a method for counting time consumption of each internal interface relative to the time consumption of the current overall request.
Background
In the UMP system application process, when one interface of the calling device calls a plurality of internal interfaces, especially in a short time, several internal interfaces take long time but the TP99 alarm threshold is not reached; at the moment, the system does not send out alarm reminding, but the most direct phenomenon is that the upstream interface calls the current request to be overtime; this time the other looks normal except for the requesting thread being full. Because no alarm warning exists, the condition that the request overtime is caused by the abnormality of the internal interface cannot be suspected, and the best time for finding the problem is missed; therefore, the method for counting the time consumption of each internal interface relative to the time consumption of the whole request is provided, and the time consumption distribution situation of each interface in the internal interfaces in the interface calling request process is counted, so that the problem can be visually found, the problem interface can occupy most of the time consumption of the request, and the problem can be rapidly positioned.
Disclosure of Invention
Objects of the invention
In order to solve the technical problems in the background art, the invention provides a method for counting the time consumption of each internal interface relative to the time consumption of the whole request.
(II) technical scheme
In order to solve the above problems, the present invention provides a method for counting the time consumption of each internal interface relative to the time consumption distribution of the current overall request, which comprises the following specific steps:
s1, receiving an interface calling request sent by an external interface A of calling equipment to a target interface set B;
s2, judging whether the request of the external interface A for calling the target interface set B is overtime:
when the request of calling the target interface set by the external interface A is not overtime, establishing a relation between the external interface A and the target interface set B;
when the request of calling the target interface set by the external interface A is overtime, continuing the subsequent operation;
s3, calling a log of the interface calling request;
and S4, analyzing the ratio of the consumed time of each interface in the target interface set B to the calling time of the current interface according to the log.
Preferably, whether the request of the external interface a for calling the target interface set is overtime or not is judged, and the request thread in the UMP system is full.
Preferably, whether the request for calling the target interface set by the external interface a is overtime or not, and an interface which takes long time but does not reach the alarm threshold TP99 exists in the target interface set B, and at this time, the alarm of the UMP system is not triggered.
Preferably, the log generated during the interface call request is delivered by the UDP log server.
Preferably, the invention further provides a control system for counting the time consumption of each internal interface relative to the time consumption distribution of the whole request, which comprises an interface calling request module, a judgment module, a storage module, a calling module and an analysis module;
the interface calling request module is in communication connection with the UMP system and is used for receiving an interface calling request sent by an external interface A of calling equipment to a target interface set B;
the judging module is in communication connection with the interface calling request module and is used for judging whether the request of calling the target interface set B by the external interface A is overtime or not;
the storage module is in communication connection with the interface calling request module and the judgment module, and is used for storing a log C generated during an interface calling request sent by the external interface A to the target interface set B;
the calling module is in communication connection with the storage module and is used for calling the log C from the storage module;
the analysis module is in communication connection with the calling module and is used for analyzing the ratio of the consumed time of each interface in the target interface set B to the calling time of the interface from the log C.
Preferably, the storage module is further configured to store the result calculated by the analysis module.
The technical scheme of the invention has the following beneficial technical effects:
in the invention, an external interface A of the calling equipment calls a target interface set B, and when the calling equipment is greatly promoted, an interface which consumes long time but does not reach the alarm threshold of TP99 exists in the target interface set B, and at the moment, the system does not alarm; however, if the request called by the upstream interface is overtime, the request thread in the system is filled, and the whole interface is normally viewed because the alarm is not triggered, so that the fault caused by the target interface set B cannot be imagined; according to the method, the problem can be quickly positioned by overtime of the request for calling the target interface set by the external interface A, by calling the log C generated in the interface calling request period sent by the external interface A to the target interface set B and analyzing the ratio of the time consumed by each interface in the target interface set B to the calling time of the current interface from the log C, and under the condition that the time consumed by each internal interface in the target interface set B is distributed, the problem can be obviously and intuitively found that most of the time consumed by the current request can be occupied by the problematic interface.
Drawings
Fig. 1 is a flowchart of a method for counting the time consumption of each internal interface relative to the time consumption of the current overall request according to the present invention.
Fig. 2 is a schematic block diagram of a control system in a method for counting time consumption of each internal interface relative to the time consumption distribution of the current overall request according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
As shown in fig. 1, the method for counting the time consumption of each internal interface relative to the time consumption distribution of the current overall request provided by the present invention includes the following specific steps:
s1, receiving an interface calling request sent by an external interface A of calling equipment to a target interface set B;
s2, judging whether the request of the external interface A for calling the target interface set B is overtime:
when the request of calling the target interface set by the external interface A is not overtime, establishing a relation between the external interface A and the target interface set B to realize the communication between the external interface A and the target interface set B;
when the request of calling the target interface set by the external interface A is overtime, continuing the subsequent operation;
s3, calling a log of the interface calling request; analyzing the time consumption situation of the outermost layer interface from the log, and then finding out the time consumption of the interface related to the request;
and S4, analyzing the ratio of the consumed time of each interface in the target interface set B to the calling time of the current interface according to the log.
In an alternative embodiment, the target interface set B uses jsf interface, and jsf interface is an internal interface of the system.
In an alternative embodiment, the external interface a calls whether the request of the target interface set is timed out, and the requesting thread in the UMP system is full.
In an alternative embodiment, if the request for calling the target interface set by the external interface a is overtime, and an interface which takes a long time but does not reach the alarm threshold TP99 exists in the target interface set B, the alarm of the UMP system is not triggered.
And the TP index means that in a time period, the time consumed by each calling of the method is counted, the times are sequenced from small to large, and the result is taken out as follows: and taking out the corresponding sequenced time according to the serial number, namely the TP index.
In an alternative embodiment, the log produced during the interface call request is transported via a UDP log server.
As shown in fig. 2, the present invention further provides a control system for counting the time consumption of each internal interface relative to the time consumption distribution method of the present overall request, including an interface calling request module, a determining module, a storing module, a calling module and an analyzing module;
the interface calling request module is in communication connection with the UMP system and is used for receiving an interface calling request sent by an external interface A of calling equipment to a target interface set B;
the judging module is in communication connection with the interface calling request module and is used for judging whether the request of calling the target interface set B by the external interface A is overtime or not;
the storage module is in communication connection with the interface calling request module and the judgment module, and is used for storing a log C generated during an interface calling request sent by the external interface A to the target interface set B;
the calling module is in communication connection with the storage module and is used for calling the log C from the storage module;
the analysis module is in communication connection with the calling module and is used for analyzing the ratio of the consumed time of each interface in the target interface set B to the calling time of the interface from the log C.
In an optional embodiment, the storage module is further configured to store the result calculated by the analysis module.
In the invention, an external interface A of the calling equipment calls a target interface set B, and when the calling equipment is greatly promoted, an interface which consumes long time but does not reach the alarm threshold of TP99 exists in the target interface set B, and at the moment, the system does not alarm; however, if the request called by the upstream interface is overtime, the request thread in the system is filled, and the whole interface is normally viewed because the alarm is not triggered, so that the fault caused by the target interface set B cannot be imagined; according to the method, the problem can be quickly positioned by overtime of the request for calling the target interface set by the external interface A, by calling the log C generated in the interface calling request period sent by the external interface A to the target interface set B and analyzing the ratio of the time consumed by each interface in the target interface set B to the calling time of the current interface from the log C, and under the condition that the time consumed by each internal interface in the target interface set B is distributed, the problem can be obviously and intuitively found that most of the time consumed by the current request can be occupied by the problematic interface.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

Claims (6)

1. A method for counting time consumption of each internal interface relative to the time consumption distribution of the whole request is characterized by comprising the following specific steps:
s1, receiving an interface calling request sent by an external interface A of calling equipment to a target interface set B;
s2, judging whether the request of the external interface A for calling the target interface set B is overtime:
when the request of calling the target interface set by the external interface A is not overtime, establishing a relation between the external interface A and the target interface set B;
when the request of calling the target interface set by the external interface A is overtime, continuing the subsequent operation;
s3, calling a log of the interface calling request;
and S4, analyzing the ratio of the consumed time of each interface in the target interface set B to the calling time of the current interface according to the log.
2. The method as claimed in claim 1, wherein the external interface a calls whether the request of the target interface set is overtime, and the request thread in the UMP system is full.
3. The method as claimed in claim 2, wherein the external interface a calls whether the request of the target interface set is overtime, and the target interface set B has an interface that consumes long time but has not reached the TP99 alarm threshold, and at this time, the alarm of the UMP system is not triggered.
4. The method for counting the time consumption of each internal interface relative to the time consumption of the whole request according to claim 1, wherein the logs generated in the process of the interface call request are transmitted through a UDP log server.
5. The invention also provides a control system for counting the time consumption of each internal interface relative to the time consumption distribution of the current overall request according to any one of claims 1 to 4, which is characterized by comprising an interface calling request module, a judgment module, a storage module, a calling module and an analysis module;
the interface calling request module is in communication connection with the UMP system and is used for receiving an interface calling request sent by an external interface A of calling equipment to a target interface set B;
the judging module is in communication connection with the interface calling request module and is used for judging whether the request of calling the target interface set B by the external interface A is overtime or not;
the storage module is in communication connection with the interface calling request module and the judgment module, and is used for storing a log C generated during an interface calling request sent by the external interface A to the target interface set B;
the calling module is in communication connection with the storage module and is used for calling the log C from the storage module;
the analysis module is in communication connection with the calling module and is used for analyzing the ratio of the consumed time of each interface in the target interface set B to the calling time of the interface from the log C.
6. The method as claimed in claim 5, wherein the storage module is further configured to store the result calculated by the analysis module.
CN201910882038.9A 2019-09-18 2019-09-18 Method for counting time consumption of each internal interface relative to time consumption distribution of current overall request Pending CN110609771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910882038.9A CN110609771A (en) 2019-09-18 2019-09-18 Method for counting time consumption of each internal interface relative to time consumption distribution of current overall request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910882038.9A CN110609771A (en) 2019-09-18 2019-09-18 Method for counting time consumption of each internal interface relative to time consumption distribution of current overall request

Publications (1)

Publication Number Publication Date
CN110609771A true CN110609771A (en) 2019-12-24

Family

ID=68891608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910882038.9A Pending CN110609771A (en) 2019-09-18 2019-09-18 Method for counting time consumption of each internal interface relative to time consumption distribution of current overall request

Country Status (1)

Country Link
CN (1) CN110609771A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158895A (en) * 2006-12-25 2008-07-10 Ricoh Co Ltd Information processor, information processing method, and information processing program
CN107545187A (en) * 2016-06-24 2018-01-05 阿里巴巴集团控股有限公司 A kind of processing method and processing device of service data
CN108920346A (en) * 2018-06-05 2018-11-30 北京奇安信科技有限公司 Web server interface time-consuming statistical method and device
CN109753406A (en) * 2018-12-05 2019-05-14 平安科技(深圳)有限公司 Method for monitoring performance, device, equipment and the computer readable storage medium of interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158895A (en) * 2006-12-25 2008-07-10 Ricoh Co Ltd Information processor, information processing method, and information processing program
CN107545187A (en) * 2016-06-24 2018-01-05 阿里巴巴集团控股有限公司 A kind of processing method and processing device of service data
CN108920346A (en) * 2018-06-05 2018-11-30 北京奇安信科技有限公司 Web server interface time-consuming statistical method and device
CN109753406A (en) * 2018-12-05 2019-05-14 平安科技(深圳)有限公司 Method for monitoring performance, device, equipment and the computer readable storage medium of interface

Similar Documents

Publication Publication Date Title
CN103379090B (en) A kind of control method for frequency and system, frequency server of open platform access
US10812314B2 (en) Methods and apparatuses for pushing a message
CN103684880A (en) Alarming control method and alarming device
EP2800024A1 (en) System and methods for identifying applications in mobile networks
CN103259684A (en) Internet service monitoring method and system
CN110445650A (en) Detect alarm method, equipment and server
CN108572898A (en) A kind of method, apparatus of control interface, equipment and storage medium
CN101945006B (en) Detection method of abnormal call
US20150350809A1 (en) Terminal peripheral management method and m2m gateway
CN105094278B (en) A kind of information processing method and device
CN108763046A (en) Thread operation and monitoring method, device, computer equipment and storage medium
CN104618879A (en) Distributed quick short message sending system
CN105530110B (en) A kind of network fault detecting method and related network elements
CN106488416B (en) Industry short message sending method and device
CN110609771A (en) Method for counting time consumption of each internal interface relative to time consumption distribution of current overall request
CN105281824A (en) Method and device for detecting constant light-emitting optical network unit (ONU) and network management equipment
CN105656855B (en) The control method and device that resource accesses
CN101982949A (en) Detection system of intelligent network equipment and method
CN105224426A (en) Physical host fault detection method, device and empty machine management method, system
CN108234658B (en) Method and device for sensing health condition of server cluster and server
CN114585035B (en) Voice call method, device and computer readable storage medium
CN111049679A (en) Server warning method and system
CN106856599B (en) Terminal, detection service device, short message receiving-transmitting fault detection method and system
CN106168970A (en) Functional module detection method and system towards question and answer robot
CN107371141B (en) Junk information monitoring method and device and communication system

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