Teamviewer memory leak causes periodic reboot
Posted: 14 Apr 2021, 06:21
Hi All,
We have a Revolution Pi installed at a client site with our own custom software acting as a Modbus data concentrator. The Pi was experiencing a periodic reboot, with quite a specific period. A reboot every 710 hours, plus or minus a few hours (that's around 29 days). The site is difficult to access and has no external network connection, so it was difficult monitor. We rewrote our software to try to eliminate any leaks, with no change.
Finally we got to site at a time when we could observe what was going on. Here is the output of "top" after 20 days:
top - 08:43:42 up 20 days, 34 min, 1 user, load average: 3.15, 3.08, 3.08
Tasks: 160 total, 1 running, 159 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.3 us, 1.0 sy, 0.0 ni, 96.4 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st
KiB Mem : 949036 total, 29560 free, 605972 used, 313504 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 265236 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
[other processes elided]
1504 root 20 0 597516 556340 4092 S 0.0 58.6 4:31.90 teamviewer-iot-
[other processes elided]
It seems the "teamviewer-iot-" process is gradually consuming all the memory.
Note that we are not using teamviewer and had the teamviewer service set to disabled on the services web page of the revolution pi.
We attempted to disable teamviewer from the command line like this:
sudo teamviewer-iot-agent disable daemon
sudo teamviewer-iot-agent stop daemon
However, the teamviewer process returned after reboot.
Finally we managed to disable it like this:
sudo systemctl disable teamviewer-iot-mon-agent.service
sudo systemctl stop teamviewer-iot-mon-agent.service
I hope this is helpful to anyone else experiencing this issue.
Perhaps also the teamviewer "disable" switch on the web page could be investigated to make sure it really does disable this service.
Regards,
Matthew
We have a Revolution Pi installed at a client site with our own custom software acting as a Modbus data concentrator. The Pi was experiencing a periodic reboot, with quite a specific period. A reboot every 710 hours, plus or minus a few hours (that's around 29 days). The site is difficult to access and has no external network connection, so it was difficult monitor. We rewrote our software to try to eliminate any leaks, with no change.
Finally we got to site at a time when we could observe what was going on. Here is the output of "top" after 20 days:
top - 08:43:42 up 20 days, 34 min, 1 user, load average: 3.15, 3.08, 3.08
Tasks: 160 total, 1 running, 159 sleeping, 0 stopped, 0 zombie
%Cpu(s): 2.3 us, 1.0 sy, 0.0 ni, 96.4 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st
KiB Mem : 949036 total, 29560 free, 605972 used, 313504 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 265236 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
[other processes elided]
1504 root 20 0 597516 556340 4092 S 0.0 58.6 4:31.90 teamviewer-iot-
[other processes elided]
It seems the "teamviewer-iot-" process is gradually consuming all the memory.
Note that we are not using teamviewer and had the teamviewer service set to disabled on the services web page of the revolution pi.
We attempted to disable teamviewer from the command line like this:
sudo teamviewer-iot-agent disable daemon
sudo teamviewer-iot-agent stop daemon
However, the teamviewer process returned after reboot.
Finally we managed to disable it like this:
sudo systemctl disable teamviewer-iot-mon-agent.service
sudo systemctl stop teamviewer-iot-mon-agent.service
I hope this is helpful to anyone else experiencing this issue.
Perhaps also the teamviewer "disable" switch on the web page could be investigated to make sure it really does disable this service.
Regards,
Matthew