[
https://issues.apache.org/jira/browse/XALANJ-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966940#action_12966940
]
Jochen Stiepel commented on XALANJ-2526:
----------------------------------------
I made the following tests:
1.) Xalan 2.7.1 with no -Xss option -> Stackoverflowerror
2.) Xalan 2.7.1 with -Xss1m -> Stackoverflowerror
3.) Xalan 2.7.1 with -Xss2m -> Stackoverflowerror
4.) Xalan 2.7.1 with -Xss3m -> Stackoverflowerror
5.) Xalan 2.7.1 with -Xss4m -> Java OutOfMemoryError with 2500MB Java Heap
used.
6.) Xalan trunk patched with -Xss4m -> Success!! Java Heap Space used 60MB !!!
(Monitored with JVisusalVM).
In the trunk patched version only the XStringForFSB.m_strCache was disabled. I
took 4:29 min to process the 18 MB files with the junit-frames.xsl.
This is a HUGE reduction in Memory (Java Heap Space) consumption!
> StackOverflowError at at
> org.apache.xml.serializer.ToStream.characters(ToStream.java:1624)
> ------------------------------------------------------------------------------------------
>
> Key: XALANJ-2526
> URL: https://issues.apache.org/jira/browse/XALANJ-2526
> Project: XalanJ2
> Issue Type: Bug
> Security Level: No security risk; visible to anyone(Ordinary problems in
> Xalan projects. Anybody can view the issue.)
> Affects Versions: 2.7.1
> Environment: Linux, Java 1.6.0_21, Xalan 2.7.1
> Reporter: Jochen Stiepel
> Priority: Blocker
> Attachments: oom_xalan.txt, XALANJ-2526_patch.txt
>
>
> Using the Anttask Junit-Report with an xslt to generate the Junitreport I'm
> getting this error from the JDK xml parser:
> -----------------------------------------------------------------------------------------------------------
> This is the stacktrace from the JDK Xalan, but below is the output of the
> "normal" Xalan 2.7.1
> -----------------------------------------------------------------------------------------------------------
> Caused by: java.lang.StackOverflowError
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:390)
> at
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:211)
> ... 22 more
> Caused by: java.lang.StackOverflowError
> at
> com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStream.java:1457)
> at
> com.sun.org.apache.xml.internal.serializer.ToHTMLStream.characters(ToHTMLStream.java:1529)
> at
> com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStream.java:1613)
> at
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.characters(AbstractTranslet.java:618)
> at junit_frames.br$dash$replace()
> at junit_frames.br$dash$replace()
--
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: [email protected]
For additional commands, e-mail: [email protected]