CN105389202A - Method and system for processing application response - Google Patents

Method and system for processing application response Download PDF

Info

Publication number
CN105389202A
CN105389202A CN201510828793.0A CN201510828793A CN105389202A CN 105389202 A CN105389202 A CN 105389202A CN 201510828793 A CN201510828793 A CN 201510828793A CN 105389202 A CN105389202 A CN 105389202A
Authority
CN
China
Prior art keywords
value
application
timer
warning
application program
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
CN201510828793.0A
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.)
Fujian TQ Digital Co Ltd
Original Assignee
Fujian TQ Digital 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 Fujian TQ Digital Co Ltd filed Critical Fujian TQ Digital Co Ltd
Priority to CN201510828793.0A priority Critical patent/CN105389202A/en
Publication of CN105389202A publication Critical patent/CN105389202A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a method and system for processing an application response. The method comprises: a first timer timing the duration of an application processing service logic so as to obtain a first value; a second timer timing the duration of communication between the application and a network program so as to obtain a second value; determining that the first value and/or the second meets a warning condition; and performing warning on the application, and performing optimization processing. According to the method and system, an operating cycle can be monitored in real time; the responding speed of an application can be analyzed; and through optimization processing, the application can operate in an optimal state so that time consumed inside the application is reduced and user experience at a client is improved.

Description

