Sun Microsystems 820433510 Server User Manual


 
Using the asadmin commands to change connection pool properties.
You can use the asadmin get and set commands to view and change the values of the
connection pool properties.
To list all the connector connection pools in the server:
asadmin list domain.resources.connector-connection-pool.*
To view the properties of the connector connection pool, you can use the following command:
asadmin get domain.resources.connector-connection-pool.conectionpoolname.*
To set a property of the connector connection pool, you can use the following command:
asadmin set
domain.resources.connector-connection-pool.conectionpoolname.pool-resize-quantity=3
To Edit Connector Connection Pool Advanced
Attributes
Use theAdvanced tab to edit theadvanced attributes for aconnectorconnection pool.
Parameter Description
Validate Atmost Once Amount of time,in seconds, after which aconnection is validated at most once.
This will helpreduce the number of validation requestsby a connection. The
default value 0implies that connection validation is notenabled.
Leak Timeout Amount of time,in seconds, to trace connection leaksin a connection pool. The
default value 0means that connection leak tracing isdisabled. If connection leak
tracing is enabled,you can get statistics on thenumber of connection leaks in the
MonitoringResources tab. To view this tab,go to Application Server >Monitoring
> Resources.
Leak Reclaim If thisoption is enabled, leaked connections willbe restored to the poolafter leak
connection tracing iscomplete.
Creation Retry Attempts Number of attemptsthat will be made if thereis a failure in creating anew
connection. The defaultvalue of 0 implies that noattempts will be made to create
the connection again.
Retry Interval Specify the interval,in seconds, between two attempts tocreate a connection. The
default value is10 seconds. This attribute is usedonly if the value of Creation
Retry Attempts isgreater than 0.
MoreInformation
1
ManagingConnectorConnection Pools
Chapter7 • ConnectorResources 85