Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-3692

Crowd freezes under heavy load

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.7.1
    • 2.7
    • Database
    • None

      I've reproduced it locally, although it is not deterministic and may require some patience.

      Steps to reproduce

      1. Set up a fresh installation of Crowd 2.7.0, connected to a database (I'm using Postgres 9.1, although there are customer reporting problems with MySQL and SQL Server as well).
      2. Once the set up is completed, log in as 'admin'.
      3. Reload (Cmd-R or similar) the home page repeatedly. Do not wait for it to refresh completely in your browser, just reload as fast as you can.

      Observed outcome

      Eventually, the page does not refresh anymore. Crowd freezes.

      Using the Postgres admin tools, we find that there is a client that is locking the cwd_token table, see attached image.

      WORKAROUND

      At this point the workaround is to switch the session storage to in-memory from database storage:
      Session Configuration

      The in-memory storage is explained in more detail on the page linked above.

      If you cannot keep crowd up long enough to access the Administration console, or crowd will simply not finish starting up, follow these steps to modify the value directly in the database:

      1. Shutdown crowd - ensure the pid is stopped
      2. Perform a database backup
      3. Connect to the database
      4. Execute this sql:
        update cwd_property 
        set property_value='false'
        where property_name='database.token.storage.enabled';
      5. Restart Crowd
      6. Validate the session storage is now in-memory by Navigating to Administration > Session Config

              dberrueta Diego Berrueta
              dberrueta Diego Berrueta
              Votes:
              1 Vote for this issue
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: