NexJ Logo

Monitoring application-managed resource pools

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:

  1. In NexJ Studio, navigate to the Deployment layer.
  2. In the Environments tab, open the environment file in which to configure pooled resource diagnostics.
  3. Open the Properties view and, in the Deployment properties group, set the following properties:
    • diagnosticTrace
      Enables and disables pooled resource diagnostics. To enable, set this property to true. To disable, set this property to false.

    • diagnosticLeakTimeout
      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 86400 (1 day).

    • diagnosticRepeatTimeout
      Specifies the minimum time in seconds that must elapse before system-triggered dumps on the same resource pool are logged. Default value is 60 (1 minute).

Pooled resource diagnostics are configured for your NexJ application.

You must redeploy the application for the changes to take effect.