Uploaded image for project: 'Lucee Development'
  1. LDEV-1587

Lucee server crashes when 1 db connection hangs/fails for a clustered session/client scope

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.2.4.37
    • Fix Version/s: 5.2.6.43
    • Labels:
      None
    • Sprint:
      January 2018 Sprint

      Description

      I had an unreachable Lucee server today, on a machine which is barely used. About 2 requests per minute come in, from pingdom.
      After investigation, I found the following errors in requesttimeout.log (see attached)

      The log says a request timeout occurred at
      {{lucee.runtime.db.DatasourceConnectionPool.getDatasourceConnection(DatasourceConnectionPool.java:77)
      at lucee.runtime.type.scope.storage.IKHandlerDatasource.loadData(IKHandlerDatasource.java:36)
      at lucee.runtime.type.scope.storage.IKStorageScopeSupport.hasInstance(IKStorageScopeSupport.java:213)
      at lucee.runtime.type.scope.ScopeContext.hasExistingCFSessionScope(ScopeContext.java:549)}}
      After this timeout, any next request also times out at
      at lucee.runtime.type.scope.storage.IKStorageScopeSupport.hasInstance(IKStorageScopeSupport.java:213)
      Which makes sense, because the function at IKStorageScopeSupport.java:213 is a synchronized function, so the follow-up requests are waiting forever.

      After a restart of Tomcat, the same thing happened again 70 minutes later! Again, see the (same) attached log.

      The web application in question has this.sessionstorage = "datasource Name"; and this.sessionCluster=true; set in Application.cfc.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              frinky Paul Klinkenberg
            • Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: