You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Martin Denham <mj...@gmail.com> on 2007/01/15 18:59:12 UTC

app very slow when Spring RequestContextFilter added

I am doing some analysis of page response speed and have discovered that
when I include the Spring requestContextFilter response time is much slower.

Without the requestContextFilter response time is 6 seconds.  With the
requestContextFilter response time is 18 seconds.

I am using MyFaces 1.1.4, Facelets 1.1.11, ADF 10.1.3.1 on Weblogic 8.1sp5.
The pc is a a 1.5GHz pentium.

Here is an extract of my web.xml:

    <!-- Add support for session and request scope Spring beans -->
    <filter>
        <filter-name>requestContextFilter</filter-name>
        <filter-class>org.springframework.web.filter.RequestContextFilter
</filter-class>
    </filter>

    <!--  required for ADF -->
    <filter>
        <filter-name>adfFaces</filter-name>
        <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
</filter-class>
    </filter>

    <!-- Add support for session and request scope Spring beans -->
    <filter-mapping>
        <filter-name>requestContextFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>

    <!--  required for ADF -->
    <filter-mapping>
        <filter-name>adfFaces</filter-name>
        <servlet-name>Faces Servlet</servlet-name><!-- this must match your
faces servlet name -->
    </filter-mapping>


Maybe I should post this to the Spring forum, but I decided to post it here
first as I wondered if the ADF filter or JSF architecture was having an
affect.

Thanks

Martin

Re: app very slow when Spring RequestContextFilter added

Posted by Alexey Kakunin <ak...@gmail.com>.
No, we are not using ADF - only MyFaces/Tomahawk/Facelets. But still do not
see reasons why it should works so slower just after adding Spring Filter.
Please, if you will find a reason - tell me.

