Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-9560

Document how to set heap size for Elastic Search process

    XMLWordPrintable

    Details

    • UIS:
      11
    • Feedback Policy:
      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

      Problem

      Despite specifying the heap size of Bitbucket Server, Elasticsearch heap size can not be specified.
      Therefore, the Elasticsearch process consumes a large amount of memory.

      Expected

      Command line arguments of Elastisearch process contains about heapsize option(Xms or Xmx) that specified as Bitbucket Server process.

      Actual

      Command line arguments of Elastisearch process did not contains about heapsize option(Xms or Xmx).

      Workaround

      Setting these variables in BITBUCKET_INSTALL/bin/start-search.sh.

      export ES_MIN_MEM=1024m
      export ES_MAX_MEM=1024m
      export ES_DIRECT_SIZE=1024m
      

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            y.okazawa y_okazawa
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated: