-
1. Re: JBoss AS 7.1.1 Final XA datasources memory leak
mmusgrov Sep 7, 2012 7:06 AM (in response to karl_zhang)Did you add
<xa-datasource>
...
<recovery no-recovery="false">
<recover-plugin class-name="org.jboss.jca.core.recovery.ValidatingManagedConnectionFactoryRecoveryPlugin"/>
</recovery>
</xa-datasource>
to you postgres datasource configuration
-
2. Re: JBoss AS 7.1.1 Final XA datasources memory leak
mmusgrov Sep 7, 2012 7:24 AM (in response to mmusgrov)Also in the JIRA Jesper says you need to use the validation checker which is documented in the ironjacamar docs (http://docs.jboss.org/ironjacamar/userguide/1.0/en-US/html/deployment.html#deployingra_extensions). So you need:
<xa-datasource>
...
<recovery no-recovery="false">
<recover-plugin class-name="org.jboss.jca.core.recovery.ValidatingManagedConnectionFactoryRecoveryPlugin"/>
</recovery>
</xa-datasource>
-
3. Re: JBoss AS 7.1.1 Final XA datasources memory leak
karl_zhang Sep 7, 2012 8:05 AM (in response to mmusgrov)Dear Michael,
thank you for your hints. I posted the same question also in community of JBoss AS. Jesper has answered me also.
Best Regards,
Karl Gross
-
4. Re: JBoss AS 7.1.1 Final XA datasources memory leak
mazz Dec 11, 2012 1:33 PM (in response to karl_zhang)Karl - can you link to this other thread that Jesper replied to that answers your question? Would be helpful for others with the same question.
Now, I'll assume the solutions to the questions Karl had in reply to his "exactly [what do] I have to do to work around this problem?" question are the following:
1) how dose the configuration of JBoss 7 look like? Do I just need to add the recover-plugin class definition?
Michael indicates you need that recover-plugin class definition AND the <validation> section
2) do I need a nightly build version of JBoss7 for the recover-plugin xml element? Or it is possible, just exchange the module ironjacamar in JBoss 7.1.1 with a newer version? Because if I switched to ironjacamar-1.1.0.Beta1, JBoss gave an error during booting: "java.lang.NoClassDefFoundError: org/jboss/jca/common/api/metadata/ds/DataSource$Tag".
Michael seems to indicate you do not need a new ironjacamar version - is that correct Michael, or did I misunderstand?
3) which version of postgres jdbc driver do I need? Do I have to wait for the release of 9.2?
Doesn't appear to require the new driver.
Please correct me.
Thanks.
-
5. Re: JBoss AS 7.1.1 Final XA datasources memory leak
karl_zhang Dec 11, 2012 4:02 PM (in response to mazz)Hi John,
please refer to the thread https://community.jboss.org/thread/205081. I followed the instruction of Tom and could build JBoss AS 7.1.1 with JBTM 4.6.5 to avoid the memory leak problem.
To your questions: both recovery-plugin AND validation are needed; new ironjacamar version and new postgres jdbc driver are NOT needed.
Best Regards,
Karl