United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7147666 : High lock time for com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance()

Details
Type:
Bug
Submit Date:
2012-02-22
Status:
Closed
Updated Date:
2014-11-27
Project Name:
JDK
Resolved Date:
2012-06-03
Component:
xml
OS:
solaris
Sub-Component:
javax.xml.parsers
CPU:
sparc
Priority:
P2
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
7u4 (b16)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
Notice: A previous bug report has been submitted according to CR 7080954. According to CR 7080954, it should be fixed in jdk7u4 b07 with JAXP 1.4.5 update 1, but per my testing on build b07 and b12 it is not fixed.

This lock is discovered by parsing files(approximately 13KB size) with DOM parsers on T4, using a benchmark called XMLTest. With jdk7u4 b07, com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory.getInstance() is listed as a top lock class, occupied approximately 57% of total thread time; similar observation in b12.

                                    

Comments
SQE OK to take the fix to jdk5 backport as far as we already well tested it in jdk6 and later. 
                                     
2014-11-10
JAXP in JDK8 was sync-ed with that in 7u4
                                     
2012-09-27
EVALUATION

synchronization is unnecessary (historical changes), removed.
                                     
2012-03-06
WORK AROUND

This lock can be completely removed by manually subsititute the class file in runtime library (rt.jar) with the one in a JAXP engineering build provided by Joe Wang, increasing DOM parsing throughput by 36%.
                                     
2012-02-22
PUBLIC COMMENTS

This lock is previously discovered in jdk7 with similar performance. CR 7080954 suggested that it is fixed with JAXP 1.4.5 update 1. Since now jdk7u4 b07 and b12 gave similar performance and work around, JAXP 1.4.5 update 1 might not be in place.
                                     
2012-02-22



Hardware and Software, Engineered to Work Together