Struts 2
  1. Struts 2
  2. WW-3786

StrutsPrepareAndExecuteFilter.doFilter() - Takes up to 60 seconds for certain cases

    Details

    • Flags:
      Important

      Description

      Hi Struts Team...

      We use New Relic - a software which kinds of breaks down every web transaction. While monitoring the transactions taking longest time, we came across multiple actions with a single issue where 99% of the time is attributed to this filter call.

      Here is how we have configured the web.xml

      	<filter>
      		<filter-name>struts</filter-name>
      		<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
      		 <init-param>
              	<param-name>disableActionScanning</param-name>
              	<param-value>true</param-value>        	
              </init-param>
              <init-param>
              	<param-name>actionPackages</param-name>
              	<param-value>com.xxx.application.webapp.*</param-value>
              </init-param>
      	</filter>
      	<filter-mapping>
      		<filter-name>struts</filter-name>
      		<url-pattern>/*</url-pattern>
      	</filter-mapping>
      

      Let me know if you all need any more information to help me out on this.

      Thanks,
      BP.

        Activity

        Lukasz Lenart made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Lukasz Lenart made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Lukasz Lenart [ lukaszlenart ]
        Resolution Incomplete [ 4 ]
        Lukasz Lenart made changes -
        Description Hi Struts Team...

        We use New Relic - a software which kinds of breaks down every web transaction. While monitoring the transactions taking longest time, we came across multiple actions with a single issue where 99% of the time is attributed to this filter call.

        Here is how we have configured the web.xml
        ...
        <filter>
        <filter-name>struts</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
        <init-param>
                 <param-name>disableActionScanning</param-name>
                 <param-value>true</param-value>
                </init-param>
                <init-param>
                 <param-name>actionPackages</param-name>
                 <param-value>com.xxx.application.webapp.*</param-value>
                </init-param>
        </filter>
        <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
        </filter-mapping>
        ...

        Let me know if you all need any more information to help me out on this.

        Thanks,
        BP.
        Hi Struts Team...

        We use New Relic - a software which kinds of breaks down every web transaction. While monitoring the transactions taking longest time, we came across multiple actions with a single issue where 99% of the time is attributed to this filter call.

        Here is how we have configured the web.xml
        {code:xml}
        <filter>
        <filter-name>struts</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
        <init-param>
                 <param-name>disableActionScanning</param-name>
                 <param-value>true</param-value>
                </init-param>
                <init-param>
                 <param-name>actionPackages</param-name>
                 <param-value>com.xxx.application.webapp.*</param-value>
                </init-param>
        </filter>
        <filter-mapping>
        <filter-name>struts</filter-name>
        <url-pattern>/*</url-pattern>
        </filter-mapping>
        {code}

        Let me know if you all need any more information to help me out on this.

        Thanks,
        BP.
        Lukasz Lenart made changes -
        Fix Version/s 2.3.8 [ 12323480 ]
        Fix Version/s 2.3.7 [ 12323448 ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.7 [ 12323448 ]
        Black Pearl made changes -
        Field Original Value New Value
        Attachment screenshot-web trasaction trace.jpg [ 12520375 ]
        Black Pearl created issue -

          People

          • Assignee:
            Lukasz Lenart
            Reporter:
            Black Pearl
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development