The way I've done something similar in the past is to set an alarm /
monitor on the jdbc connection count. If at any point it is zero there
could potentially be a network issue and/or approaching zero there might be
a connection leak in the application.

On Jul 26, 2016 1:14 AM, "James Harvey" <[email protected]> wrote:

> Hi,
>
> We are using JDBI to connect to a number of different database instances
> in the same service (don't ask! 😊).
>
> Periodically we think there might be a connection issue with one or more
> connections as the healthcheck randomly fails, but we aren't sure which one.
>
>  Our healthchecks are automatically invoked every few seconds for load
> balancing so we can't see the response, only that the service instance has
> been removed from the load balanced pool.
>
> Has anyone found a way to enable logging of exceptions in JDBI
> healthchecks / metrics servlet? Tracing through the DW code I couldn't see
> anything obvious...
>
> Thanks!
> James
>
> --
> You received this message because you are subscribed to the Google Groups
> "dropwizard-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to