-
1. Re: Dumping leak connections in WildFly with IronJacamar
andey Mar 1, 2017 10:44 PM (in response to bonanzaone)Hi,
Configure the following system properties
~~~
-Dironjacamar.mcp=org.jboss.jca.core.connectionmanager.pool.mcp.LeakDumperManagedConnectionPool
-Dironjacamar.leaklog=<filename>
~~~
These may be configured in various ways including the following:
- Add the properties to <JBOSS_HOME>/bin/<standalone|domain>.<sh|bat>
- Add the properties to the <system-properties> section of the<standalone|domain>.xml`
A stack trace for all connections still retained by application components will be written to the file specified when any of the following occur
EAP is shutdown
The relevant datasource pool is restarted
The relevant datasource pool is flushed using flush-all-connection-in-pool
Note that this action will terminate all connections including those which may have on-going operations initiated by application components
The Administration and Configuration Guide's discussion of the Java Connector Architecture (JCA) at[1]
The IronJacamar User's Guide's discussion of Pool Configuration at[2]
[2]http://www.ironjacamar.org/doc/userguide/1.2/en-US/html/ch04.html#configuration_ironjacamar_leakpool
-
2. Re: Dumping leak connections in WildFly with IronJacamar
bonanzaone Mar 2, 2017 1:32 PM (in response to andey)Please, check my question again. I already did those steps. I want to know why it is not working.
-
3. Re: Dumping leak connections in WildFly with IronJacamar
spatwary04 Sep 11, 2017 4:51 PM (in response to bonanzaone)I am trying to generate the leak file on wildlfy 10.0 but not successful.Followed the same steps as mentioned in the post.
-
4. Re: Dumping leak connections in WildFly with IronJacamar
bonanzaone Nov 28, 2017 10:23 AM (in response to spatwary04)Shiva you might be able to workaround it using this post I made: https://stackoverflow.com/a/42809241/3231778
But the problem still happens, the file is still not generated. I have opened a bug in JIRA: [JBJCA-1360] Dumping leak connections in WildFly with IronJacamar not Working - JBoss Issue Tracker