Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Performance Analysis of J2EE Applications Using AOP Techniques

Performance Analysis of J2EE Applications Using AOP Techniques In this article we demonstrate the use of AOP techniques through which J2EE applications can be easily instrumented without any modifications to application code. We have developed a very sim

Tutorial Details:

In a complex distributed computing environment like J2EE, it is very difficult to pinpoint the component that is causing a performance bottleneck. Applications can be profiled by including instrumentation code manually, but this could be cumbersome and time-consuming, and might impact the stability of the application itself. Aspect-Oriented Programming (AOP) technology can be elegantly and effectively applied for performance analysis, as illustrated by Davies et al.

AOP Infrastructure
We considered both AspectJ and Aspectwerkz for providing the AOP infrastructure and chose Aspectwerkz, since it does not require the J2EE application to be re-compiled. Due to this capability, we can profile an existing J2EE application without any additional development activity. But we also noticed that Aspectwerkz introduces a tiny overhead as compared to AspectJ; this is due to reflection (java.lang.reflect.Method.invoke()) used by Aspectwerkz to incorporate the advices into the application code. By defining the point-cuts in a simple XML file, Aspectwerkz makes it much easier in our situation to decide which methods need to be profiled.

Capturing CPU Time
While it is easy to capture the elapsed time using System.currentTimeMillis(), this measure is not accurate in all situations, especially if there are contentions. The CPU time is a more accurate measure of the execution time of a method. We capture the CPU time using the JVM Profiler Interface (JVMPI). Please refer to "Using JVM Profiler Interface for Accurate Timing," by Jesper Gortz, for more information.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Performance Analysis of J2EE Applications Using AOP Techniques

View Tutorial:
Performance Analysis of J2EE Applications Using AOP Techniques

Related Tutorials:

The Java HotSpot Performance Engine is set to break new records - JavaWorld
The Java HotSpot Performance Engine is set to break new records - JavaWorld
 
Smart object-management saves the day - JavaWorld November 1999
Smart object-management saves the day - JavaWorld November 1999
 
Solve your servlet-based presentation problems - JavaWorld November 2000
Solve your servlet-based presentation problems - JavaWorld November 2000
 
Performance books put to the test - JavaWorld March 2001
Performance books put to the test - JavaWorld March 2001
 
J2EE project dangers! - JavaWorld March 2001
J2EE project dangers! - JavaWorld March 2001
 
I want my AOP!, Part 1
I want my AOP!, Part 1
 
Step into the J2EE architecture and process
Step into the J2EE architecture and process
 
I want my AOP!, Part 3
I want my AOP!, Part 3
 
Best tools for mobile application development
Best tools for mobile application development
 
Use AOP to maintain legacy Java applications
Use AOP to maintain legacy Java applications This artical shows you how to use aspect-oriented programming (AOP) to gain an unprecedented view into the inner workings of even the most opaque of legacy applications. Please note that this article assume
 
JView 2004 - J2EE Performance Management Software - Version 1.4
JView 2004 Enterprise Edition available now! JView 2004 is the leading J2EE Production Performance Monitor and Java Performance Tuning solution, providing precise real-time performance metrics to assist you in ensuring your performance requirements a
 
Performance Analysis of J2EE Applications Using AOP Techniques
Performance Analysis of J2EE Applications Using AOP Techniques In this article we demonstrate the use of AOP techniques through which J2EE applications can be easily instrumented without any modifications to application code. We have developed a very sim
 
J2EE application performance optimization
J2EE application performance optimization How to extract maximum performance from your J2EE Web applications In this article, Rahul Kuchhal demonstrates how to identify and resolve bottlenecks in a J2EE application. This article covers all the step
 
JView 2004 2.1 Released - J2EE Performance Profiler
JView 2004 J2EE Performance Tuning and Monitoring Enterprise Edition Trial Download
 
Comparing The Performance of J2EE Servers
Performance ReportThe standardization of the application server, thanks to Sun\'s J2EE specifications, has spawned a wealth of implementations. There are offerings from big players such as Sun, IBM, BEA and Oracle as well as numerous offerings from low-co
 
Second-generation aspect-oriented programming
Second-generation aspect-oriented programming
 
Aspect-Oriented Annotations
Aspect-Oriented Annotations Annotations are one of the new language features in J2SE 5.0, and allow you to attach metadata onto any Java construct. Meanwhile, Aspect-Oriented Programming (AOP) is a fairly new technology that makes it easier for you to en
 
jGuard v0.60 released!
jGuard v0.60 released! i am pleased to announce a new major release(v0.60) of the java security library called jGuard(http://sourceforge.net/projects/jguard/). this library is build on top of jaas, for J2EE web applications. his goal is to provide f
 
Using the ASM Toolkit for Bytecode Manipulation
Using the ASM Toolkit for Bytecode Manipulation Sometimes Java developers need to generate or change Java bytecode in the runtime. Is can be necessary for AOP or debugging, or even for performance optimization. There are several frameworks available that
 
UltraLightClient Community Site
Community-driven Wiki site for UltraLightClient Code Snippets and Contributions If you want to contribute, please go to Register as Committer. There is no support for the content on this site by Canoo. Committers agree that the code can be used free of c
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.