The RAM usage of F2-210/F4-210 keeps increasing?

TOS system configuration
Post Reply
User avatar
TMzethar
TerraMaster Team
Posts: 1277
Joined: 27 Oct 2020, 16:43

The RAM usage of F2-210/F4-210 keeps increasing?

Post by TMzethar »

Applicable version
TOS 4.x

Applicable models
F2-210, F4-210

Fault phenomenon
Some users have reported that the F2-210 and F4-210 models may experience blockages after about two months of use, and it has been observed that the process called “msgcenter” takes up a lot of RAM.
The “msgcenter” is an important message reminder function. It has been observed that there is a problem of slowly increasing RAM usage.

Solution
You need to set up a scheduled task that restarts the msgcenter process periodically to reset the RAM usage.
1. Log in to SSH and switch to root user
Login method: https://forum.terra-master.com/cn/viewt ... =87&t=1511

Configuration method A
2a. Enter the following command to open the scheduled task configuration file

Code: Select all

vi /etc/crontab/root
3a. Enter "i" to enter the edit mode, and add the following information in a new line at the bottom:

Code: Select all

00 00 * * 0 /etc/init.d/S99msgcenter restart
(The msgcenter service will be restarted at 0:00 every Sunday)

4a. Press "Esc" to exit the editing mode, then press ":", enter "wq", and finally press "Enter" to save and exit the scheduled task configuration file.

Configuration method B
2b. Enter the following command to copy the configuration file "root" of the scheduled task to a directory visible on the TOS web page:
cp /etc/crontab/root /mnt/md0/public/

3b. Download the "root" file in the public folder of TOS file management, open it with a text tool, and add the following information in the new line at the bottom:

Code: Select all

00 00 * * 0 /etc/init.d/S99msgcenter restart
(The msgcenter service is restarted at 0:00 every Sunday)

4b. Delete the "root" file in the public directory of file management, and re-upload the edited "root" file to the public directory of file management.

5b. Enter the following command to replace the old "root" file with the new "root" file:

Code: Select all

cp /mnt/md0/public/root  /etc/crontab/
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
AndyB
Posts: 10
Joined: 08 Aug 2023, 18:51
Great Britain

Re: The RAM usage of F2-210/F4-210 keeps increasing?

Post by AndyB »

I made this change when running TOS 4.2.43 (though noted that the task config file is located in /etc/crontabs/root)

Since upgrading to 4.2.44, I've noticed memory seems to be creeping up after a month of uptime - msgcenter is currently taking about 29% of total memory. I checked that the cron file hadn't been modified during the upgrade, and no, the changes are still there.

Attempting to manually run the restart (by executing "/etc/init.d/S99msgcenter restart") gives an error "/etc/init.d/S99msgcenter: source: line 2: can't open '/etc/profile' "

I'm not a linux guy so don't really know where to go from here, but if would appear that the original fix isn't currently working.
User avatar
TMzethar
TerraMaster Team
Posts: 1277
Joined: 27 Oct 2020, 16:43

Re: The RAM usage of F2-210/F4-210 keeps increasing?

Post by TMzethar »

AndyB wrote: 31 May 2024, 16:18
Please check if the RAM usage has decreased. You can ignore this error message.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Post Reply

Return to “System Configuration”