2007/1/16, Martin Denham <mj...@gmail.com>:
>
> I wonder if it has anything to do with the ajax which ADF uses.  Are you
> using ADF?
>
>
>
> On 1/15/07, Alexey Kakunin < akakunin@gmail.com> wrote:
> >
> > Hm, looks very stange - we are using Spring Framework together with JSF
> > quite well without any problem.
> >
> > I can only sugges to try to see execution in the Profiler (for example
> > in Eclipse TPTP: http://www.eclipse.org/tptp/) - you will manage to see
> > there your application spend it's time
> >
> >
> >
> > 2007/1/15, Martin Denham < mjdenham@gmail.com >:
> > >
> > > I am doing some analysis of page response speed and have discovered
> > > that when I include the Spring requestContextFilter response time is much
> > > slower.
> > >
> > > Without the requestContextFilter response time is 6 seconds.  With the
> > > requestContextFilter response time is 18 seconds.
> > >
> > > I am using MyFaces 1.1.4, Facelets 1.1.11, ADF 10.1.3.1 on Weblogic
> > > 8.1sp5.  The pc is a a 1.5GHz pentium.
> > >
> > > Here is an extract of my web.xml:
> > >
> > >     <!-- Add support for session and request scope Spring beans -->
> > >     <filter>
> > >         <filter-name>requestContextFilter</filter-name>
> > >         <filter-class>
> > > org.springframework.web.filter.RequestContextFilter</filter-class>
> > >     </filter>
> > >
> > >     <!--  required for ADF -->
> > >     <filter>
> > >         <filter-name>adfFaces</filter-name>
> > >         <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
> > > </filter-class>
> > >     </filter>
> > >
> > >     <!-- Add support for session and request scope Spring beans -->
> > >     <filter-mapping>
> > >         <filter-name>requestContextFilter</filter-name>
> > >         <servlet-name>Faces Servlet</servlet-name>
> > >     </filter-mapping>
> > >
> > >     <!--  required for ADF -->
> > >     <filter-mapping>
> > >         <filter-name>adfFaces</filter-name>
> > >         <servlet-name>Faces Servlet</servlet-name><!-- this must match
> > > your faces servlet name -->
> > >     </filter-mapping>
> > >
> > >
> > > Maybe I should post this to the Spring forum, but I decided to post it
> > > here first as I wondered if the ADF filter or JSF architecture was having an
> > > affect.
> > >
> > > Thanks
> > >
> > > Martin
> > >
> >
> >
>

Re: app very slow when Spring RequestContextFilter added

Posted by Martin Denham <mj...@gmail.com>.
I wonder if it has anything to do with the ajax which ADF uses.  Are you
using ADF?



On 1/15/07, Alexey Kakunin <ak...@gmail.com> wrote:
>
> Hm, looks very stange - we are using Spring Framework together with JSF
> quite well without any problem.
>
> I can only sugges to try to see execution in the Profiler (for example in
> Eclipse TPTP: http://www.eclipse.org/tptp/) - you will manage to see there
> your application spend it's time
>
>
>
> 2007/1/15, Martin Denham <mjdenham@gmail.com >:
> >
> > I am doing some analysis of page response speed and have discovered that
> > when I include the Spring requestContextFilter response time is much slower.
> >
> >
> > Without the requestContextFilter response time is 6 seconds.  With the
> > requestContextFilter response time is 18 seconds.
> >
> > I am using MyFaces 1.1.4, Facelets 1.1.11, ADF 10.1.3.1 on Weblogic
> > 8.1sp5.  The pc is a a 1.5GHz pentium.
> >
> > Here is an extract of my web.xml:
> >
> >     <!-- Add support for session and request scope Spring beans -->
> >     <filter>
> >         <filter-name>requestContextFilter</filter-name>
> >         <filter-class>
> > org.springframework.web.filter.RequestContextFilter</filter-class>
> >     </filter>
> >
> >     <!--  required for ADF -->
> >     <filter>
> >         <filter-name>adfFaces</filter-name>
> >         <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
> > </filter-class>
> >     </filter>
> >
> >     <!-- Add support for session and request scope Spring beans -->
> >     <filter-mapping>
> >         <filter-name>requestContextFilter</filter-name>
> >         <servlet-name>Faces Servlet</servlet-name>
> >     </filter-mapping>
> >
> >     <!--  required for ADF -->
> >     <filter-mapping>
> >         <filter-name>adfFaces</filter-name>
> >         <servlet-name>Faces Servlet</servlet-name><!-- this must match
> > your faces servlet name -->
> >     </filter-mapping>
> >
> >
> > Maybe I should post this to the Spring forum, but I decided to post it
> > here first as I wondered if the ADF filter or JSF architecture was having an
> > affect.
> >
> > Thanks
> >
> > Martin
> >
>
>

Re: app very slow when Spring RequestContextFilter added

Posted by Alexey Kakunin <ak...@gmail.com>.
Hm, looks very stange - we are using Spring Framework together with JSF
quite well without any problem.

I can only sugges to try to see execution in the Profiler (for example in
Eclipse TPTP: http://www.eclipse.org/tptp/) - you will manage to see there
your application spend it's time



2007/1/15, Martin Denham <mj...@gmail.com>:
>
> I am doing some analysis of page response speed and have discovered that
> when I include the Spring requestContextFilter response time is much slower.
>
> Without the requestContextFilter response time is 6 seconds.  With the
> requestContextFilter response time is 18 seconds.
>
> I am using MyFaces 1.1.4, Facelets 1.1.11, ADF 10.1.3.1 on Weblogic 8.1sp5.
> The pc is a a 1.5GHz pentium.
>
> Here is an extract of my web.xml:
>
>     <!-- Add support for session and request scope Spring beans -->
>     <filter>
>         <filter-name>requestContextFilter</filter-name>
>         <filter-class>org.springframework.web.filter.RequestContextFilter
> </filter-class>
>     </filter>
>
>     <!--  required for ADF -->
>     <filter>
>         <filter-name>adfFaces</filter-name>
>         <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
> </filter-class>
>     </filter>
>
>     <!-- Add support for session and request scope Spring beans -->
>     <filter-mapping>
>         <filter-name>requestContextFilter</filter-name>
>         <servlet-name>Faces Servlet</servlet-name>
>     </filter-mapping>
>
>     <!--  required for ADF -->
>     <filter-mapping>
>         <filter-name>adfFaces</filter-name>
>         <servlet-name>Faces Servlet</servlet-name><!-- this must match
> your faces servlet name -->
>     </filter-mapping>
>
>
> Maybe I should post this to the Spring forum, but I decided to post it
> here first as I wondered if the ADF filter or JSF architecture was having an
> affect.
>
> Thanks
>
> Martin
>