Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10714

Introduce SSH session limit

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 5.10.0
    • SSH
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Introduced property plugin.ssh.session.max (default value is 250) to limit to the number of concurrent SSH sessions which can be opened in the system.

      This limit applies to each node in a Data Center setup, so each node will be able to serve plugin.ssh.session.max sessions concurrently.

      Each SSH session has a memory footprint which depends on the commands which are being executed (among other things). In certain situations, a large enough number of sessions, could eventually exhaust the heap space and produce an OutOfMemoryError. This limit adds another protection so that on load spikes the system's performance and reliability will not suffer.

      Users who encounter this limit should see a message similar to this:

      Received disconnect from ::1 port 7999:12: Too many concurrent connections (250) - max. allowed: 250
      Disconnected from ::1 port 7999
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      

      Attachments

        Issue Links

          Activity

            People

              jpalacios Juan Palacios (Inactive)
              jpalacios Juan Palacios (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: