Tune the persistent connection settings for ODR performance
to minimize the time you spend setting up new connections and taking
down older connections during a barrage of requests. Primarily, this
tuning is relevant to the connections between the ODR and the application
servers.
Before you begin
Modify your JVM heap settings. For more information about
the JVM settings, read about modifying the JVM heap size for the on
demand router.
About this task
Adjust the application server's number of persistent requests
so that the ODR reuses the connection to the application server for
as long as it can. To do this, configure the ODR transport chain to
tune inbound connections to the ODR. To tune outbound connections
from the ODR, configure the transport chains of the application servers
that are members of a dynamic cluster. To do so, configure the transport
chain of the dynamic cluster from within the dynamic cluster server
template. Changes to the dynamic cluster's server template are
automatically applied to all cluster members.
You should set
number of persistent requests high enough to avoid having to bring
down and recreate a connection during a barrage of requests, so set
the value to at least the number of requests in a single barrage of
request. The barrage can be a single page with associated data with
a long think time, or a series of pages and associated data in short
succession. Setting a value higher than the number of requests in
a single barrage of request will not negatively affect performance
provided the persistent timeout is set appropriately to close idle
connections.
Procedure
- Tune the ODR's HTTP_PROXY_ADDRESS and HTTPS_PROXY_ADDRESS
transport chains.
In the administrative console, click .
- Click View associated transports for
the port whose transport chains you want to view.
- Click transport_chain_name.
- Click HTTP inbound channel.
- Ensure that Use persistent (keep-alive) connections is
checked.
- Specify an unlimited number of persistent requests per
connection.
Select Unlimited persistent requests
per connection.
- Specify a maximum number of persistent requests per
connection.
Select Maximum persistent requests
per connection. Setting this value to -1 yields
the best performance.
- Click Apply and OK to
save your changes.
- Tune the application servers' HTTP_PROXY_ADDRESS and
HTTPS_PROXY_ADDRESS transport chains.
In the administrative
console, click .
- Configure the WCInboundDefault transport chain.
- Click WCInboundDefault.
- Click HTTP inbound channel.
- Ensure that Use persistent (keep-alive) connections is
checked.
- Specify an unlimited number of persistent requests per connection.
Select Unlimited persistent requests per connection.
- Specify a maximum number of persistent requests per connection.
Select Maximum persistent requests per connection,
and set the value to -1. This allows an infinite
number of requests to flow over a single connection. Connections that
are not used for an extended period of time are still closed due to
the inactivity timeout for the connection.
- Click Apply and OK to
save your changes.
- Configure the WCInboundDefaultSecure transport chain.
- Click WCInboundDefaultSecure.
- Click HTTP inbound channel.
- Ensure that Use persistent (keep-alive) connections is
checked.
- Select Unlimited persistent requests per connection to
specify an unlimited number of persistent requests per connection.
- Select Maximum persistent requests per connection to
specify a maximum number of persistent requests per connection. Setting
this value to -1 yields the best performance.
- Click Apply and OK to
save your changes.