Book Image

Java EE 7 Performance Tuning and Optimization

By : Osama Oransa
Book Image

Java EE 7 Performance Tuning and Optimization

By: Osama Oransa

Overview of this book

<p>With the expansion of online enterprise services, the performance of an enterprise application has become a critical issue. Even the smallest change to service availability can severely impact customer satisfaction, which can cause the enterprise to incur huge losses. Performance tuning is a challenging topic that focuses on resolving tough performance issues.</p> <p>In this book, you will explore the art of Java performance tuning from all perspectives using a variety of common tools, while studying many examples.</p> <p>This book covers performance tuning in Java enterprise applications and their optimization in a simple, step-by-step manner. Beginning with the essential concepts of Java, the book covers performance tuning as an art. It then gives you an overview of performance testing and different monitoring tools. It also includes examples of using plenty of tools, both free and paid.</p>
Table of Contents (20 chapters)
Java EE 7 Performance Tuning and Optimization
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Using the offline profiling mode


We do not have to connect the JProfiler GUI to our application in order to profile it. By using the JProfiler offline profiling mode, we can use JProfiler's powerful trigger system or even JProfiler APIs to control the profiling agent and save profiling snapshots to the disk. Later, we can open these snapshots using JProfiler for further analysis.

The main advantages and uses of the offline profiling mode (unattended profiling) are as follows:

  • No connectivity is required between the remote application server machine and the profiler-installed machine because offline profiling is recorded in the remote server machine

  • We can take regular snapshots of the application's performance

  • Trigger-based profiling, for example, profiles the application when CPU utilization reaches 80 percent

Building our script using JProfiler triggers

By using the JProfiler triggers, we can build our own scripting scenarios and different event-based actions. This enables the automatic profiling...