Increased memory consumption after upgrading from v3.7.x to v4.2
lassesuom @lassesuom@community.nodebb.org
<p>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?</p> <p>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:</p> <p>Screenshot when the sudden increase was noticed:<br /> <img src="https://community.nodebb.org/assets/uploads/files/1745932381459-9119758a-4530-497e-a570-8f11d5d17015-image-resized.png" alt="9119758a-4530-497e-a570-8f11d5d17015-image.png" /></p> <p>Here is last 7 days: (the falling edges are due to daily restart)<br /> <img src="https://community.nodebb.org/assets/uploads/files/1745932546927-a180780e-92ff-437f-bda7-b50c5265704b-image-resized.png" alt="a180780e-92ff-437f-bda7-b50c5265704b-image.png" /></p> <p>Screenshot from the /admin/development/info on the 23rd when it started also using swap.<br /> <img src="https://community.nodebb.org/assets/uploads/files/1745935179946-bdf69f0e-459b-4239-96f6-d8b89b7e7834-image.png" alt="bdf69f0e-459b-4239-96f6-d8b89b7e7834-image.png" /></p> <p>Active plugins:<br /> * nodebb-plugin-s3-uploads@3.0.5 (installed, enabled)<br /> * nodebb-plugin-2factor@7.5.9 (installed, disabled)<br /> * nodebb-plugin-composer-default@10.2.47 (installed, enabled)<br /> * nodebb-plugin-dbsearch@6.2.13 (installed, enabled)<br /> * nodebb-plugin-emoji@6.0.2 (installed, disabled)<br /> * nodebb-plugin-emoji-android@4.1.1 (installed, disabled)<br /> * nodebb-plugin-gravatar@4.0.0 (installed, enabled)<br /> * nodebb-plugin-markdown@13.1.1 (installed, enabled)<br /> * nodebb-plugin-mentions@4.7.1 (installed, enabled)<br /> * nodebb-plugin-poll@3.2.5 (installed, disabled)<br /> * nodebb-plugin-question-and-answer@1.2.7 (installed, enabled)<br /> * nodebb-plugin-spam-be-gone@2.3.1 (installed, enabled)<br /> * nodebb-plugin-sso-custom@1.0.0 (installed, enabled)<br /> * nodebb-plugin-web-push@0.7.3 (installed, disabled)<br /> * nodebb-plugin-write-api-custom@5.8.12 (installed, enabled)<br /> * nodebb-rewards-essentials@1.0.1 (installed, enabled)<br /> * nodebb-theme-harmony@2.0.40 (installed, disabled)<br /> * nodebb-theme-lavender@7.1.18 (installed, disabled)<br /> * nodebb-theme-peace@2.2.39 (installed, disabled)<br /> * nodebb-theme-persona@14.0.16 (installed, disabled)<br /> * nodebb-theme-custom@1.0.0 (installed, enabled)<br /> * nodebb-widget-essentials@7.0.36 (installed, enabled)</p> <p>Nginx is being used to serve static assets and the config is the same as it was before the upgrade.</p> <p>Setup:<br /> Mongodb Atlas M40<br /> Redis is Heroku's own key value store premium 2<br /> Heroku -> 4 dynos (Standard-2X variant)<br /> In one dyno we have nginx + nodebb</p> <p>Any help would be greatly appreciated!<br /> Thanks in advance.</p>
Read more →