Book Image

WildFly Performance Tuning

Book Image

WildFly Performance Tuning

Overview of this book

Table of Contents (17 chapters)
WildFly Performance Tuning
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Performance tuning EJBs in WildFly


Most of the performance tuning of EJBs in WildFly consists of tuning various pools. The following sections will go more into detail about each of the EJB types and their actual tuning. First though, we will start with some generic information about enabling detailed statistics in WildFly and a few optimizations of local and remote method calls.

Enabling detailed statistics

By default, detailed statistics aren't generated in WildFly. To generate statistics, it must be enabled using the following CLI command:

/subsystem=ejb3:write-attribute(name=enable-statistics,value=true)

Optimizations of Local and Remote method calls

Session beans have two possible interfaces, @Local and @Remote. The difference is that when the local interface is used, it makes it possible for the application server to perform a pass-by-reference instead of a pass-by-value call. When using references, the method-call parameters are sent as memory references (like any other standard Java...