RichFaces DocumentBuilder performance issue

Solution Verified - Updated -

Issue

  • The Richfaces creates a org.apache.xerces.jaxp.DocumentBuilder instance for each request. This causes bad performance.
  • We have profiled out application and it seems 80+% of the object allocations are org.ajax4jsf.context.ResponseWriterContentHandler. calling javax.xml.parsers.DocumentBuilderFactory.newInstance() at least once for every page request.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.1.0
    • 5.1.1
  • RichFaces
    • 3.3.1.SP1
    • 3.3.1.SP2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content