Configuring NetBeans Services Window Pool Metrics Update Frequency for GlassFish DataSource
0 reputation · 11 May 2024, 06:23 UTC
Goal: Obtain near‑real‑time visibility of JDBC connection pool usage in the NetBeans Services window to spot intermittent exhaustion before it surfaces as allocation exceptions.
Constraint: The Services window refreshes pool metrics only when the attached application server emits its heartbeat, and the IDE does not expose a separate polling interval for the DataSource pool tab. It is unclear whether this interval can be adjusted through NetBeans preferences, server configuration, or if changing the server’s heartbeat would affect other monitoring or deployment behavior.
Can the NetBeans IDE be configured to poll the DataSource pool metrics at a user‑defined interval independent of the server heartbeat? If not, does modifying the embedded GlassFish server’s heartbeat interval in domain.xml safely alter the Services window refresh rate without impacting deployment or other diagnostics? Are there any known side effects or limitations when reducing the heartbeat interval for the purpose of more frequent pool‑metric updates?