You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Asankha C. Perera (JIRA)" <ji...@apache.org> on 2007/10/31 10:18:50 UTC

[jira] Created: (SYNAPSE-167) XSLT transformation could throw an OutOfMemory exception with very large (> 10MB) requests

XSLT transformation could throw an OutOfMemory exception with very large (> 10MB) requests
------------------------------------------------------------------------------------------

                 Key: SYNAPSE-167
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-167
             Project: Synapse
          Issue Type: Bug
          Components: Extension Mediators
    Affects Versions: 1.1-QA-B3
            Reporter: Asankha C. Perera
            Assignee: Asankha C. Perera
             Fix For: 1.1-RC1


XSLT transformation of very large requests could throw the system OutOfMemory

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


[jira] Resolved: (SYNAPSE-167) XSLT transformation could throw an OutOfMemory exception with very large (> 10MB) requests

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asankha C. Perera resolved SYNAPSE-167.
---------------------------------------

    Resolution: Fixed

After a few days of debugging and profiling I managed to find that the culprit was Xalan!
(See here as well http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434840)

Thus I have updated the XSLT mediator to use in-memory ByteArray streams for transformations upto 8K messages (transform source or result size) and to use temporary files where this size is exceeded. This allows me to perform transformations that yield both XML and non-XML outputs of over 10MB in size without any problem (even larger transformations should work fine now). The fix also removed the previously hard coded System property "javax.xml.transform.TransformerFactory" which may now be left unspecified (i.e. use the JDK default) or set to what you desire (e.g. "org.apache.xalan.xsltc.trax.TransformerFactoryImpl") depending on the environment/JDK used. This fix is checked in with associated unit tests

> XSLT transformation could throw an OutOfMemory exception with very large (> 10MB) requests
> ------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-167
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-167
>             Project: Synapse
>          Issue Type: Bug
>          Components: Extension Mediators
>    Affects Versions: 1.1-QA-B3
>            Reporter: Asankha C. Perera
>            Assignee: Asankha C. Perera
>             Fix For: 1.1-RC1
>
>
> XSLT transformation of very large requests could throw the system OutOfMemory

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org