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

TOS system configuration
Post Reply
User avatar
TMzethar
TM Support
Posts: 2819
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/crontabs/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 08 * * * /etc/init.d/S99msgcenter restart
(The msgcenter service will be restarted at 8:00 every day)

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/crontabs/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 08 * * * /etc/init.d/S99msgcenter restart
(The msgcenter service will be restarted at 8:00 every day)

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/crontabs/
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: 20
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
TM Support
Posts: 2819
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)
User avatar
capnhowyoudo
Posts: 28
Joined: 08 Mar 2022, 12:52
United States of America

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

Post by capnhowyoudo »

AndyB wrote: 31 May 2024, 16:18 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.
You can check the service by running the following

Code: Select all

sudo service S99msgcenter status
you can manually restart the service with the following command

Code: Select all

sudo service S99msgcenter restart
Also the path is incorrect that was provided for "Configuration method A" it should be the following

Code: Select all

sudo vi /etc/crontabs/root
Last edited by capnhowyoudo on 09 Jul 2024, 11:16, edited 2 times in total.
TNAS F4-210
TOS 4.2.43-2203011629
4X WD Red Plus 8TB (RAID5)
User avatar
capnhowyoudo
Posts: 28
Joined: 08 Mar 2022, 12:52
United States of America

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

Post by capnhowyoudo »

TMzethar wrote: 31 May 2024, 17:31
The path should be

Code: Select all

/etc/crontabs/root
and not

Code: Select all

/etc/crontab/root
TNAS F4-210
TOS 4.2.43-2203011629
4X WD Red Plus 8TB (RAID5)
User avatar
TMzethar
TM Support
Posts: 2819
Joined: 27 Oct 2020, 16:43

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

Post by TMzethar »

capnhowyoudo wrote: 09 Jul 2024, 11:10
Incorrect content has been fixed.
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”