1 2 Previous Next 15 Replies Latest reply on Dec 17, 2012 4:26 AM by Rene Gritsch

    AS7 getting slower

    Rene Gritsch Newbie

      Hello,

       

      we have a real strange behavoir, which can´t be profiled with JProfiler cause it looks like a blocking inside JBoss before passing by any requests to our app.

      We are using a .WAR with Seam 2, JSF 1.2 (JSF 2.0 excluded in AS7), Richfaces 3.3.3 and Hibernate and C3P0, so a classic combination.

       

      In the past we were using Tomcat with embedded JBoss as our Application server without any problems. Now we tried to switch to AS7 and we have the

      strange the behavoir that with about 30 users and 2sec. think time our webapp is getting really slow and we have minutes of response time but also

      after stopping our stress test jboss as7 is still really slow, also returning back static resources like images is quite slow but CPU / memory is fine.

      Same .war on Glassfish or Tomcat with embedded Jboss is running without any problems.

       

      Are the any known issues cause of JSF 1.2 downgrade? or any other suggestions?

       

      Thanks alot for any help and if you need further informations just ask.


      Thnx René

        • 1. Re: AS7 getting slower
          Tomaz Cerar Master

          Hi,

           

          what is exact version of AS you are using and also what is exact version of jsf impl you have?.

           

          also can you post out put of jar tf <name-of-your-deployment> so we can see what you have in your app.

           

          --

          tomaz

          • 2. Re: AS7 getting slower
            Rene Gritsch Newbie

            Hi,

            okay I will try my best to give as much infos as possible.

            So Java 1.7 64bit with these options

            ===============================================================================

              JBoss Bootstrap Environment

              JBOSS_HOME: D:\Jboss\FiposGliLast

              JAVA: C:\Program Files\Java\jdk7\bin\java

              JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xmx8g -XX:MaxPermSize=512M -server -XX:+UseG1GC -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.

            k=true -Dorg.jboss.resolver.warning=false -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml

              ===============================================================================

            21:46:55,576 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

            21:46:55,960 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

            21:46:56,042 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

            21:46:56,844 INFO  [org.xnio] XNIO Version 3.0.3.GA

            21:46:56,864 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

            21:47:24,631 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-24) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjecti

            ovider.  Entry will be ignored.

             

            Richfaces 3.3.3 final with included JSF (I thinks it´s 1.2.12) and Seam 2.2.2 final too

             

            Here is the full .jar list, our own jars have been removed

             

            20.12.2010  10:46            62.983 activation-1.1.jar

            31.05.2012  16:18            18.432 ant-launcher.jar

            31.05.2012  16:18         1.938.849 ant.jar

            20.12.2010  10:45           116.205 antlr-runtime.jar

            18.10.2011  15:56           281.694 bsh-2.0b4.jar

            19.12.2011  13:06           610.790 c3p0-0.9.1.2.jar

            12.06.2012  15:05           188.509 com.ibm.icu.base_4.4.2.v20110831.jar

            09.10.2012  18:00           324.871 com.ibm.mq.jar

            20.12.2010  10:45           188.671 commons-beanutils.jar

            01.03.2012  18:50           232.771 commons-codec-1.6.jar

            07.09.2012  16:47            24.242 commons-daemon-1.0.10.jar

            20.12.2010  10:45           146.108 commons-digester.jar

            04.10.2011  16:19           279.383 commons-httpclient-3.0.jar

            21.06.2012  17:07           185.140 commons-io-2.4.jar

            20.12.2010  10:46           261.809 commons-lang-2.4.jar

            18.02.2011  14:27           284.220 commons-lang-2.6.jar

            26.05.2011  17:51            60.841 commons-logging-1.1.1.jar

            17.05.2011  18:48            62.103 commons-pool-1.3.jar

            20.12.2010  10:45         4.366.956 core.jar

            28.06.2012  13:29         3.796.846 db2jcc4.jar

            20.12.2010  10:45           127.170 drools-api.jar

            20.12.2010  10:45         1.158.010 drools-compiler.jar

            20.12.2010  10:45         1.790.798 drools-core.jar

            20.12.2010  10:45            47.197 drools-decisiontables.jar

            20.12.2010  10:45            46.140 drools-templates.jar

            20.12.2010  10:45           208.048 ehcache.jar

            19.10.2012  16:18         1.795.936 guava-12.0.jar

            18.02.2011  14:27           384.337 hessian-4.0.7.jar

            20.12.2010  10:39         3.654.591 hibernate-all.jar

            21.02.2011  15:47           349.959 httpclient-4.1.jar

            21.02.2011  15:47           105.970 httpclient-cache-4.1.jar

            21.02.2011  15:47           181.041 httpcore-4.1.jar

            21.02.2011  15:47            26.813 httpmime-4.1.jar

            12.09.2011  13:51            65.261 jakarta-oro-2.0.8.jar

            20.12.2010  10:45           463.412 janino.jar

            13.12.2012  22:01                 0 jars.txt

            20.12.2010  10:45           134.652 jboss-el.jar

            20.12.2010  10:45            16.160 jboss-seam-debug.jar

            20.12.2010  10:45           121.171 jboss-seam-excel.jar

            20.12.2010  10:45            55.097 jboss-seam-ioc.jar

            20.12.2010  10:45            28.530 jboss-seam-mail.jar

            20.12.2010  10:45            87.891 jboss-seam-pdf.jar

            20.12.2010  10:46           101.561 jboss-seam-remoting.jar

            20.12.2010  10:45           297.101 jboss-seam-ui.jar

            20.12.2010  10:39         1.171.234 jboss-seam.jar

            19.10.2012  17:48           109.121 jboss-vfs-3.1.0.Final.jar

            20.12.2010  10:45           668.249 jbpm-jpdl.jar

            13.08.2012  10:22            29.487 jcommander-1.5.jar

            20.12.2010  10:45         2.005.783 jgroups.jar

            19.01.2012  17:33         1.006.639 jna-3.4.0.jar

            21.09.2012  20:44           157.771 jni4net.j-0.8.6.0.jar

            09.10.2012  18:00         1.122.370 js-rhino-1.7R3.jar

            20.12.2010  10:39           358.295 jsf-api.jar

            20.12.2010  10:46           302.352 jsf-facelets.jar

            20.12.2010  10:39           835.478 jsf-impl.jar

            20.12.2010  10:39            15.071 jta.jar

            28.08.2012  20:29           188.121 jtidy-r938.jar

            20.12.2010  10:39           237.344 junit-4.8.2.jar

            20.12.2010  10:45           772.495 jxl.jar

            09.10.2012  18:00             8.708 keypoint.jar

            26.05.2011  17:51           481.534 log4j-1.2.16.jar

            20.12.2010  10:45           608.039 mvel2.jar

            11.07.2012  14:08           827.942 mysql-connector-java-5.1.21-bin.jar

            16.12.2011  14:09         1.989.430 Notes.jar

            12.06.2012  15:05           107.304 org.eclipse.core.commands_3.6.0.I20110111-0800.jar

            12.06.2012  15:05            75.422 org.eclipse.core.databinding.beans_1.2.100.I20100824-0800.jar

            12.06.2012  15:05           296.142 org.eclipse.core.databinding.observable_1.4.0.I20110222-0800.jar

            12.06.2012  15:05           167.962 org.eclipse.core.databinding.property_1.4.0.I20110222-0800.jar

            12.06.2012  15:05           200.966 org.eclipse.core.databinding_1.4.0.I20110111-0800.jar

            12.06.2012  15:05           105.540 org.eclipse.equinox.common_3.6.0.v20110110.jar

            12.06.2012  15:05           272.602 org.eclipse.rap.jface.databinding_1.5.0.20110926-1702.jar

            12.06.2012  15:05           936.837 org.eclipse.rap.jface_1.4.0.20110201-1534.jar

            12.06.2012  15:05         1.283.199 org.eclipse.rap.rwt.q07_1.4.0.20110201-1534.jar

            12.06.2012  15:05         1.287.861 org.eclipse.rap.rwt_1.4.0.20110201-1534.jar

            04.10.2011  14:19           525.947 ostermillerutils_1_07_00.jar

            20.12.2010  10:45           266.872 picocontainer-2.6.jar

            19.01.2012  17:33           913.435 platform-3.4.0.jar

            14.05.2012  14:24         1.820.323 poi-3.8-20120326.jar

            14.05.2012  14:24         1.186.887 poi-scratchpad-3.8-20120326.jar

            29.07.2011  12:48           539.510 postgresql-8.4-702.jdbc4.jar

            09.10.2012  09:51            93.212 reflections-0.9.5.jar

            20.12.2010  10:45           175.747 richfaces-api-3.3.3.Final.jar

            20.12.2010  10:45         1.566.108 richfaces-impl-3.3.3.Final.jar

            20.12.2010  10:45         4.443.333 richfaces-ui-3.3.3.Final.jar

            17.05.2011  18:48           508.651 standard-1.0.6.jar

            22.05.2012  11:31         1.891.572 swt.jar

            08.08.2012  12:21           753.341 testng-6.7.jar

            20.12.2010  10:39         7.526.292 thirdparty-all.jar

            14.05.2012  14:24        25.706.895 tika-app-1.1.jar

            22.09.2011  18:16            58.471 yjp-controller-api-redist.jar

             

            standalone.xml

            <?xml version='1.0' encoding='UTF-8'?>
            
            
            <server xmlns="urn:jboss:domain:1.2">
            
            
                <extensions>
                    <extension module="org.jboss.as.configadmin"/>
                    <extension module="org.jboss.as.deployment-scanner"/>
                    <extension module="org.jboss.as.ee"/>
                    <extension module="org.jboss.as.jmx"/>
                    <extension module="org.jboss.as.logging"/>
                    <extension module="org.jboss.as.naming"/>
                    <extension module="org.jboss.as.remoting"/>
                    <extension module="org.jboss.as.security"/>
                    <extension module="org.jboss.as.web"/>
                    <extension module="org.jboss.as.webservices"/>
                </extensions>
            
            
                <system-properties>
                    <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="on"/>
                    <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPES" value="text/html,text/xml,text/css,text/javascript,application/x-javascript,application/javascript"/>
                    <property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="5000"/>
                </system-properties>
            
            
                <management>
                    <security-realms>
                        <security-realm name="ManagementRealm">
                            <authentication>
                                <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
                            </authentication>
                        </security-realm>
                        <security-realm name="ApplicationRealm">
                            <authentication>
                                <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
                            </authentication>
                        </security-realm>
                    </security-realms>
                    <management-interfaces>
                        <native-interface security-realm="ManagementRealm">
                            <socket-binding native="management-native"/>
                        </native-interface>
                    </management-interfaces>
                </management>
            
            
                <profile>
                    <subsystem xmlns="urn:jboss:domain:logging:1.1">
                        <console-handler name="CONSOLE">
                            <level name="ERROR"/>
                            <formatter>
                                <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                            </formatter>
                        </console-handler>
                        <periodic-rotating-file-handler name="FILE">
                            <formatter>
                                <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                            </formatter>
                            <file relative-to="jboss.server.log.dir" path="server.log"/>
                            <suffix value=".yyyy-MM-dd"/>
                            <append value="true"/>
                        </periodic-rotating-file-handler>
                        <logger category="com.arjuna">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="org.apache.tomcat.util.modeler">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="sun.rmi">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="jacorb">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="jacorb.config">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="org.jboss">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="org.jboss.seam">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="org.jboss.ws">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="org.hibernate">
                            <level name="ERROR"/>
                        </logger>
                        <logger category="org.ajax4jsf">
                            <level name="ERROR"/>
                        </logger>
                        <root-logger>
                            <level name="ERROR"/>
                            <handlers>
                                <handler name="CONSOLE"/>
                                <handler name="FILE"/>
                            </handlers>
                        </root-logger>
                    </subsystem>
                    <subsystem xmlns="urn:jboss:domain:configadmin:1.0"/>
                    <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
                        <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="500000" deployment-timeout="18000"/>
                    </subsystem>
                    <subsystem xmlns="urn:jboss:domain:ee:1.0"/>
                    <subsystem xmlns="urn:jboss:domain:jmx:1.1">
                        <show-model value="true"/>
                        <remoting-connector/>
                    </subsystem>
                    <subsystem xmlns="urn:jboss:domain:naming:1.1"/>
                    <subsystem xmlns="urn:jboss:domain:remoting:1.1"/>
                    <subsystem xmlns="urn:jboss:domain:security:1.1">
                        <security-domains>
                            <security-domain name="other" cache-type="default">
                                <authentication>
                                    <login-module code="RealmUsersRoles" flag="required">
                                        <module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
                                        <module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
                                        <module-option name="realm" value="ApplicationRealm"/>
                                        <module-option name="password-stacking" value="useFirstPass"/>
                                    </login-module>
                                </authentication>
                            </security-domain>
                            <security-domain name="jboss-web-policy" cache-type="default">
                                <authorization>
                                    <policy-module code="Delegating" flag="required"/>
                                </authorization>
                            </security-domain>
                            <security-domain name="jboss-ejb-policy" cache-type="default">
                                <authorization>
                                    <policy-module code="Delegating" flag="required"/>
                                </authorization>
                            </security-domain>
                        </security-domains>
                    </subsystem>
                    <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
                        <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
                        <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
                        <virtual-server name="default-host" enable-welcome-root="true">
                            <alias name="localhost"/>
                        </virtual-server>
                    </subsystem>
                    <subsystem xmlns="urn:jboss:domain:webservices:1.1">
                        <modify-wsdl-address>true</modify-wsdl-address>
                        <wsdl-host>${jboss.bind.address:0.0.0.0}</wsdl-host>
                        <endpoint-config name="Standard-Endpoint-Config"/>
                        <endpoint-config name="Recording-Endpoint-Config">
                            <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
                                <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
                            </pre-handler-chain>
                        </endpoint-config>
                    </subsystem>
                </profile>
            
            
                <interfaces>
                    <interface name="management">
                        <inet-address value="${jboss.bind.address.management:0.0.0.0}"/>
                    </interface>
                    <interface name="public">
                        <inet-address value="${jboss.bind.address:0.0.0.0}"/>
                    </interface>
                    <interface name="unsecure">
                        <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/>
                    </interface>
                </interfaces>
            
            
                <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
                    <socket-binding name="management-native" interface="management" port="${jboss.management.native.port:8099}"/>
                    <socket-binding name="http" port="8080"/>
                    <socket-binding name="ajp" port="8009"/>
                    <socket-binding name="jmx-connector-registry" interface="public" port="1090"/>
                    <socket-binding name="jmx-connector-server" interface="public" port="1091"/>
                </socket-binding-group>
            
            
            </server>
            
            

             

            jboss-deployment-structure.xml

             

            <jboss-deployment-structure>
               <deployment>
                    <exclusions>
                      <module name="com.sun.jsf-impl" slot="main"/>
                      <module name="javax.faces.api"  slot="main"/>
                      <module name="org.apache.commons.logging" />
                      <module name="org.apache.log4j" />
                      <module name="org.slf4j" />
                    </exclusions>
                    <dependencies>
                      <module name="org.apache.commons.collections" />
                      <module name="org.apache.cxf" slot="main" />
                      <module name="org.dom4j" />
                      <module name="javax.faces.api"  slot="1.2"/>
                    </dependencies>
                </deployment>
            </jboss-deployment-structure>
            
            

             

            web.xml

             

            <?xml version="1.0" encoding="UTF-8"?>
            <web-app id="WebApp_ID" version="2.5"
             xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
             <display-name>FIPOS-Enduser-Application</display-name>
             <context-param>
              <param-name>facelets.DEVELOPMENT</param-name>
              <param-value>false</param-value>
             </context-param>
             <context-param>
              <param-name>facelets.LIBRARIES</param-name>
              <param-value>/WEB-INF/compositions.taglib.xml</param-value>
             </context-param>
             <context-param>
              <param-name>facelets.RESOURCE_RESOLVER</param-name>
              <param-value>com.generali.fipos.seam.config.ResourceResolver</param-value>
             </context-param>
             <context-param>
              <param-name>facelets.SKIP_COMMENTS</param-name>
              <param-value>true</param-value>
             </context-param>
             <context-param>
              <param-name>facelets.VIEW_MAPPINGS</param-name>
              <param-value>*.xhtml</param-value>
             </context-param>
             <!-- ******************************************************************************* 
                                                                                  JSF parameters                                                                                             
             ******************************************************************************* -->
             <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
             </context-param>
            
            
              
             <!-- ******************************************************************************* 
                                                                                  JSF performance issues                                                                                             
             ******************************************************************************* -->
             <context-param>
              <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
              <param-value>true</param-value>
              <!-- need to be deactivated when gzip is active -->
             </context-param>
             <!-- save server memory
                  see: https://wikis.oracle.com/display/GlassFish/JavaServerFacesRI#JavaServerFacesRI-WhatarethedifferencesbetweenServerandClientsidestatesavingandwhatarethebenefits%2Fdrawbacksofeach%3F
                  and: http://blog.codecentric.de/en/2010/08/richfaces-sessions-eating-memory-analysis-of-a-memory-leak/
                  and: https://issues.jboss.org/browse/RF-3878 
                  -->
             <context-param>
              <param-name>com.sun.faces.numberOfViewsInSession</param-name>
              <param-value>1</param-value>
             </context-param>
             <context-param> 
              <param-name>com.sun.faces.numberOfLogicalViews</param-name>
              <param-value>1</param-value>
             </context-param>
             <context-param>
              <param-name>com.sun.faces.compressViewState</param-name>
              <param-value>true</param-value>
             </context-param>
             <!--
             <context-param>
              <param-name>org.ajax4jsf.cache.LRU_MAP_CACHE_SIZE</param-name>
              <param-value>0</param-value>
             </context-param> 
             -->
             <context-param>
              <param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name>
              <param-value>false</param-value>
             </context-param>
             <context-param>
              <param-name>facelets.BUILD_BEFORE_RESTORE</param-name>
              <param-value>false</param-value>
             </context-param>
             <!-- reload XHTML ? --> 
             <context-param>
              <param-name>facelets.REFRESH_PERIOD</param-name>
              <param-value>-1</param-value>
             </context-param>
            
            <!--  JSF RI Performance tuning -->
             <context-param>
              <param-name>com.sun.faces.responseBufferSize</param-name>
              <param-value>5000000</param-value>
             </context-param>
             <context-param>
              <param-name>com.sun.faces.verifyObjects</param-name>
              <param-value>false</param-value>
             </context-param>
             <!-- Allows the JavaScript to be cached -->
             <context-param>
              <param-name>com.sun.faces.externalizeJavaScript</param-name>
              <param-value>true</param-value>
             </context-param>
             <!--
             <context-param>
              <param-name>com.sun.faces.serializationProvider</param-name>
              <param-value>org.jboss.web.jsf.integration.serialization.JBossSerializationProvider</param-value>
             </context-param>
             -->
             <!-- ******************************************************************************* 
                                                                                    Richfaces                                                                                             
             ******************************************************************************* -->
             <context-param>
              <param-name>org.richfaces.CONTROL_SKINNING</param-name>
              <param-value>enable</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.LoadScriptStrategy</param-name>
              <param-value>ALL</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.LoadStyleStrategy</param-name>
              <param-value>NONE</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.SKIN</param-name>
              <param-value>#{skinBeanFipos.skin}</param-value>
             </context-param>
            
             <!-- 
             ******************************************************************************* 
                                                                                  RICHFACES                                                                                               
             ******************************************************************************* -->
             <filter>
              <filter-name>richfaces</filter-name>
              <filter-class>org.ajax4jsf.Filter</filter-class>
              <init-param>
               <param-name>forceparser</param-name>
               <param-value>false</param-value>
              </init-param>
             </filter>
             <!-- ******************************************************************************* 
                                                                                  Seam/Jboss                                                                                              
             ******************************************************************************* -->
             <filter>
              <filter-name>Seam Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
             </filter>
             <filter>
              <filter-name>Seam Exception Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
             </filter>
             <filter>
              <filter-name>Seam Redirect Filter</filter-name>
              <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
             </filter>
             <filter-mapping>
              <filter-name>richfaces</filter-name>
              <servlet-name>Faces Servlet</servlet-name>
             </filter-mapping>
             <filter-mapping>
              <filter-name>Seam Filter</filter-name>
              <url-pattern>*.seam</url-pattern>
             </filter-mapping>
             <filter-mapping>
              <filter-name>Seam Exception Filter</filter-name>
              <url-pattern>*.seam</url-pattern>
             </filter-mapping>
             <filter-mapping>
              <filter-name>Seam Redirect Filter</filter-name>
              <servlet-name>Faces Servlet</servlet-name>
             </filter-mapping>
             <!--     
                      <context-param>
                  <param-name>seam.RESOURCE_RESOLVER</param-name>
                  <param-value>org.jboss.seam.debug.jsf.SeamDebugResourceResolver</param-value>
               </context-param>
             -->
             <listener>
              <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
             </listener>
            
             <!-- only for Webservice JBOSS -->
             <filter>
                      <filter-name>Seam Context Filter</filter-name>
                      <filter-class>org.jboss.seam.web.ContextFilter</filter-class>
             </filter>
             <filter-mapping>
                      <filter-name>Seam Context Filter</filter-name>
                      <url-pattern>/connect/*</url-pattern>
             </filter-mapping>
            
             <!-- *************************************************************************** 
                                                                                  DEBUGGING                                                                                               
             ******************************************************************************* -->
            
                        <context-param>
                                <param-name>org.eclipse.rwt.entryPoints</param-name>
                                <param-value>com.generali.fipos.iss.debug.EntryPoint</param-value>
                      </context-param>
            
            
                      <context-param>
                                <param-name>org.eclipse.rwt.brandings</param-name>
                                <param-value>com.generali.fipos.iss.debug.Branding</param-value>
                      </context-param>
            
            
                      <listener>
                                <listener-class>org.eclipse.rwt.internal.engine.RWTServletContextListener</listener-class>
                      </listener>
            
            
                      <servlet>
                                <servlet-name>rapServlet</servlet-name>
                                <servlet-class>org.eclipse.rwt.internal.engine.RWTDelegate</servlet-class>
                      </servlet>
            
            
                      <servlet-mapping>
                                <servlet-name>rapServlet</servlet-name>
                                <url-pattern>/debug</url-pattern>
                      </servlet-mapping> 
             <!-- *************************************************************************** 
                                                                                  PROFILING                                                                                               
             ******************************************************************************* -->
             <filter>
                                <filter-name>timeFilter</filter-name>
                                <filter-class>com.generali.fipos.iss.debug.TimeFilter</filter-class>
                      </filter>
                      <filter-mapping>
                                <filter-name>timeFilter</filter-name>
                                <url-pattern>*</url-pattern>
                      </filter-mapping> 
            
            
             <!-- ******************************************************************************* 
                                                                                     Allgemein                                                                                            
             ******************************************************************************* -->
             <listener>
              <listener-class>com.generali.fipos.setup.ConfigurationListener</listener-class>
             </listener>
             <servlet>
              <servlet-name>Faces Servlet</servlet-name>
              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
             </servlet>
             <!-- Admin Servlet 
             <servlet>
              <servlet-name>AdminServer</servlet-name>
              <servlet-class>com.generali.fipos.gui.mvc.admin.synch.AdminSynchServices</servlet-class>
             </servlet>
             -->
             <!-- Sync Servlet 
             <servlet>
              <servlet-name>HessianSynchronisationServer</servlet-name>
              <servlet-class>com.generali.fipos.sync.hessian.HessianServer</servlet-class>
             </servlet>
             -->
             <servlet>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
             </servlet>
             <servlet>
              <display-name>AxServlet</display-name>
              <servlet-name>AxServlet</servlet-name>
              <servlet-class>com.generali.fipos.iss.interfaces.print.schriftverkehr.servlet.AxServlet</servlet-class>
             </servlet>
            
             <servlet-mapping>
              <servlet-name>Faces Servlet</servlet-name>
              <url-pattern>*.seam</url-pattern>
             </servlet-mapping>
             <!-- 
             <servlet-mapping>
              <servlet-name>AdminServer</servlet-name>
              <url-pattern>/AdminServer</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
              <servlet-name>HessianSynchronisationServer</servlet-name>
              <url-pattern>/SyncServer</url-pattern>
             </servlet-mapping>
              -->
             <servlet-mapping>
              <servlet-name>Seam Resource Servlet</servlet-name>
              <url-pattern>/seam/resource/*</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
              <servlet-name>AxServlet</servlet-name>
              <url-pattern>/ax</url-pattern>
             </servlet-mapping>
             <session-config>
              <session-timeout>30</session-timeout>
             </session-config>
             <welcome-file-list>
              <welcome-file>index.html</welcome-file>
             </welcome-file-list>
            </web-app>
            
            
            • 3. Re: AS7 getting slower
              Stuart Douglas Master

              Can you build from upstream and see if you still have the problem? There have been quite a few JSF and other performance fixes since 7.1.1.

              • 4. Re: AS7 getting slower
                Rene Gritsch Newbie

                I am really sorry, but what do you mean to build from upstream?

                • 5. Re: AS7 getting slower
                  Stan Silvert Master

                  You have JSF bundled in your WAR?  If you want to do that then you need to use the WAR_BUNDLES_JSF_IMPL context param.  But that's not the best way to do this.  Take JSF jars out of your deployment.

                   

                  You are also trying to use the "1.2" slot for JSF by specifying it in jboss-deployment-structure.xml.  Don't do that.

                   

                  To use the built-in version of JSF 1.2, just put this in your web.xml:

                     <context-param>
                        <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>
                        <param-value>Mojarra-1.2</param-value>
                      </context-param>
                  

                   

                  Stan

                  • 6. Re: AS7 getting slower
                    Stan Silvert Master

                    Rene Gritsch wrote:

                     

                    I am really sorry, but what do you mean to build from upstream?

                    See:Hacking on AS7

                     

                    To get the latest upstream build, go to https://ci.jboss.org/jenkins/job/JBoss-AS-7.x-latest/

                     

                    Stan

                    • 7. Re: AS7 getting slower
                      Stuart Douglas Master

                      You should also be able to download a nightly build from http://hudson.jboss.org/hudson/view/AS7/job/as7-master-build/

                      • 8. Re: AS7 getting slower
                        Rene Gritsch Newbie

                        Okay thanks, I will try both tomorrow and give it a try. But could JSF 1.2 really be the problem? Do you know any similar performance issues?

                        • 9. Re: AS7 getting slower
                          Tomaz Cerar Master

                          Yes, JSF mojarra impl has known performance issues.

                           

                          btw, i would cleanup your deployment a bit.

                           

                          get rid of:

                           

                          20.12.2010  10:46            62.983 activation-1.1.jar <-- part of jdk

                          31.05.2012  16:18            18.432 ant-launcher.jar <-- build tool?

                          31.05.2012  16:18         1.938.849 ant.jar <-- build tool? probably mistake

                          19.12.2011  13:06           610.790 c3p0-0.9.1.2.jar <-- you probably dont need that as you use app server's pooling

                          20.12.2010  10:46           261.809 commons-lang-2.4.jar -- two commons lang?

                          18.02.2011  14:27           284.220 commons-lang-2.6.jar -- two commons lang?

                          26.05.2011  17:51            60.841 commons-logging-1.1.1.jar <-- not needed

                          28.06.2012  13:29         3.796.846 db2jcc4.jar <-- jdbc driver should be installed into server directly not as part of deployment

                          20.12.2010  10:45           134.652 jboss-el.jar <-- afaik not needed anymore, i would try and remove it

                          19.10.2012  17:48           109.121 jboss-vfs-3.1.0.Final.jar <-- this should never be part of deployment

                          20.12.2010  10:45         2.005.783 jgroups.jar <-- this is for clustering, and should not be part of deployment unless your app manualy constructs clusters

                          20.12.2010  10:39            15.071 jta.jar <-- EE api, part of app server, remove it

                          28.08.2012  20:29           188.121 jtidy-r938.jar <-- not needed as runtime

                          20.12.2010  10:39           237.344 junit-4.8.2.jar <-- not needed as runtime

                          26.05.2011  17:51           481.534 log4j-1.2.16.jar <-- you could probably remove it as server will provide it for your

                          11.07.2012  14:08           827.942 mysql-connector-java-5.1.21-bin.jar <-- jdbc driver should not be part of deployment

                          20.12.2010  10:45           266.872 picocontainer-2.6.jar <-- you really use pico container and seam?

                          29.07.2011  12:48           539.510 postgresql-8.4-702.jdbc4.jar <-- jdbc driver should not be part of deployment

                          17.05.2011  18:48           508.651 standard-1.0.6.jar <-- standard API, should not be part of deployment

                          08.08.2012  12:21           753.341 testng-6.7.jar <-- remove it as probably deployment does not do testing

                          20.12.2010  10:39         7.526.292 thirdparty-all.jar <-- this looks fishy, i would remove this and include only deps you really need

                          14.05.2012  14:24        25.706.895 tika-app-1.1.jar <-- I asume this is your app?

                           

                          --

                          tomaz

                          • 11. Re: AS7 getting slower
                            Rene Gritsch Newbie

                            HI,

                             

                            I´ve tried Stan´s hints but no difference. Next I will try latest JBoss AS7 and afterwards clearing our .jar mess.

                            You have JSF bundled in your WAR?  If you want to do that then you need to use the WAR_BUNDLES_JSF_IMPL context param.  But that's not the best way to do this.  Take JSF jars out of your deployment.

                             

                            You are also trying to use the "1.2" slot for JSF by specifying it in jboss-deployment-structure.xml.  Don't do that.

                             

                            To use the built-in version of JSF 1.2, just put this in your web.xml:

                               <context-param>       <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>       <param-value>Mojarra-1.2</param-value>     </context-param> 

                             

                            Stan

                            • 12. Re: AS7 getting slower
                              Rene Gritsch Newbie

                              Update to latest JBoss made no difference too :-/ I will try to clear our .jar mess now a bit.

                              • 13. Re: AS7 getting slower
                                Rene Gritsch Newbie

                                Still no luck with a much smaller set of .jars ... removed most of the list from above, only jboss el was necessary.

                                 

                                Is there a possibilty to get a payed help? I am really out of any ideas, cause we have this problems quiet since the beginng with JBoss AS7 and I really don´t know what to try else.

                                1 2 Previous Next