Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High RAM usage with increasing uptime #46

Closed
kneekoo opened this issue Mar 18, 2020 · 8 comments
Closed

High RAM usage with increasing uptime #46

kneekoo opened this issue Mar 18, 2020 · 8 comments

Comments

@kneekoo
Copy link

kneekoo commented Mar 18, 2020

After a 25-day uptime I noticed that mintreport-tray took 682MB RAM under Mint 19.3 Cinnamon 64-bit. I terminated it and started the program again from the menu and it only took 49 MB RAM.

In the meantime I rebooted my PC after a kernel update. But in the future, with a high uptime, what kind of data could I offer here?

@petroid
Copy link

petroid commented May 7, 2020

I guess I'm having the same issue.

peter@WS47-0005028299:~$ inxi -It m1
Processes: Memory top: 1
1: mem: 641.6 MiB (8.2%) command: mintreport-tray pid: 6171
Info: Processes: 313 Uptime: 24d 7m Memory: 7.62 GiB used: 3.35 GiB (44.0%) Shell: bash inxi: 3.0.32

System: Host: WS47-0005028299 Kernel: 5.3.0-46-generic x86_64 bits: 64 compiler: gcc v: 7.5.0
Desktop: Cinnamon 4.4.8 wm: muffin dm: LightDM Distro: Linux Mint 19.3 Tricia
base: Ubuntu 18.04 bionic

@dasta400
Copy link

dasta400 commented May 25, 2020

I also have the same issue.

My server is been up for 44 days and mintreport is now using almost 2GB of RAM

Processes: Memory top: 1
1: mem: 1905.4 MiB (24.3%) command: mintreport-tray pid: 2167
Info: Processes: 237 Uptime: 44d 22h 53m Memory: 7.65 GiB used: 5.62 GiB (73.4%) Init: systemd runlevel: 5 Shell: bash inxi: 3.0.32

OS: Linux Mint 19.3 Cinnamon 4.4.8
Linux kernel: 5.3.0-46-generic

@westcoastsuccess
Copy link

+1. Here's my memory usage after 14 days uptime:

Linux Mint 19.2 Tina / MATE 1.22.0 with Linux kernel 5.3.0-51 lowlatency x86_64

Process Name: mintreport-tray
Status: Sleeping
Memory: 818.9 MB
Virtual Memory: 1.3 GB
Resident Memory: 818.9 MB
Started: 16 May 05:07
Priority: Normal

Can this be safely killed?

@dasta400
Copy link

Can this be safely killed?

I did and my system is still running fine.

@kneekoo
Copy link
Author

kneekoo commented May 30, 2020

Yes, it can be killed. It's just a program that does periodic checks on certain things, so you can kill it and start it back up again, no problem.

@westcoastsuccess
Copy link

Thanks @asmCcoder & @kneekoo !

@oliver
Copy link

oliver commented Sep 5, 2021

I think much of the leaked memory is tied up in the packages_for_modalias.cache_maps map, in https://github.com/tseliot/ubuntu-drivers-common/blob/master/UbuntuDrivers/detect.py#L156 . It looks like a new apt.Cache object is added to that map each time mintreport does it hourly check.

I didn't find an easy way to fix this, though. The whole detect module probably was never intended to be used in a long-running process?

The most robust solution for this leak would probably be to run the actual checks (ie. the modules from https://github.com/linuxmint/mintreport/tree/master/usr/share/linuxmint/mintreport/reports/) in separate, short-lived processes. That way any memory leaks from the reports would be gone when the hourly check is finished.

@mtwebster
Copy link
Member

fixed by: 13704b7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants