CN105808441A - Multidimensional performance diagnosis and analysis method - Google Patents

Multidimensional performance diagnosis and analysis method Download PDF

Info

Publication number
CN105808441A
CN105808441A CN201610196391.8A CN201610196391A CN105808441A CN 105808441 A CN105808441 A CN 105808441A CN 201610196391 A CN201610196391 A CN 201610196391A CN 105808441 A CN105808441 A CN 105808441A
Authority
CN
China
Prior art keywords
performance
request
data
client
server
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.)
Granted
Application number
CN201610196391.8A
Other languages
Chinese (zh)
Other versions
CN105808441B (en
Inventor
王召冠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201610196391.8A priority Critical patent/CN105808441B/en
Publication of CN105808441A publication Critical patent/CN105808441A/en
Application granted granted Critical
Publication of CN105808441B publication Critical patent/CN105808441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a multidimensional performance diagnosis and analysis method and belongs to the field of performance analysis processing of application software. The problem how to better analyze and process the performance of a server system is solved. According to technical scheme, the multidimensional performance diagnosis and analysis method includes the following steps that a client side invokes a unified inlet of a server to initiate a batch mark of a debug mode; the server is applied to increase interception processing, and a mark and a time record are added for each request; a data access layer common interface obtains the batch identification and request identifications of the client side according to the context of a current thread and records all SQL scripts and execution time; statistics is conducted on the resource occupancy situation and waiting events of a database; the client side completes the debug mode, requests for the performance data produced in the process of the debug mode and calculates and displays the time distribution situation and corresponding waiting situation in the response processing process of the current debug request.

Description

A kind of various dimensions performance diagnogtics analyzes method
Technical field
The present invention relates to the performance evaluation process field of a kind of application software, specifically a kind of various dimensions performance diagnogtics analyzes method.
Background technology
During the performance evaluation of application software processes, there are the following problems:
1, when system is huge, business is complicated, a whole set of software is all adopt hierarchical-development, and each layer identification code increases log counting response time and also exports, very inconvenient, also not science, and workload is very big;
2, outer layer interface tracking result display application server responses is relatively slow, but the code many places oneself safeguarded have invoked the interface of other modules, has no way of doing it;When exchanging with other modules colleague, complicated, communication difficulty is described;
3, between the response of APPServer and DB, there is obvious delay, if started with from code inspection, workload is huge, and subjective factors impact is bigger;
4, Oracle environment is inconvenient to the execution record of following the tracks of SQL script, although Sqlserver can accomplish, but the SQL tracing into other modules does not know it is which method call yet.
Summary of the invention
The technical assignment of the present invention is for above weak point, it is provided that a kind of various dimensions performance diagnogtics analyzes method, the problem solving how the performance of server system better to be analyzed and processed.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of various dimensions performance diagnogtics analyzes method, it is characterised in that is the method that analyzes and processes of the performance issue to application software, comprises the steps:
(1), the unified entrance of client call service device, open batch mark (such as generating a GUID) of debugging mode, in request later, all can increase batch mark of this debugging, in order to server distinguishes all requests;
(2), application server increase intercept process, increase labelling and time record for each request;
(3), data access layer common interface, obtain the mark of the batch ID of client and request according to current thread context, record all of SQL script and execution time;
(4), the wait event of resource consumption statistic situation and data base;
(5), client terminates debugging mode, the performance data produced in this debugging mode process of server request, and in conjunction with the performance response of client itself, calculate and show the wait situation of the Annual distribution situation in this debugging request response processing procedure and correspondence.
Performance data includes: the number of times of the data volume of transmission, the data volume of reception, funcall request, sends that data are consuming time, return that data are consuming time, data base is consuming time, server end is consuming time and client is consuming time.
Performance data is shown by graphical interfaces, it is possible to find out distribution consuming time clearly.
Performance data is the performance data of client, network, application server, data base or storage.
In step (2), application server increases blocker or third party's AOP plug-in unit, for intercept process, uses the mode of Noninvasive to intercept all requests, it is that each request increases labelling and time record in the front and back that request processes, in order to distinguish the different disposal details in each request.
Blocker adopts the HttpModule of Interceptor or .NET of java.
In step (4), it is operated by the performance monitor of system, obtains the occupation condition of Database Systems aspect;By the performance views of data base, obtain the wait event of the logic level of data base.
Compared to the prior art a kind of various dimensions performance diagnogtics of the present invention analyzes method, have the advantages that to provide and more fully analyze method with the performance diagnogtics of system, reduce taking system resource, the response performance of raising system entirety and handling capacity, the response performance of system can be effectively ensured, the maintenance cost of reduction system, and have and compare range of application widely.
Detailed description of the invention
Below in conjunction with specific embodiment, the invention will be further described.
Embodiment 1:
A kind of various dimensions performance diagnogtics of the present invention analyzes method, it is characterised in that is the method that analyzes and processes of the performance issue to application software, comprises the steps:
(1), the unified entrance of client call service device, open batch mark (such as generating a GUID) of debugging mode, in request later, all can increase batch mark of this debugging, in order to server distinguishes all requests;
(2), application server increase third party's AOP plug-in unit, for intercept process, increase labelling and time record for each request;
(3), data access layer common interface, obtain the mark of the batch ID of client and request according to current thread context, record all of SQL script and execution time;
(4), the wait event of resource consumption statistic situation and data base;
(5), client terminates debugging mode, the performance data produced in this debugging mode process of server request, and in conjunction with the performance response of client itself, calculate and show the wait situation of the Annual distribution situation in this debugging request response processing procedure and correspondence.
Performance data includes: the number of times of the data volume of transmission, the data volume of reception, funcall request, sends that data are consuming time, return that data are consuming time, data base is consuming time, server end is consuming time and client is consuming time.
Performance data is shown by graphical interfaces, it is possible to find out distribution consuming time clearly.
Performance data is the performance data of client, network, application server, data base or storage.
Embodiment 2:
A kind of various dimensions performance diagnogtics of the present invention analyzes method, it is characterised in that is the method that analyzes and processes of the performance issue to application software, comprises the steps:
(1), the unified entrance of client call service device, open batch mark (such as generating a GUID) of debugging mode, in request later, all can increase batch mark of this debugging, in order to server distinguishes all requests;Partial code is as follows:
publicstaticvoidWrapGSPState(SoapHttpClientProtocolservice,GSPStatestate)
{
if(PerfState.IsPerf==true)
{
service.CookieContainer.Add(newUri(service.Url),newCookie("GSPPerfBatchID",PerfState.BatchID));
}
}。
(2), application server increases the blocker of the Interceptor of java, for intercept process, the mode using Noninvasive intercepts all requests, is that each request increases labelling and time record in the front and back that request processes, in order to distinguish the different disposal details in each request;Partial code is as follows:
privatevoidApplication_BeginRequest(objectsender,EventArgse)
{
HttpApplicationapplication=(HttpApplication)sender;
HttpCookieperfCookie=application.Context.Request.Cookies.Get("GSPPerfBatchID");
if(perfCookie!=null)
{
CallContext.LogicalSetData("GSPPerfBatchID",perfCookie.Value);
stringgroupID=Guid.NewGuid().ToString();
CallContext.LogicalSetData("GSPPerfGroupID",groupID);
LogPerfStart(DateTime.Now,application.Context.Request.Path,perfCookie.Value,groupID);
}
}
privatevoidapplication_EndRequest(objectsender,EventArgse)
{
HttpApplicationapplication=(HttpApplication)sender;
HttpCookieperfCookie=application.Context.Request.Cookies.Get("GSPPerfBatchID");
if(perfCookie!=null)
{
stringbatchID=CallContext.LogicalGetData("GSPPerfBatchID").ToString();
stringgroupID=CallContext.LogicalGetData("GSPPerfGroupID").ToString();
LogPerfEnd(DateTime.Now,application.Context.Request.Path,batchID,groupID);
}
}。
(3), data access layer common interface, obtain the mark of the batch ID of client and request according to current thread context, record all of SQL script and execution time;Partial code is as follows:
protectedvirtualintExecuteWithNoQuery(stringcmdText,IDbDataParameter[]dataParams)
{
this.HandlingParameters(dataParams);
IDbCommandcommand=SetCommand(cmdText,dataParams,isSqlStatement);
PerfTraceDataperfData=TraceManualCommand(command);
intresult;
try
{
result=command.ExecuteNonQuery();
}
finally
{
perfData.EndTimeStamp=DateTime.Now;
LogSqlTrace(perfData);
}
returnresult;
}。
(4), the wait event of resource consumption statistic situation and data base: be operated by the performance monitor of system, obtain the occupation condition of Database Systems aspect;By the performance views of data base, obtain the wait event of the logic level of data base;Partial code is as follows:
--SQLServer
selectt.spid,t.kpid,t.blocked,t.status,t.waittype,t.lastwaittype,t.waitresource,t.waittime
,DB_NAME(t.dbid)DbName,t.login_time,t.last_batch,t.loginame,t.program_name,t.hostname
,t.hostprocess,t.cmd,t.stmt_start,t.stmt_end,t.request_id,dc.text
frommaster.sys.sysprocessest
outerapplymaster.sys.dm_exec_sql_text(t.sql_handle)dc
wheret.spid>=50
--Oracle
selectse.SID,se.SERIAL#,se.Status,se.Event,se.BLOCKING_SESSION,se.BLOCKING_SESSION_STATUS
,se.USERNAME,se.MACHINE,se.PROGRAM,se.sql_exec_start,se.seconds_in_wait
,NVL(s1.SQL_TEXT,s2.SQL_TEXT)ASsql_text
fromv$sessionse
leftjoinv$sqls1onse.SQL_ID=s1.SQL_IDandse.sql_child_number=s1.child_number
leftjoinv$sqls2onse.PREV_SQL_ID=s2.SQL_IDandse.prev_child_number=s2.child_number。
(5), client terminates debugging mode, the performance data produced in this debugging mode process of server request, and in conjunction with the performance response of client itself, calculate and show the wait situation of the Annual distribution situation in this debugging request response processing procedure and correspondence.
Performance data includes: the number of times of the data volume of transmission, the data volume of reception, funcall request, sends that data are consuming time, return that data are consuming time, data base is consuming time, server end is consuming time and client is consuming time.
Performance data is shown by graphical interfaces, it is possible to find out distribution consuming time clearly.
Performance data is the performance data of client, network, application server, data base or storage.
Embodiment 3:
A kind of various dimensions performance diagnogtics of the present invention analyzes method, it is characterised in that is the method that analyzes and processes of the performance issue to application software, comprises the steps:
(1), the unified entrance of client call service device, open batch mark (such as generating a GUID) of debugging mode, in request later, all can increase batch mark of this debugging, in order to server distinguishes all requests;
(2), application server increases the blocker of the HttpModule of .NET, for intercept process, the mode using Noninvasive intercepts all requests, is that each request increases labelling and time record in the front and back that request processes, in order to distinguish the different disposal details in each request;
(3), data access layer common interface, obtain the mark of the batch ID of client and request according to current thread context, record all of SQL script and execution time;
(4), the wait event of resource consumption statistic situation and data base: be operated by the performance monitor of system, obtain the occupation condition of Database Systems aspect;By the performance views of data base, obtain the wait event of the logic level of data base;
(5), client terminates debugging mode, the performance data produced in this debugging mode process of server request, and in conjunction with the performance response of client itself, calculate and show the wait situation of the Annual distribution situation in this debugging request response processing procedure and correspondence.
Performance data includes: the number of times of the data volume of transmission, the data volume of reception, funcall request, sends that data are consuming time, return that data are consuming time, data base is consuming time, server end is consuming time and client is consuming time.
Performance data is shown by graphical interfaces, it is possible to find out distribution consuming time clearly.
Performance data is the performance data of client, network, application server, data base or storage.
By detailed description of the invention above, described those skilled in the art can be easy to realize the present invention.It is understood that the present invention is not limited to above-mentioned detailed description of the invention.On the basis of disclosed embodiment, described those skilled in the art can the different technical characteristic of combination in any, thus realizing different technical schemes.
Except the technical characteristic described in description, it is the known technology of those skilled in the art.

Claims (7)

1. a various dimensions performance diagnogtics analyzes method, it is characterised in that is the method that analyzes and processes of the performance issue to server system, comprises the steps:
(1), the unified entrance of client call service device, open batch mark of debugging mode, in request later, all can increase batch mark of this debugging;
(2), application server increase intercept process, increase labelling and time record for each request;
(3), data access layer common interface, obtain the mark of the batch ID of client and request according to current thread context, record all of SQL script and execution time;
(4), the wait event of resource consumption statistic situation and data base;
(5), client terminates debugging mode, the performance data produced in this debugging mode process of server request, and in conjunction with the performance response of client itself, calculate and show the wait situation of the Annual distribution situation in this debugging request response processing procedure and correspondence.
2. a kind of various dimensions performance diagnogtics according to claim 1 analyzes method, it is characterised in that performance data includes: the data volume of transmission, the data volume of reception, a funcall request number of times, send that data are consuming time, return that data are consuming time, data base is consuming time, server end is consuming time and client is consuming time.
3. a kind of various dimensions performance diagnogtics according to claim 2 analyzes method, it is characterised in that performance data is shown by graphical interfaces.
4. a kind of various dimensions performance diagnogtics according to claim 1 analyzes method, it is characterised in that performance data is the performance data of client, network, application server, data base or storage.
5. a kind of various dimensions performance diagnogtics according to claim 1 analyzes method, it is characterized in that in step (2), application server increases blocker or third party's AOP plug-in unit, for intercept process, the mode using Noninvasive intercepts all requests, is that each request increases labelling and time record in the front and back that request processes.
6. a kind of various dimensions performance diagnogtics according to claim 5 analyzes method, it is characterised in that blocker adopts the HttpModule of Interceptor or .NET of java.
7. a kind of various dimensions performance diagnogtics according to claim 1 analyzes method, it is characterised in that in step (4), is operated by the performance monitor of system, obtains the occupation condition of Database Systems aspect;By the performance views of data base, obtain the wait event of the logic level of data base.
CN201610196391.8A 2016-03-31 2016-03-31 A kind of various dimensions performance diagnogtics analysis method Active CN105808441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610196391.8A CN105808441B (en) 2016-03-31 2016-03-31 A kind of various dimensions performance diagnogtics analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610196391.8A CN105808441B (en) 2016-03-31 2016-03-31 A kind of various dimensions performance diagnogtics analysis method

Publications (2)

Publication Number Publication Date
CN105808441A true CN105808441A (en) 2016-07-27
CN105808441B CN105808441B (en) 2018-08-14

Family

ID=56459375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610196391.8A Active CN105808441B (en) 2016-03-31 2016-03-31 A kind of various dimensions performance diagnogtics analysis method

Country Status (1)

Country Link
CN (1) CN105808441B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255659A (en) * 2016-12-28 2018-07-06 平安科技(深圳)有限公司 A kind of application program capacity monitoring method and its system
CN109299132A (en) * 2018-11-29 2019-02-01 中国人民财产保险股份有限公司 SQL data processing method, system and electronic equipment
CN110750408A (en) * 2019-09-30 2020-02-04 湖南新云网科技有限公司 Method, device and apparatus for controlling USB debug mode switch, and storage medium
CN111324545A (en) * 2020-03-13 2020-06-23 中国工商银行股份有限公司 Application server middleware performance test method, test terminal and application server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050055673A1 (en) * 2003-09-05 2005-03-10 Oracle International Corporation Automatic database diagnostic monitor architecture
CN102904774A (en) * 2012-09-28 2013-01-30 用友软件股份有限公司 Terminal, server and server performance testing method
US20140108647A1 (en) * 2012-10-11 2014-04-17 Brocade Communications Systems, Inc. User Feedback in Network and Server Monitoring Environments
CN104636232A (en) * 2013-11-06 2015-05-20 中国移动通信集团广东有限公司 Performance monitoring device and method of distributed service system
CN104683181A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method, equipment and system
CN104683180A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method and system as well as application server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050055673A1 (en) * 2003-09-05 2005-03-10 Oracle International Corporation Automatic database diagnostic monitor architecture
CN102904774A (en) * 2012-09-28 2013-01-30 用友软件股份有限公司 Terminal, server and server performance testing method
US20140108647A1 (en) * 2012-10-11 2014-04-17 Brocade Communications Systems, Inc. User Feedback in Network and Server Monitoring Environments
CN104636232A (en) * 2013-11-06 2015-05-20 中国移动通信集团广东有限公司 Performance monitoring device and method of distributed service system
CN104683181A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method, equipment and system
CN104683180A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method and system as well as application server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109299132A (en) * 2018-11-29 2019-02-01 中国人民财产保险股份有限公司 SQL data processing method, system and electronic equipment
CN109299132B (en) * 2018-11-29 2021-08-06 中国人民财产保险股份有限公司 SQL data processing method and system and electronic equipment
CN110750408A (en) * 2019-09-30 2020-02-04 湖南新云网科技有限公司 Method, device and apparatus for controlling USB debug mode switch, and storage medium
CN110750408B (en) * 2019-09-30 2021-03-26 湖南新云网科技有限公司 Method, device and apparatus for controlling USB debug mode switch, and storage medium
CN111324545A (en) * 2020-03-13 2020-06-23 中国工商银行股份有限公司 Application server middleware performance test method, test terminal and application server
CN111324545B (en) * 2020-03-13 2023-09-22 中国工商银行股份有限公司 Application server middleware performance test method, test terminal and application server

Also Published As

Publication number Publication date
CN105808441B (en) 2018-08-14

Similar Documents

Publication Publication Date Title
US7954011B2 (en) Enabling tracing operations in clusters of servers
US8141100B2 (en) Identifying attribute propagation for multi-tier processing
WO2020233015A1 (en) Link tracking method and apparatus
US8028200B2 (en) Tracing operations in multiple computer systems
US20080155349A1 (en) Performing computer application trace with other operations
CA2503987C (en) System and method for performance management in a multi-tier computing environment
TWI564732B (en) A method and apparatus for monitoring user requests to run in a decentralized system
CN105808441A (en) Multidimensional performance diagnosis and analysis method
WO2009064623A1 (en) A network device and method for monitoring of backend transactions in data centers
US20080034082A1 (en) Intelligent Performance Monitoring Based on Resource Threshold
US20130160131A1 (en) Application security testing
US20150371047A1 (en) Determining coverage of dynamic security scans using runtime and static code analyses
CN104980421B (en) Batch request processing method and system
EP3384391B1 (en) Real-time change data from disparate sources
WO2015085456A1 (en) Log extraction method under server cluster and server cluster
CN111382023A (en) Code fault positioning method, device, equipment and storage medium
US9558092B2 (en) Runtime-agnostic management of applications
CN106708859A (en) Auditing method for resource access behaviors and device
CN107786641B (en) Method for collecting distributed multi-system user behavior logs
KR100906440B1 (en) Apparatus for monitoring a performance of web applications by connecting was transaction with dbms session and method thereof
US20120072258A1 (en) Methods and computer program products for identifying and monitoring related business application processes
CN109144834A (en) Acquisition method and device, the Android system and terminal device of user behavior data
US20200210310A1 (en) Analytics-based architecture compliance testing for distributed web applications
CN106789395B (en) A kind of Distributed PDM system monitoring data transmission method based on Web
US9338255B1 (en) System and method for correlating end-user experience data and backend-performance data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant