4 Replies Latest reply on Nov 28, 2017 10:23 AM by bonanzaone

    Dumping leak connections in WildFly with IronJacamar

    bonanzaone

      Hi

       

      After configuring IronJacamar to dump leak connections information, the "leaks.txt" file is nowhere to be found. I am using WildFly 10.1, and database is MySQL.

       

      I am following IronJacamar documentation: http://www.ironjacamar.org/doc/userguide/1.2/en-US/html_single/index.html#configuration_ironjacamar_leakpool

       

      According to the documentation:

      The leak detector pool provides a stack trace of the leaked connection allocation either during shutdown of the pool, or once the pool is flush using a flush strategy which kills all active connections.

       

      The steps I took was configure IronJacamar to use the leak pool:

       

      "JAVA_OPTS=%JAVA_OPTS% -Dironjacamar.mcp=org.jboss.jca.core.connectionmanager.pool.mcp.LeakDumperManagedConnectionPool -Dironjacamar.leaklog=d:/leaks.txt"
      

       

      After leaking some connections with a mock application, using CLI I've flushed all connections in the pool:

       

      [standalone@localhost:9990 /] /subsystem=datasources/data-source=mysql-ds:flush-all-connection-in-pool
      

       

       

      But the "leaks.txt" file is not being generated. Also stopping and starting the server did not generate the file.

       

      What could be wrong? Am I missing any step?