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

client side memory leak #3123

Closed
karlkleinpaste opened this issue May 10, 2021 · 3 comments
Closed

client side memory leak #3123

karlkleinpaste opened this issue May 10, 2021 · 3 comments
Labels
bug Something isn't working server

Comments

@karlkleinpaste
Copy link

i had noticed that my client system's main xpra process was growing severely over the course of a day. so i started a shell one-liner to sample it every half hour. it grows to many Gbytes and, left unattended, will succumb to the OOM killer. observe %MEM+VSZ+RSS.

installed with python3 ./setup.py install as of git pull early this morning, but i've noticed it happening for a while. about a dozen windows were open, and not opening new ones during this time, nor closing any. (bunch of terminals, couple xemacs, zenity, nvidia-settings, ...)

Mon May 10 07:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.1  7.2 5037996 3282320 pts/0 Sl   May07  90:31 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 07:50:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.2  9.0 5859316 4103728 pts/0 Sl   May07  92:16 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 08:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.2  9.4 6036796 4281904 pts/0 Sl   May07  92:57 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 08:50:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.2  9.6 6150800 4338560 pts/0 Sl   May07  93:38 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 09:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.2  9.8 6182940 4429340 pts/0 Sl   May07  94:16 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 09:50:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.2 10.2 6426304 4622008 pts/0 Sl   May07  95:00 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 10:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.2 10.9 6749452 4940036 pts/0 Sl   May07  95:59 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 10:50:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.3 16.9 9488156 7677376 pts/0 Rl   May07 100:42 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 11:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.4 19.9 10844320 9027892 pts/0 Sl  May07 106:40 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 11:50:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.5 23.0 12205196 10396988 pts/0 Sl May07 112:22 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 12:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.6 25.6 13415244 11600440 pts/0 Sl May07 118:24 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 12:50:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.7 30.3 15503772 13700676 pts/0 Sl May07 124:21 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 13:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.8 33.7 17064076 15250796 pts/0 Sl May07 130:06 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 13:50:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  2.9 37.5 18777648 16972792 pts/0 Sl May07 135:51 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 14:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  3.0 39.5 19691312 17883036 pts/0 Sl May07 139:26 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 14:50:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  3.0 40.4 20022820 18270112 pts/0 Sl May07 141:10 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal

Mon May 10 15:20:53 EDT 2021
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
kkleinpa 22787  3.0 43.8 21618876 19803616 pts/0 Sl May07 142:52 /usr/bin/python3 /usr/local/bin/xpra start ssh://chqkkleinpa/43 --start-child=vglrun mate-terminal
@totaam
Copy link
Collaborator

totaam commented May 11, 2021

Please provide more details as per https://github.com/Xpra-org/xpra/wiki/Reporting-Bugs

Everything is relevant until proven otherwise. ie: #2730 (comment), #1662, #535 (comment) (a codec), etc.

@totaam totaam added bug Something isn't working server labels May 17, 2021
@totaam
Copy link
Collaborator

totaam commented Jul 13, 2021

Could also be something like mcfletch/pyopengl#47
So it's worth trying to disable every feature to see if any of them stop the leak.

@karlkleinpaste
Copy link
Author

i've just realized that i haven't seen this happen in a while. i use "git pull" + rebuild semi-regularly, so perhaps whatever problem has been solved elsehow. if you wish to close this, feel free.

@totaam totaam closed this as completed Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server
Projects
None yet
Development

No branches or pull requests

2 participants