Free Sample
+ Collection
Code Files

JBoss AS 5 Performance Tuning

Francesco Marchioni

Build faster, more efficient enterprise Java applications
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849514026
Paperback312 pages

About This Book

  • Follow the practical examples to make your applications as efficient as possible
  • Written to version 5.1 and includes advice on upgrading to version 6.0
  • Accurately configure the persistence layer and clustering service
  • Learn how to tune all components and hardware

Who This Book Is For

This book is for Java architects who design and configure Enterprise applications. It is great for Java developers who want to get into the inner details of the application server and of the correct tuning methodology. Application testers will also find this book useful as they will learn how to monitor the performance of the middleware with the correct instruments.

Table of Contents

Chapter 1: Performance Tuning Concepts
What you will get from this book?
What is performance?
Scalability: the other side of performance
The tuning process
Tuning Java Enterprise applications
Chapter 2: Installing the Tools for Tuning
Welcome to scientific tuning
Profiling the Java Virtual Machine
Profiling your applications with Eclipse Test and Performance Tools Platform (TPTP) Project
Load testing your application with JMeter
Operating system tools and commands
Chapter 3: Tuning the Java Virtual Machine
The starting point
Choosing the JVM settings
Which is the correct ratio between the young and old generations?
A practical example
Chapter 4: Tuning the JBoss AS
From release 4.x to 5.x, and on
JBoss AS pools
Logging for performance
Chapter 5: Tuning the Middleware Services
Introduction to Enterprise Java Beans
Introduction to the Java Messaging system
An example use case with HornetQ
Chapter 6: Tuning the Persistence Layer
Designing a good database
Tuning JDBC
Tuning Hibernate and JPA
Evaluating using caches to speed up your queries
Optimizing data synchronization
A sample use case
Chapter 7: JBoss AS Cluster Tuning
Introduction to JBoss clustering
Configuring JGroups transport
Tuning JBoss Cache
Tuning session replication
Chapter 8: Tomcat Web Server Tuning
JBoss Web server basics
Chapter 9: Tuning Web Applications on JBoss AS
Choosing a framework for your web applications
Tuning web services

What You Will Learn

  • Understand the correct tuning methodology and how it fits into the overall software development cycle
  • Install and configure the instruments for tuning, including VisualVM, JMeter, Eclipse TPTP Platform, and basic O/S tools
  • Improve the performance of your application by properly configuring the JVM heap and the garbage collector knobs
  • Efficiently configure the JBoss System Thread Pool, the Connection Pool, and the Logging Service
  • Tune the middleware services including EJB tuning and JMS tuning
  • Learn the principles of good database design and core concepts about Java Persistence API with special focus on JBoss's implementation (Hibernate)
  • Set up the JBoss Clustering service both as a standalone solution and integrated with Apache Web server
  • Configure the JBoss Web server (Tomcat) for optimal performance including the mod_jk, mod_proxy and mod_cluster modules.
  • Develop faster web applications by tuning the JSF and RichFaces component libraries.


In Detail

Today's organizations need to deliver faster services to a large set of people and businesses. In order to survive this challenge, enterprises need to optimize the performance of their application server along with its components and hardware. Writing faster applications is no longer just an option for your products; it's an imperative requirement, which you cannot ignore.

JBoss AS 5 Performance Tuning will teach you how to deliver fast applications on the JBoss Application Server and Apache Tomcat, giving you a decisive competitive advantage over your competitors. You will learn how to optimize the hardware resources, meeting your application requirements with less expenditure.

The performance of Java Enterprise applications is the sum of a set of components including the Java Virtual Machine configuration, the application server configuration (in our case, JBoss AS), the application code itself and ultimately the operating system. This book will show you how to apply the correct tuning methodology and use the tuning tools that will help you to monitor and address any performance issues.

By looking more closely at the Java Virtual Machine, you will get a deeper understanding of what the available options are for your applications and how their performance will be affected. You will learn about thread pool tuning, EJB tuning, JMS tuning, Enterprise Java Beans, and the Java Messaging Service.

The persistence layer and JBoss Clustering service each have a chapter dedicated to them as they are two of the most crucial elements to configure correctly in order to run a fast application.

You will also learn how to tune your web server, enabling you to configure and develop web applications that get the most out of the embedded Tomcat web server.


Read More