The method and system of process application response
Technical field
The present invention relates to a kind of method and system processing application response.
Background technology
Current application program, all needs the support of network substantially, but in the process of network communication, has very many factors can have influence on the speed of response.The general flow process of web application is, after receiving client-requested, process business logical OR and other web application communication, until after flow processing completes, return to client.For general flow process, the slow or situation slow with other web application communication in business logic processing, client, in long time, just can receive result.Therefore this mode poor user experience.
Summary of the invention
Technical matters to be solved by this invention is: increase early warning mechanism, can carry out follow-up Optimum Operation, application program can be run with optimum condition after early warning.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is: provide a kind of method processing application response, comprising:
During the first timer, the duration of application program process service logic, obtains the first numerical value;
The duration of application program and network program communication during the second timer, obtains second value;
Determine that the first numerical value and/or second value meet early-warning conditions;
Early warning is carried out in application programs response, and carries out optimization process.
For solving the problem, the present invention also provides a kind of system processing application response, comprising:
First timer, for the duration of timing application program process service logic, obtains the first numerical value;
Second timer, for the duration of timing application program and network program communication, obtains second value;
Analyzer, for determining that the first numerical value and/or second value meet early-warning conditions;
Precaution device, carries out early warning for application programs response;
Processor, for after early warning, the response of application programs is optimized process.
Beneficial effect of the present invention is: be different from prior art, the present invention at process service logic and the duration with other network program communications, obtains two duration numerical value by timing application program, and after long number value meets early-warning conditions at that time, carry out early warning, and correspondingly optimization process.By the way, the present invention can monitor the cycle of operation in real time, and routine analyzer response speed, by optimization process, application program can be run with optimum condition, and it is consuming time to reduce program inside, promotes client user and experiences.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the inventive method embodiment one;
Fig. 2 is the schematic flow sheet of the specific embodiment of the inventive method;
Fig. 3 is the structured flowchart of present system embodiment two;
Fig. 4 is the structured flowchart of present system embodiment three.
Embodiment
By describing technology contents of the present invention in detail, realized object and effect, accompanying drawing is coordinated to be explained below in conjunction with embodiment.
The design of most critical of the present invention is: carry out monitoring and early warning by application programs and with the time loss of network program communication, and do optimization process, improves program response.
Please refer to Fig. 1, the embodiment of the present invention one provides a kind of method processing application response, comprising:
During the S1: the first timer, the duration of application program process service logic, obtains the first numerical value;
The duration of application program and network program communication during the S2: the second timer, obtains second value;
S3: determine that the first numerical value and/or second value meet early-warning conditions;
S4: early warning is carried out in application programs response, and carries out optimization process.
In practical operation, the embodiment of the present invention one can carry out the business logic processing of self and the communication with other network programs by application program business logic processing module.Early warning work is carried out by warning module.
Wherein, step S1 is specially:
S11: application program obtains client-requested, and the first timer starts timing, record the first initial value;
S12: application program process business first logic, and after the N number of logic of the business of ending process, the first timer stops timing, records the first end value;
S13: according to described the first initial value and the first end value, obtain the first numerical value.
As shown in Figure 2, a specific embodiment of the present invention is after application program receives client-requested, and timer 1 starts timing, and application program starts to process service logic, wherein service logic 1 ~ N represents the whole process of business processing, and namely first service logic 1 is to last service logic N.And after in the end a service logic N processes, close timer, and the time of end of record (EOR), by contrasting with the time starting to record, obtain the consuming time of application program process service logic.Wherein, step S2 is specially:
S21: in the first timer timing course, detects application program and whether carries out communication with network program;
If so, then the S22: the second timer time communication process duration, obtain second value;
Otherwise then the S23: the second timer is not-time.
If application program has carry out communication with other network program, when communication starts, timer 2 starts timing, and after communication terminates, closes timer 2.If do not carry out communication with other network programs, then timer 2 does not make Clocked operation.
Alternatively, timer 1 and the numerical value of timer 2 are written in early warning system by the present invention, and early warning system comprises warning module.Meanwhile, application program return message is to client.
Wherein, step S3 is specially:
S31: according to service logic needs, sets the first threshold value of warning, such as, be 1 second, and the second threshold value of warning, such as, be 0.5 second;
S32: judge whether the first numerical value is more than or equal to the first threshold value of warning;
If so, then S33: determine that the first numerical value meets early-warning conditions;
Otherwise, then S34: ignore the first numerical value;
And/or
S35: judge whether second value is more than or equal to the second threshold value of warning;
If so, then S36: determine that second value meets early-warning conditions;
Otherwise, then S37: ignore second value.
After warning module analyzes the numerical value of the timer 1 received and the numerical value of timer 2 respectively, judge whether to meet early-warning conditions, wherein early-warning conditions sets according to the needs of business, the early-warning conditions of such as timer 1 can be set as 1 second, the early-warning conditions of timer 2 can be set as 0.5 second, wherein, the numerical value of timer 1 must be greater than the numerical value of timer 2.If met, then carry out early warning, and circulation is carried out into an early warning analysis.
Wherein, step S4 is specially:
S41: automatic switching line carries out self-regeneration; Or
S42: adjustment application work pattern.
Pass through early warning mechanism, after there is the situation of low-response, by selfreparing (such as automatic switching line) or the manual intervention (such as manually adjust application work pattern, only retain core business) of other module, program can be allowed again to run with optimum condition.
Therefore application program carries out the timing monitoring of various refinement work from the request that receives to the whole life cycle returned results, can express-analysis to application program inside (non-user perception) slow root.
Be different from prior art, the present invention at process service logic and the duration with other network program communications by timing application program, is obtained two duration numerical value, and after long number value meets early-warning conditions at that time, carries out early warning, and correspondingly optimization process.By the way, the present invention can monitor the cycle of operation in real time, and routine analyzer response speed, by optimization process, application program can be run with optimum condition, and it is consuming time to reduce program inside, promotes client user and experiences.
As shown in Figure 3, the embodiment of the present invention two provides a kind of system 100 processing application response, comprising:
First timer 110, for the duration of timing application program process service logic, obtains the first numerical value;
Second timer 120, for the duration of timing application program and network program communication, obtains second value;
Analyzer 130, for determining that the first numerical value and/or second value meet early-warning conditions;
Precaution device 140, carries out early warning for application programs response;
Processor 150, for after early warning, the response of application programs is optimized process.
Wherein, as shown in Figure 4, described in the system 100 of the embodiment of the present invention three, the first timer 110 comprises:
Start unit 111, obtain client-requested for application program, the first timer starts timing, record the first initial value;
End unit 112, for application program process business logical one, and after the service logic N that ends process, the first timer stops timing, records the first end value;
Computing unit 113, for according to described the first initial value and the first end value, obtains the first numerical value.
Wherein, described second timer 120 comprises:
Detecting unit 121, in the first timer timing course, detects application program and whether carries out communication with network program.
Wherein, described analyzer 130 comprises:
Threshold setting unit 131, for according to service logic needs, setting early-warning conditions, be 1 second as set the first threshold value of warning, setting the second threshold value of warning is 0.5 second;
First judging unit 132, for judging whether the first numerical value is more than or equal to the first threshold value of warning;
Second judging unit 133, for judging whether second value is more than or equal to the second threshold value of warning.
Wherein, described processor 150 also comprises:
Selfreparing unit 151, carries out self-regeneration for automatic switching line; Or
Intervene unit 152, for adjusting application work pattern.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalents utilizing instructions of the present invention and accompanying drawing content to do, or be directly or indirectly used in relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. process a method for application response, it is characterized in that, comprising:
During the first timer, the duration of application program process service logic, obtains the first numerical value;
The duration of application program and network program communication during the second timer, obtains second value;
Determine that the first numerical value and/or second value meet early-warning conditions;
Early warning is carried out in application programs response, and carries out optimization process.
2. process the method for application response according to claim 1, it is characterized in that, the duration of application program process service logic during the first timer, the step obtaining the first numerical value is specially:
Application program obtains client-requested, and the first timer starts timing, record the first initial value;
Application program process business the 1st logic, and after the N number of logic of the business of ending process, the first timer stops timing, records the first end value;
According to described the first initial value and the first end value, obtain the first numerical value.
3. process the method for application response according to claim 2, it is characterized in that, the duration of application program and network program communication during the second timer, the step obtaining second value is specially:
In the first timer timing course, detect application program and whether carry out communication with network program;
If so, then the second timer time communication process duration, obtain second value;
Otherwise then the second timer is not-time.
4. process the method for application response according to claim 1, it is characterized in that, determine that the step that the first numerical value and/or second value meet early-warning conditions is specially:
According to service logic needs, set the first threshold value of warning and the second threshold value of warning;
Judge whether the first numerical value is more than or equal to the first threshold value of warning;
If so, then determine that the first numerical value meets early-warning conditions;
Otherwise, then the first numerical value is ignored;
And/or
Judge whether second value is more than or equal to the second threshold value of warning;
If so, then determine that second value meets early-warning conditions;
Otherwise, then second value is ignored.
5. process the method for application response according to claim 2, it is characterized in that, early warning is carried out in application programs response, and the step of carrying out optimization process is specially:
Automatic switching line carries out self-regeneration; Or
Adjustment application work pattern.
6. process a system for application response, it is characterized in that, comprising:
First timer, for the duration of timing application program process service logic, obtains the first numerical value;
Second timer, for the duration of timing application program and network program communication, obtains second value;
Analyzer, for determining that the first numerical value and/or second value meet early-warning conditions;
Precaution device, carries out early warning for application programs response;
Processor, for after early warning, the response of application programs is optimized process.
7. process the system of application response according to claim 6, it is characterized in that, described first timer comprises:
Start unit, obtain client-requested for application program, the first timer starts timing, record the first initial value;
End unit, for application program process business logical one, and after the service logic N that ends process, the first timer stops timing, records the first end value;
Computing unit, for according to described the first initial value and the first end value, obtains the first numerical value.
8. process the system of application response according to claim 7, it is characterized in that, described second timer comprises:
Detecting unit, in the first timer timing course, detects application program and whether carries out communication with network program.
9. process the system of application response according to claim 6, it is characterized in that, described analyzer comprises:
Threshold setting unit, for according to service logic needs, sets the first threshold value of warning and the second threshold value of warning;
First judging unit, for judging whether the first numerical value is more than or equal to the first threshold value of warning;
Second judging unit, for judging whether second value is more than or equal to the second threshold value of warning.
10. process the system of application response according to claim 6, it is characterized in that, described processor also comprises:
Selfreparing unit, carries out self-regeneration for automatic switching line; Or
Intervene unit, for adjusting application work pattern.
CN201510828793.0A 2015-11-25 2015-11-25 Method and system for processing application response Pending CN105389202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510828793.0A CN105389202A (en) 2015-11-25 2015-11-25 Method and system for processing application response

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510828793.0A CN105389202A (en) 2015-11-25 2015-11-25 Method and system for processing application response

