I believe you need a couple more properties for abandoned connections to be
pruned:

removeAbandoned="true"
removeAbandonedTimeout="60"


On Wed, Sep 27, 2023, 12:18 AM chege <[email protected]> wrote:

> Hi,
>
> I using tomee 8.0.14. I want to see which code is not closing
> connections. I have set logAbandoned true in my datasource.
> However I don't see the any abandoned connection logged.
>
>
>  <Resource id="jdbc/abc" type="DataSource">
>
>       DataSourceCreator tomcat
>       JdbcDriver org.postgresql.Driver
>       JdbcUrl jdbc:postgresql://localhost:5432/abc
>        username ***
>       password ***
>       JtaManaged true
>       InitialSize 10
>       MaxActive 50
>       MaxIdle 25
>       MinIdle 10
>       TestOnBorrow true
>       TestWhileIdle true
>       ValidationQuery select 1
>       logAbandoned true
>     </Resource>
>
>
> What else do I need to do to see connection leaks logged?
>
>
> Chege.
>
>

Reply via email to