Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2158

web-explorer is leaking connections

    XMLWordPrintable

Details

    Description

      Each login to the web-explorer is consuming a connection from the connection pool but not released afterwards (e.g. after logout).

      The repository selection is done via JNDI-URL.

      The following statistics are read from the MBean jboss.jca:service=ManagedConnectionFactory,name=/jcr/datastore
      Before login:

      --------------------------------------------------------------
       Available Connections Count:9
       Max Connections In Use Count:1
       Connections Destroyed Count:1
       Connections In Use Count:0
       Total Block Time:0
       Average Block Time For Sub Pool:0
       Maximum Wait Time For Sub Pool:0
       Total Timed Out Connections:0
      --------------------------------------------------------------
      

      After login:

      --------------------------------------------------------------
       Available Connections Count:8
       Max Connections In Use Count:1
       Connections Destroyed Count:2
       Connections In Use Count:1
       Total Block Time:0
       Average Block Time For Sub Pool:0
       Maximum Wait Time For Sub Pool:1
       Total Timed Out Connections:0
      --------------------------------------------------------------
      

      After logout:

      --------------------------------------------------------------
       Available Connections Count:8
       Max Connections In Use Count:1
       Connections Destroyed Count:2
       Connections In Use Count:1
       Average Block Time For Sub Pool:0
       Maximum Wait Time For Sub Pool:1
       Total Timed Out Connections:0
      --------------------------------------------------------------
      

      Also for each login the following exception and warning is logged:

      14:06:21,060 ERROR [STDERR] org.modeshape.web.jcr.NoSuchRepositoryException: No repository 'java:jcr/datastore' was found.
      14:06:21,061 ERROR [STDERR] 	at org.modeshape.web.jcr.RepositoryManager.getRepository(RepositoryManager.java:142)
      14:06:21,061 ERROR [STDERR] 	at org.modeshape.web.server.JcrServiceImpl.login(JcrServiceImpl.java:93)
      14:06:21,061 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:06:21,061 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      14:06:21,062 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:06:21,063 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
      14:06:21,063 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
      14:06:21,063 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
      14:06:21,063 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
      14:06:21,063 ERROR [STDERR] 	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
      14:06:21,063 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      14:06:21,063 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      14:06:21,063 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      14:06:21,063 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      14:06:21,063 ERROR [STDERR] 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      14:06:21,063 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      14:06:21,063 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      14:06:21,063 ERROR [STDERR] 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      14:06:21,064 ERROR [STDERR] 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      14:06:21,064 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
      14:06:21,064 ERROR [STDERR] 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
      14:06:21,064 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      14:06:21,064 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      14:06:21,064 ERROR [STDERR] 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      14:06:21,064 ERROR [STDERR] 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      14:06:21,064 ERROR [STDERR] 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      14:06:21,064 ERROR [STDERR] 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      14:06:21,064 ERROR [STDERR] 	at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
      14:06:21,064 ERROR [STDERR] 	at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
      14:06:21,064 ERROR [STDERR] 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      14:06:21,064 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      14:06:21,064 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
      14:06:21,064 ERROR [STDERR] 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
      14:06:21,064 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:662)
      14:06:21,074 INFO  [CachedConnectionManager] Could not find a close method on alleged connection objects.  Please close your own connections.
      

      Attachments

        Activity

          People

            oleg.kulikov Oleg Kulikov (Inactive)
            nl_jira Niels Lippke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: