myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Myfaces Wiki] Update of "Performance" by MartinMarinschek
Date Mon, 24 Apr 2006 16:26:27 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by MartinMarinschek:

New page:
There are a few settings you can enable in your web.xml file to make MyFaces perform well.

First step - don't use client-side state saving except for development. 


Next step - disable compression of state in server:


Very important, too, is to disable the serialization of state, serialization and deserialization
of the component tree is a major performance hit. There is work being done to ensure that
the serialization provider is pluggable, and that optionally JBoss serialization may be used.


Another performance factor is the ExtensionsFilter. The ExtensionsFilter buffers and parses
the response on every request. You can disable this, and still gain all functionality the
ExtensionsFilter is providing, by doing two things:

1.) set the context-param org.apache.myfaces.ADD_RESOURCE_CLASS=org.apache.myfaces.component.html.util.StreamingAddResource

2.) get rid of the <HEAD> tag in your HTML, and instead use Tomahawk's <t:documentHead/>

That should be it - with these settings, you should be running much better performance wise.

View raw message