Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Darkscribes Community

  1. Home
  2. Uncategorized
  3. Increased memory consumption after upgrading from v3.7.x to v4.2

Increased memory consumption after upgrading from v3.7.x to v4.2

Scheduled Pinned Locked Moved Uncategorized
8 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L This user is from outside of this forum
    L This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

    Hey, so after the upgrade the memory consumption has been creeping up at a fairly steady rate and exceeding 1GB of memory. Is this something to be expected from the version upgrade? Or could it be due to our own changes / plugins we have? Or due to scrapers perhaps?

    Upgrade happened on Monday 14th and before that the memory consumption was fairly steady at around 500MB. After the upgrade the memory consumption has been steadily going up during the day as seen in the pictures:

    Screenshot when the sudden increase was noticed:
    9119758a-4530-497e-a570-8f11d5d17015-image.png

    Here is last 7 days: (the falling edges are due to daily restart)
    a180780e-92ff-437f-bda7-b50c5265704b-image.png

    Screenshot from the /admin/development/info on the 23rd when it started also using swap.
    bdf69f0e-459b-4239-96f6-d8b89b7e7834-image.png

    Active plugins:
    * [email protected] (installed, enabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, disabled)
    * [email protected] (installed, enabled)
    * [email protected] (installed, enabled)

    Nginx is being used to serve static assets and the config is the same as it was before the upgrade.

    Setup:
    Mongodb Atlas M40
    Redis is Heroku's own key value store premium 2
    Heroku -> 4 dynos (Standard-2X variant)
    In one dyno we have nginx + nodebb

    Any help would be greatly appreciated!
    Thanks in advance.

    baris@community.nodebb.orgB L julian@community.nodebb.orgJ 3 Replies Last reply
    0
    • L [email protected]

      Hey, so after the upgrade the memory consumption has been creeping up at a fairly steady rate and exceeding 1GB of memory. Is this something to be expected from the version upgrade? Or could it be due to our own changes / plugins we have? Or due to scrapers perhaps?

      Upgrade happened on Monday 14th and before that the memory consumption was fairly steady at around 500MB. After the upgrade the memory consumption has been steadily going up during the day as seen in the pictures:

      Screenshot when the sudden increase was noticed:
      9119758a-4530-497e-a570-8f11d5d17015-image.png

      Here is last 7 days: (the falling edges are due to daily restart)
      a180780e-92ff-437f-bda7-b50c5265704b-image.png

      Screenshot from the /admin/development/info on the 23rd when it started also using swap.
      bdf69f0e-459b-4239-96f6-d8b89b7e7834-image.png

      Active plugins:
      * [email protected] (installed, enabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, disabled)
      * [email protected] (installed, enabled)
      * [email protected] (installed, enabled)

      Nginx is being used to serve static assets and the config is the same as it was before the upgrade.

      Setup:
      Mongodb Atlas M40
      Redis is Heroku's own key value store premium 2
      Heroku -> 4 dynos (Standard-2X variant)
      In one dyno we have nginx + nodebb

      Any help would be greatly appreciated!
      Thanks in advance.

      baris@community.nodebb.orgB This user is from outside of this forum
      baris@community.nodebb.orgB This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      I would disable the daily restarts to see if the memory usage keeps going up or stabilizes.

      1 Reply Last reply
      0
      • L [email protected]

        Hey, so after the upgrade the memory consumption has been creeping up at a fairly steady rate and exceeding 1GB of memory. Is this something to be expected from the version upgrade? Or could it be due to our own changes / plugins we have? Or due to scrapers perhaps?

        Upgrade happened on Monday 14th and before that the memory consumption was fairly steady at around 500MB. After the upgrade the memory consumption has been steadily going up during the day as seen in the pictures:

        Screenshot when the sudden increase was noticed:
        9119758a-4530-497e-a570-8f11d5d17015-image.png

        Here is last 7 days: (the falling edges are due to daily restart)
        a180780e-92ff-437f-bda7-b50c5265704b-image.png

        Screenshot from the /admin/development/info on the 23rd when it started also using swap.
        bdf69f0e-459b-4239-96f6-d8b89b7e7834-image.png

        Active plugins:
        * [email protected] (installed, enabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, disabled)
        * [email protected] (installed, enabled)
        * [email protected] (installed, enabled)

        Nginx is being used to serve static assets and the config is the same as it was before the upgrade.

        Setup:
        Mongodb Atlas M40
        Redis is Heroku's own key value store premium 2
        Heroku -> 4 dynos (Standard-2X variant)
        In one dyno we have nginx + nodebb

        Any help would be greatly appreciated!
        Thanks in advance.

        L This user is from outside of this forum
        L This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        I can't disable it. The auto restart is a feature from our hosting provider

        1 Reply Last reply
        0
        • L [email protected]

          Hey, so after the upgrade the memory consumption has been creeping up at a fairly steady rate and exceeding 1GB of memory. Is this something to be expected from the version upgrade? Or could it be due to our own changes / plugins we have? Or due to scrapers perhaps?

          Upgrade happened on Monday 14th and before that the memory consumption was fairly steady at around 500MB. After the upgrade the memory consumption has been steadily going up during the day as seen in the pictures:

          Screenshot when the sudden increase was noticed:
          9119758a-4530-497e-a570-8f11d5d17015-image.png

          Here is last 7 days: (the falling edges are due to daily restart)
          a180780e-92ff-437f-bda7-b50c5265704b-image.png

          Screenshot from the /admin/development/info on the 23rd when it started also using swap.
          bdf69f0e-459b-4239-96f6-d8b89b7e7834-image.png

          Active plugins:
          * [email protected] (installed, enabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, disabled)
          * [email protected] (installed, enabled)
          * [email protected] (installed, enabled)

          Nginx is being used to serve static assets and the config is the same as it was before the upgrade.

          Setup:
          Mongodb Atlas M40
          Redis is Heroku's own key value store premium 2
          Heroku -> 4 dynos (Standard-2X variant)
          In one dyno we have nginx + nodebb

          Any help would be greatly appreciated!
          Thanks in advance.

          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          Are you using the ActivityPub functionality? It might be related to that if only because that's what's new (among other smaller items) in v4.

          If you toggle the global activitypub switch off, does that make memory usage stabilize?

          Keep in mind that since you upgraded, ActivityPub is automatically disabled, so perhaps this is unrelated.

          1 Reply Last reply
          0
          • L This user is from outside of this forum
            L This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            ActivityPub hasn't been touched at all so it has been disabled the whole time.

            1 Reply Last reply
            0
            • L This user is from outside of this forum
              L This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              On a second note, is it normal behavior that redis has gotten 440k new keys in 4 days ? In last 7 days there has been less than 100 new topics created.. What kind of data is stored there? I guess sessions but what else?

              julian@community.nodebb.orgJ 1 Reply Last reply
              0
              • baris@community.nodebb.orgB This user is from outside of this forum
                baris@community.nodebb.orgB This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                Are you using redis only or mongodb + redis? If redis only all forum data and sessions are stored there.

                You can use redis insight to see keys. Click the tree view to group them by namespace.

                1f073255-8d49-481c-82ac-3ef712d9fc78-image.png

                1 Reply Last reply
                0
                • L [email protected]

                  On a second note, is it normal behavior that redis has gotten 440k new keys in 4 days ? In last 7 days there has been less than 100 new topics created.. What kind of data is stored there? I guess sessions but what else?

                  julian@community.nodebb.orgJ This user is from outside of this forum
                  julian@community.nodebb.orgJ This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #8

                  @lassesuom my guess is they're sess:* keys. They can balloon up if you have lots of guests *cough* AI scrapers.

                  There used to be logic so that guests didn't receive a session key (since they didn't really need one for regular browsing) but it could be that that detection no longer works.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups