You can configure your NexJ applications to record diagnostic information about managed resource pools to help diagnose exception errors and identify leaked connections.
Configuring pooled resource diagnostics
Enable and configure pooled resource diagnostics for your NexJ application to collect diagnostic information about the application's managed resource pool.
Pooled resource diagnostics are enabled by default.
Pooled resource diagnostics record the state of the resource pool in your application's logs when one or more of the following conditions are met:
- A PoolBusyException occurs.
- A resource is in use for a specified amount of time.
- A resource leak is detected.
To configure pooled resource diagnostics:
- In NexJ Studio, navigate to the Deployment layer.
- In the Environments tab, open the environment file in which to configure pooled resource diagnostics.
- Open the Properties view and, in the Deployment properties group, set the following properties:
Enables and disables pooled resource diagnostics. To enable, set this property to true. To disable, set this property to
Specifies the minimum time in seconds that a pool resource must be in use before a warning is logged that the resource is potentially hung. Default value is
Specifies the minimum time in seconds that must elapse before system-triggered dumps on the same resource pool are logged. Default value is
Pooled resource diagnostics are configured for your NexJ application.
You must redeploy the application for the changes to take effect.