Page 1 of 1

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

Posted: 04 Sep 2023, 11:02
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/

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

Posted: 31 May 2024, 16:18
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.

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

Posted: 31 May 2024, 17:31
by TMzethar
AndyB wrote: 31 May 2024, 16:18
Please check if the RAM usage has decreased. You can ignore this error message.

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

Posted: 09 Jul 2024, 11:08
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

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

Posted: 09 Jul 2024, 11:10
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

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

Posted: 12 Jul 2024, 08:51
by TMzethar
capnhowyoudo wrote: 09 Jul 2024, 11:10
Incorrect content has been fixed.