Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XALANJ-1973 Here is an overview of the issue: --------------------------------------------------------------------- Key: XALANJ-1973 Summary: Memory Leak, Extension functions that return a DTM Type: Bug Status: Unassigned Priority: Major Project: XalanJ2 Components: transformation Versions: CurrentCVS Assignee: Reporter: John Gentilin Created: Tue, 28 Sep 2004 5:06 PM Updated: Tue, 28 Sep 2004 5:06 PM Environment: Xalan, current CVS JDK 1.4.2_04 (SUN) Description: It appears that when an extension function returns a DTM, a reference to the DTM object is held within the transformation engine. This problem is apparent within the SQL Extension but I don't think the extension code is the source of the problem. I am including a Stylesheet that can demonstrate the problem along with 2 different back trace files and a heap dump produced from OptimizeIt. The heap dump represents the state of the JVM, after the transformation was completed with a forced GC. The back traces show the allocations of the SQLDocument which extends DTM. The stylesheet example is complete and does not require an XML data file. It does require a connection to a JDBC compliant Database. The stylesheet will create the table, insert the test data and run several iterations. At first we were using the xsl:for-each element. Comments in this code lead me to believe that the ElemForEach#transformSelectedNodes may have been responsible. The XSL was then refactored to use xsl:apply-templates but the same memory leak appeared. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
