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.
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)
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...