Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-69745

Memory not entirely used, Mongo uses swap

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      Red Hat Enterprise Linux Server release 7.6 (Maipo)
      Mongodb with 3 replicaset
    • ALL
    • Hide

      Red Hat Enterprise Linux Server release 7.6 (Maipo)
      Mongodb with 3 replicaset

      Show
      Red Hat Enterprise Linux Server release 7.6 (Maipo) Mongodb with 3 replicaset

      On a production 3 nodes mongodb replicaset we're observing that the db is using only 60% of the ram, then it uses the swap memory. This causes severe slowness at application level.

      Parameter "cacheSize" is not set: from the docs we read that by default mongo will use 50% of the avalaible ram minus 1Gb.

      OS swappiness parameter is set to 1.

      We see that is suggested to avoid increasing WT internal cache size above its default value.

      Would it be ok to increase it anyway, in this case?
      Otherwise, increasing server ram could be a solution?

       

      Thank you.

        1. image-2022-09-27-05-51-56-470.png
          322 kB
          Chris Kelly
        2. image-2022-09-27-05-58-57-580.png
          322 kB
          Chris Kelly

            Assignee:
            chris.kelly@mongodb.com Chris Kelly
            Reporter:
            desk@sorint.it Sorint Lab
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: