CN105808441B - A kind of various dimensions performance diagnogtics analysis method - Google Patents

A kind of various dimensions performance diagnogtics analysis method Download PDF

Info

Publication number
CN105808441B
CN105808441B CN201610196391.8A CN201610196391A CN105808441B CN 105808441 B CN105808441 B CN 105808441B CN 201610196391 A CN201610196391 A CN 201610196391A CN 105808441 B CN105808441 B CN 105808441B
Authority
CN
China
Prior art keywords
performance
client
request
various dimensions
analysis method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610196391.8A
Other languages
Chinese (zh)
Other versions
CN105808441A (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

Abstract

The problem of the invention discloses a kind of various dimensions performance diagnogtics analysis methods, belong to the performance evaluation process field of application software, analyzing processing better disclosure address how performance to server system.Technical solution is:A kind of various dimensions performance diagnogtics analysis method, includes the following steps:The unified entrance of client call service device opens batch mark of debugging mode;Application server increases intercept process, increases label and time record for each request;Data access layer common interface obtains the mark of the batch ID and request of client according to current thread context, records all SQL scripts and executes the time;The waiting event of resource consumption statistic situation and database;Client terminates debugging mode, the performance data generated during asking this debugging mode to server, and combines the performance response of client itself, calculates and shows the Annual distribution situation in this debugging request response processing procedure and corresponding waiting situation.

Description

A kind of various dimensions performance diagnogtics analysis method
Technical field
The present invention relates to a kind of performance evaluation process field of application software, specifically a kind of various dimensions performance diagnogtics Analysis method.
Background technology
In the performance evaluation processing of application software, there are the following problems:
1, when system is huge, business is complicated, a whole set of software is all to use hierarchical-development, and each layer identification code increases log statistics Response time simultaneously exports, very inconvenient, also not science, and workload is very big;
2, outer layer interface tracking result shows that application server responses are slower, but the code many places that oneself is safeguarded have invoked it The interface of his module, has no way of doing it;When being exchanged with other modules colleague, description is complicated, it is difficult to link up;
3, between APP Server and the response of DB, there are obvious delays, if started with from code inspection, workload is huge Greatly, and subjective factors are affected;
What 4, Oracle environment was inconvenient to track SQL scripts executes record, although Sqlserver can accomplish, tracking SQL to other modules does not know it is which method call yet.
Invention content
The technical assignment of the present invention is to be directed to the above shortcoming, provides a kind of various dimensions performance diagnogtics analysis method, is come It how solves the problems, such as to the better analyzing processing of the performance of server system.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of various dimensions performance diagnogtics analysis method, it is characterised in that be the performance issue analyzing processing to application software Method includes the following steps:
(1), client call service device unified entrance, open debugging mode batch mark(For example generate one GUID), in request later, can all increase batch mark of this debugging, so that server distinguishes all requests;
(2), application server increase intercept process, increase label and time record for each request;
(3), data access layer common interface, according to current thread context obtain client batch ID and request mark Know, record all SQL scripts and executes the time;
(4), resource consumption statistic situation and database waiting event;
(5), client terminate debugging mode, the performance data for asking to generate during this debugging mode to server, And the performance response of client itself is combined, calculate and shows the Annual distribution feelings in this debugging request response processing procedure Condition and corresponding waiting situation.
Performance data includes:The data volume of transmission, the data volume of reception, the request of funcall number, send number It is taken according to time-consuming, returned data, database takes, server end takes and client takes.
Performance data is shown by graphical interfaces, can clearly find out time-consuming distribution.
Performance data is client, network, application server, database or the performance data of storage.
Step(2)In, application server increases blocker or third party's AOP plug-in units, is used for intercept process, is invaded using non- The mode of entering property intercepts all requests, is that each request increases label and time record before and after request is handled, to distinguish Different disposal details in each request.
Blocker uses the HttpModule of the Interceptor or .NET of java.
Step(4)In, by the performance monitor of operating system, obtain the occupation condition of Database Systems level; By the performance views of database, the waiting event of the logic level of database is obtained.
Compared to the prior art a kind of various dimensions performance diagnogtics analysis method of the present invention, has the advantages that:It carries The performance diagnogtics analysis method more fully with system has been supplied, the occupancy to system resource is reduced, has improved the response of system entirety The response performance of system can be effectively ensured in performance and handling capacity, reduce the maintenance cost of system, and have and more widely answer Use range.
Specific implementation mode
The present invention is further explained in the light of specific embodiments.
Embodiment 1:
A kind of various dimensions performance diagnogtics analysis method of the present invention, it is characterised in that be the performance issue point to application software The method for analysing processing, includes the following steps:
(1), client call service device unified entrance, open debugging mode batch mark(For example generate one GUID), in request later, can all increase batch mark of this debugging, so that server distinguishes all requests;
(2), application server increase third party's AOP plug-in units, be used for intercept process, increase label and time for each request Record;
(3), data access layer common interface, according to current thread context obtain client batch ID and request mark Know, record all SQL scripts and executes the time;
(4), resource consumption statistic situation and database waiting event;
(5), client terminate debugging mode, the performance data for asking to generate during this debugging mode to server, And the performance response of client itself is combined, calculate and shows the Annual distribution feelings in this debugging request response processing procedure Condition and corresponding waiting situation.
Performance data includes:The data volume of transmission, the data volume of reception, the request of funcall number, send number It is taken according to time-consuming, returned data, database takes, server end takes and client takes.
Performance data is shown by graphical interfaces, can clearly find out time-consuming distribution.
Performance data is client, network, application server, database or the performance data of storage.
Embodiment 2:
A kind of various dimensions performance diagnogtics analysis method of the present invention, it is characterised in that be the performance issue point to application software The method for analysing processing, includes the following steps:
(1), client call service device unified entrance, open debugging mode batch mark(For example generate one GUID), in request later, can all increase batch mark of this debugging, so that server distinguishes all requests;Partial code It is as follows:
public static void WrapGSPState(SoapHttpClientProtocol service, GSPState state)
{
if (PerfState.IsPerf == true)
{
service.CookieContainer.Add(new Uri(service.Url), new Cookie ("GSPPerfBatchID", PerfState.BatchID));
}
} 。
(2), application server increase java Interceptor blocker, be used for intercept process, use Noninvasive Mode intercept all requests, be that each request increases label and the time records before and after request is handled, it is each to distinguish Different disposal details in request;Partial code is as follows:
private void Application_BeginRequest(object sender, EventArgs e)
{
HttpApplication application = (HttpApplication)sender;
HttpCookie perfCookie = application.Context.Request.Cookies.Get(" GSPPerfBatchID");
if (perfCookie != null)
{
CallContext.LogicalSetData("GSPPerfBatchID", perfCookie.Value);
string groupID = Guid.NewGuid().ToString();
CallContext.LogicalSetData("GSPPerfGroupID", groupID);
LogPerfStart(DateTime.Now, application.Context.Request.Path, perfCookie.Value, groupID);
}
}
private void application_EndRequest(object sender, EventArgs e)
{
HttpApplication application = (HttpApplication)sender;
HttpCookie perfCookie = application.Context.Request.Cookies.Get(" GSPPerfBatchID");
if (perfCookie != null)
{
string batchID = CallContext.LogicalGetData(" GSPPerfBatchID").ToString();
string groupID = CallContext.LogicalGetData(" GSPPerfGroupID").ToString();
LogPerfEnd(DateTime.Now, application.Context.Request.Path, batchID, groupID);
}
}。
(3), data access layer common interface, according to current thread context obtain client batch ID and request mark Know, record all SQL scripts and executes the time;Partial code is as follows:
protected virtual int ExecuteWithNoQuery(string cmdText, IDbDataParameter[] dataParams)
{
this.HandlingParameters(dataParams);
IDbCommand command = SetCommand(cmdText, dataParams, isSqlStatement);
PerfTraceData perfData = TraceManualCommand(command);
int result;
try
{
result = command.ExecuteNonQuery();
}
finally
{
perfData.EndTimeStamp = DateTime.Now;
LogSqlTrace(perfData);
}
return result;
}。
(4), resource consumption statistic situation and database waiting event:By the performance monitor of operating system, obtain The occupation condition of Database Systems level;By the performance views of database, the waiting of the logic level of database is obtained Event;Partial code is as follows:
-- SQL Server
select t.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
from master.sys.sysprocesses t
outer apply master.sys.dm_exec_sql_text(t.sql_handle) dc
where t.spid >= 50
-- Oracle
select se.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) AS sql_text
from v$session se
left join v$sql s1 on se.SQL_ID = s1.SQL_ID and se.sql_child_number = s1.child_number
left join v$sql s2 on se.PREV_SQL_ID = s2.SQL_ID and se.prev_child_ number = s2.child_number。
(5), client terminate debugging mode, the performance data for asking to generate during this debugging mode to server, And the performance response of client itself is combined, calculate and shows the Annual distribution feelings in this debugging request response processing procedure Condition and corresponding waiting situation.
Performance data includes:The data volume of transmission, the data volume of reception, the request of funcall number, send number It is taken according to time-consuming, returned data, database takes, server end takes and client takes.
Performance data is shown by graphical interfaces, can clearly find out time-consuming distribution.
Performance data is client, network, application server, database or the performance data of storage.
Embodiment 3:
A kind of various dimensions performance diagnogtics analysis method of the present invention, it is characterised in that be the performance issue point to application software The method for analysing processing, includes the following steps:
(1), client call service device unified entrance, open debugging mode batch mark(For example generate one GUID), in request later, can all increase batch mark of this debugging, so that server distinguishes all requests;
(2), application server increase .NET HttpModule blocker, be used for intercept process, use Noninvasive Mode intercept all requests, be that each request increases label and the time records before and after request is handled, it is each to distinguish Different disposal details in request;
(3), data access layer common interface, according to current thread context obtain client batch ID and request mark Know, record all SQL scripts and executes the time;
(4), resource consumption statistic situation and database waiting event:By the performance monitor of operating system, obtain The occupation condition of Database Systems level;By the performance views of database, the waiting of the logic level of database is obtained Event;
(5), client terminate debugging mode, the performance data for asking to generate during this debugging mode to server, And the performance response of client itself is combined, calculate and shows the Annual distribution feelings in this debugging request response processing procedure Condition and corresponding waiting situation.
Performance data includes:The data volume of transmission, the data volume of reception, the request of funcall number, send number It is taken according to time-consuming, returned data, database takes, server end takes and client takes.
Performance data is shown by graphical interfaces, can clearly find out time-consuming distribution.
Performance data is client, network, application server, database or the performance data of storage.
The technical personnel in the technical field can readily realize the present invention with the above specific embodiments,.But it answers Work as understanding, the present invention is not limited to above-mentioned specific implementation modes.On the basis of the disclosed embodiments, the technical field Technical staff can arbitrarily combine different technical features, to realize different technical solutions.
It is the known technology of those skilled in the art in addition to the technical characteristic described in specification.

Claims (7)

1. a kind of various dimensions performance diagnogtics analysis method, it is characterised in that be the performance issue analyzing processing to server system Method includes the following steps:
(1), client call service device unified entrance, open the identifier of debugging mode, in request later, can all increase The identifier for adding this to debug;
(2), application server increase intercept process, be client each request increase label and the time record;
(3), server by data access layer common interface, the identifier of client is obtained according to current thread context and is asked The label asked records all SQL scripts and executes the time;
(4), the occupation condition of statistical server and the waiting event of database;
(5), client terminate debugging mode, the performance data for asking to generate during this debugging mode to server, and tying Close client itself performance response, calculate and show this debugging request response processing procedure in Annual distribution situation and Corresponding waiting situation.
2. a kind of various dimensions performance diagnogtics analysis method according to claim 1, it is characterised in that performance data includes:Hair The data volume of the data volume, reception sent, the number of funcall request, transmission data take, returned data takes, data Library takes, server end takes and client takes.
3. a kind of various dimensions performance diagnogtics analysis method according to claim 2, it is characterised in that performance data passes through figure Shape interface display comes out.
4. a kind of various dimensions performance diagnogtics analysis method according to claim 1, it is characterised in that performance data is client End, network, application server, database or storage performance data.
5. a kind of various dimensions performance diagnogtics analysis method according to claim 1, it is characterised in that step(2)In, application Server increases blocker or third party's AOP plug-in units, is used for intercept process, and intercepting institute using the mode of Noninvasive, ask the visitor in It asks, is that each request increases label and time record before and after request is handled.
6. a kind of various dimensions performance diagnogtics analysis method according to claim 5, it is characterised in that blocker uses java Interceptor or .NET HttpModule.
7. a kind of various dimensions performance diagnogtics analysis method according to claim 1, it is characterised in that step(4)In, pass through The performance monitor of operating system obtains the occupation condition of Database Systems level;By the performance views of database, obtain Take the waiting event of the logic level of database.
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 CN105808441A (en) 2016-07-27
CN105808441B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255659B (en) * 2016-12-28 2021-06-29 平安科技(深圳)有限公司 Application program performance monitoring method and system
CN109299132B (en) * 2018-11-29 2021-08-06 中国人民财产保险股份有限公司 SQL data processing method and system and electronic equipment
CN110750408B (en) * 2019-09-30 2021-03-26 湖南新云网科技有限公司 Method, device and apparatus for controlling USB debug mode switch, and storage medium
CN111324545B (en) * 2020-03-13 2023-09-22 中国工商银行股份有限公司 Application server middleware performance test method, test terminal and application server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904774A (en) * 2012-09-28 2013-01-30 用友软件股份有限公司 Terminal, server and server performance testing method
CN104636232A (en) * 2013-11-06 2015-05-20 中国移动通信集团广东有限公司 Performance monitoring device and method of distributed service system
CN104683180A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method and system as well as application server
CN104683181A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method, equipment and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7673291B2 (en) * 2003-09-05 2010-03-02 Oracle International Corporation Automatic database diagnostic monitor architecture
US20140108647A1 (en) * 2012-10-11 2014-04-17 Brocade Communications Systems, Inc. User Feedback in Network and Server Monitoring Environments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904774A (en) * 2012-09-28 2013-01-30 用友软件股份有限公司 Terminal, server and server performance testing method
CN104636232A (en) * 2013-11-06 2015-05-20 中国移动通信集团广东有限公司 Performance monitoring device and method of distributed service system
CN104683180A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method and system as well as application server
CN104683181A (en) * 2015-02-12 2015-06-03 北京蓝海讯通科技有限公司 Performance monitoring method, equipment and system

Also Published As

Publication number Publication date
CN105808441A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
Jayathilaka et al. Performance monitoring and root cause analysis for cloud-hosted web applications
US9632903B2 (en) Techniques for distributed testing
CN105808441B (en) A kind of various dimensions performance diagnogtics analysis method
US10114736B2 (en) Virtual service data set generation
US7805509B2 (en) System and method for performance management in a multi-tier computing environment
US7954011B2 (en) Enabling tracing operations in clusters of servers
US7934003B2 (en) Method and system for monitoring performance of distributed applications
US9531609B2 (en) Virtual service automation
CN106776280B (en) Configurable performance testing device
US8028200B2 (en) Tracing operations in multiple computer systems
US8495204B2 (en) Remote invocation mechanism for logging
US20100132024A1 (en) Identifying attribute propagation for multi-tier processing
US7315807B1 (en) System and methods for storage area network simulation
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
US8656000B2 (en) Service level management system
US20100153482A1 (en) Cloud-Based Automation of Resources
US20090271514A1 (en) System and method for monitoring user interaction with web pages
US20170220448A1 (en) Regression testing of software services
CN106936793A (en) A kind of information intercepting processing method and terminal
US20060190488A1 (en) System and method for determining information related to user interactions with an application
US20140122935A1 (en) Diagnosing a Problem of a Software Product Running in a Cloud Environment
US20150371047A1 (en) Determining coverage of dynamic security scans using runtime and static code analyses
US11171846B1 (en) Log throttling
US10122602B1 (en) Distributed system infrastructure testing
CN115694699A (en) Time delay parameter acquisition method and device, electronic equipment and storage medium

Legal Events

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