Publications (1)

Publication Number Publication Date
CN105389202A true CN105389202A (en) 2016-03-09

Family

ID=55421509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510828793.0A Pending CN105389202A (en) 2015-11-25 2015-11-25 Method and system for processing application response

Country Status (1)

Country Link
CN (1) CN105389202A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234152A (en) * 2016-12-12 2018-06-29 北京京东尚科信息技术有限公司 The method and system for the network monitoring that remote interface calls
CN108255659A (en) * 2016-12-28 2018-07-06 平安科技(深圳)有限公司 A kind of application program capacity monitoring method and its system
CN110300136A (en) * 2018-03-22 2019-10-01 杭州萤石软件有限公司 A kind of cradle head control optimization method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506829A (en) * 2002-12-06 2004-06-23 中国科学院计算技术研究所 Method of preventing software error caused by long time running
CN104104554A (en) * 2013-04-10 2014-10-15 深圳市腾讯计算机系统有限公司 Life cycle method and apparatus for detecting data access request
CN104320285A (en) * 2014-11-06 2015-01-28 中国建设银行股份有限公司 Website running status monitoring method and device
CN104407964A (en) * 2014-12-08 2015-03-11 国家电网公司 Centralized monitoring system and method based on data center
CN104503912A (en) * 2014-12-24 2015-04-08 中科创达软件股份有限公司 Monitoring method and device for service responding process
CN104935621A (en) * 2014-03-20 2015-09-23 中芯国际集成电路制造(上海)有限公司 Remote monitoring system and remote monitoring method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506829A (en) * 2002-12-06 2004-06-23 中国科学院计算技术研究所 Method of preventing software error caused by long time running
CN104104554A (en) * 2013-04-10 2014-10-15 深圳市腾讯计算机系统有限公司 Life cycle method and apparatus for detecting data access request
CN104935621A (en) * 2014-03-20 2015-09-23 中芯国际集成电路制造(上海)有限公司 Remote monitoring system and remote monitoring method
CN104320285A (en) * 2014-11-06 2015-01-28 中国建设银行股份有限公司 Website running status monitoring method and device
CN104407964A (en) * 2014-12-08 2015-03-11 国家电网公司 Centralized monitoring system and method based on data center
CN104503912A (en) * 2014-12-24 2015-04-08 中科创达软件股份有限公司 Monitoring method and device for service responding process

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234152A (en) * 2016-12-12 2018-06-29 北京京东尚科信息技术有限公司 The method and system for the network monitoring that remote interface calls
CN108234152B (en) * 2016-12-12 2021-08-10 北京京东尚科信息技术有限公司 Method and system for network monitoring of remote interface calls
CN108255659A (en) * 2016-12-28 2018-07-06 平安科技(深圳)有限公司 A kind of application program capacity monitoring method and its system
CN108255659B (en) * 2016-12-28 2021-06-29 平安科技(深圳)有限公司 Application program performance monitoring method and system
CN110300136A (en) * 2018-03-22 2019-10-01 杭州萤石软件有限公司 A kind of cradle head control optimization method and system
CN110300136B (en) * 2018-03-22 2021-12-24 杭州萤石软件有限公司 Cloud deck control optimization method and system

Similar Documents

Publication Publication Date Title
US9970966B2 (en) Method, device and computer storage medium for detecting power consumption of an application
CN104601203A (en) Dynamic connection parameter regulation method and device for low-power consumption Bluetooth equipment
CN105389202A (en) Method and system for processing application response
EP3190771B1 (en) Method and device for managing instant communication application program, and mobile terminal thereof
WO2011056007A3 (en) Method and apparatus for controlling power in low-power multi-core system
CN101482849A (en) Test monitoring method and apparatus
CN104732285A (en) Performance optimizing strategy obtaining and terminal performance optimizing method, server and terminal
CN111475213B (en) Power consumption reduction method and device for solid state disk with multi-core structure and computer equipment
CN104731701A (en) Test system and method and device for executing test tasks
CN104731301A (en) Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
US9377834B2 (en) Adjusting working frequency of a processor based on monitored idle time
CN105873194A (en) Method and device for reporting behaviours of mobile terminal
CN103941788A (en) Chip adaptive voltage regulator and method
CN104320285A (en) Website running status monitoring method and device
CN103906123A (en) Terminal measurement dispatching method and device
CN107506286A (en) CPU and memory block automatically upper inserting method and system
CN105095045A (en) Method and system for monitoring background service of Android system
CN104765679A (en) Online business test method and device based on user behaviors
CN112583617B (en) Fault determination method, server, control terminal and storage medium
CN105530512A (en) Method and device for detecting and repairing smart television fault
CN104572155A (en) Computer upgrading control system and method
CN114446226A (en) LED display screen dynamic display remote monitoring system
CN106775642B (en) The unlimited backstage localization method and system of a kind of Mobile solution
Wang et al. Standby energy analysis and optimization for smartphones
KR20160147493A (en) Method of saving energy based on confidence interval and apparatus using the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160309