-
Bug
-
Resolution: Fixed
-
P2
-
saaj1.2, 6
-
1.4
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2158218 | 7 | Joe Wang | P2 | Closed | Fixed | m05 |
JDK-2158217 | 6-pool | Mala Bankal | P2 | Closed | Won't Fix | |
JDK-2173440 | 6u14 | Abhijit Saha | P2 | Resolved | Fixed | b03 |
JDK-2185325 | 5.0u23 | Mala Bankal | P2 | Resolved | Fixed | b01 |
JDK-2184227 | 5.0u22-rev | Mala Bankal | P2 | Resolved | Fixed | b04 |
JDK-2158219 | 5.0u21-rev | Mala Bankal | P2 | Resolved | Fixed | b04 |
DOMResult, the performance of Transform gets worse as the size of the
inputstream increases.
How to Reproduce :
The issue manifests in the form of Poor performance of SAAJ for Large Payloads.
SAAJ RI depends on the Transformer.
import javax.xml.soap.*;
long start = System.currentTimeMillis();
MessageFactory mf =
MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
MimeHeaders hdrs = new MimeHeaders();
hdrs.addHeader("Content-Type", "application/soap+xml");
SOAPMessage sm = mf.createMessage(hdrs, new FileInputStream(new
File("msgAttach.xml")));
SOAPBody body = sm.getSOAPBody();
long end = System.currentTimeMillis();
System.out.println("Total Time Taken=" + (end - start)/1000);
Here msgAttach.xml is basically a SOAP Envelope with a large SOAPBody
------------
Profiling has shown that 99.5% of the time is being spent on in
CharacterDataImpl.appendData()
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.characters(char[], int,
int) is calling
com.sun.org.apache.xerces.internal.dom.CharacterDataImpl.appendData(String) and
99.5% of time is spent here.
- backported by
-
JDK-2158219 JAXP issue 48 : Performance Issue with Xalan Transformer
- Resolved
-
JDK-2173440 JAXP issue 48 : Performance Issue with Xalan Transformer
- Resolved
-
JDK-2184227 JAXP issue 48 : Performance Issue with Xalan Transformer
- Resolved
-
JDK-2185325 JAXP issue 48 : Performance Issue with Xalan Transformer
- Resolved
-
JDK-2158217 JAXP issue 48 : Performance Issue with Xalan Transformer
- Closed
-
JDK-2158218 JAXP issue 48 : Performance Issue with Xalan Transformer
- Closed
- relates to
-
JDK-6891538 regression test javax/xml/transform/CR6652519.java failed.
- Closed
-
JDK-8343092 jaxp/unittest/transform/msgAttach.xml could be generated
- Open