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

The "Xpra Proxy Instance ..." processes not closing correctly. #3327

Closed
Vssblt opened this issue Oct 26, 2021 · 3 comments
Closed

The "Xpra Proxy Instance ..." processes not closing correctly. #3327

Vssblt opened this issue Oct 26, 2021 · 3 comments
Labels
proxy question Further information is requested

Comments

@Vssblt
Copy link

Vssblt commented Oct 26, 2021

What happened

Hi, xpra is great, but I ran into some difficulties.

The processes Xpra Proxy Instance for unix-domain socket: <- /run/user/1001/xpra/d479337cfa05-1040 not exit when xpra exit.
Xpra Proxy Instance was created when xpra start started, and Xpra Proxy Instance never exit, they take up a lot of memory resources. How to fix it? Thanks.

Here is ps aux | grep xpra -i partial result:

msun         343  0.8  0.3 24024472 464344 ?     Sl   04:00   6:27 /usr/bin/python3 /usr/bin/xpra proxy :20 --daemon=yes --bind-tcp=0.0.0.0:12008 --tcp-auth=allow
msun        1046  0.0  0.0 1372688 26248 ?       Sl   04:03   0:36 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1024
msun        5458  0.0  0.0 1569308 18164 ?       Sl   05:45   0:17 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1025
msun        5798  0.0  0.0 1569320 17296 ?       Sl   05:47   0:15 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1025
msun        7122  0.2  0.0 1569588 23244 ?       Sl   05:49   1:28 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1026
msun        7869  0.0  0.0 1306944 15204 ?       Sl   05:49   0:02 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1027
msun        8390  0.0  0.0 1569612 14684 ?       Sl   05:49   0:15 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1025
msun       22405  0.0  0.0 1569368 13880 ?       Sl   06:50   0:25 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1027
msun       29212  0.2  0.0 1307236 13728 ?       Sl   07:20   1:06 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1024
msun       30589  0.0  0.0 1372784 12936 ?       Sl   07:24   0:00 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1028
msun       32559  0.0  0.0 1438332 13176 ?       Sl   07:31   0:02 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1027
msun       33996  0.0  0.0 1569672 12860 ?       Sl   07:34   0:00 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1027
msun       38546  0.0  0.0 1569684 23924 ?       Sl   07:37   0:09 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1027
msun       39504  0.0  0.0 1569696 13764 ?       Sl   07:37   0:10 Xpra Proxy Instance for unix-domain socket:  <- /run/user/1001/xpra/d479337cfa05-1028
msun       40262 18.1  0.0 2541652 110396 ?      SLl  07:40  92:42 /usr/bin/python3 /usr/bin/xpra start :1029 --tcp-auth=password:value=xxxxxxxxxx --daemon=no --start-child=/xxxxx/xxxxx/xxxx/xxxxxxxxx -s xxxxxxxxxxxx -l  -p  -u  -c 1 -d 1029 -h  -H  -o  --exit-with-children

Information

  • xpra version: xpra v4.0.5-r27999
  • OS: Ubuntu 20.04
  • Python version: 3.8
  • ENV: Nvidia-Docker(ubuntu 20.04) + VirtualGL + xpra proxy + xpra start + xpra-html5(for client)
    The xpra proxy and xpra start running in the ubuntu docker container.

xpra proxy command line:

XPRA_CONF_FILENAME=/etc/xpra/xpra_proxy.conf /usr/bin/xpra proxy :20 --daemon=yes --bind-tcp=0.0.0.0:12008 --tcp-auth=allow

xpra start command line:

/usr/bin/python3 /usr/bin/xpra start :1036 --tcp-auth=password:value=************ --daemon=no --start-child="[An Application]"  --exit-with-children

Configuaration file(xpra proxy):

tcp-auth=allow
bandwidth-limit=100000m 
opengl=yes 
speaker=off
encoding=jpg
notifications=no 
system-tray=no 
webcam=no 
mousewheel=on 
#min-speed=99 
min-quality=88
auto-refresh-delay=0 
title="XXXXXXXXXXXXXX" 
mdns=no 
exit-with-children=yes 
video-scaling=off
exec-wrapper=/mnt/tmpfs/vglrun/vglrun -d :5 --
env=XPRA_CLOSE_GTK_DISPLAY=0 XDG_RUNTIME_DIR=/tmp XPRA_MOUSE_DELAY=1 XPRA_XDG_EXPORT_ICONS=0 GDK_BACKEND=x11 NO_AT_BRIDGE=1 XPRA_XDG_LOAD_GLOB=0 XPRA_UINPUT=0 XPRA_MENU_ICONS=0 XPRA_ICON_OVERLAY=0 XPRA_EXPORT_ICON_DATA=0 XPRA_EXPORT_XDG_MENU_DATA=0
sharing=no
no-printing
printing=no
file-size-limit=10000M

Configuaration file(xpra start):

tcp-auth=allow
bandwidth-limit=100000m
opengl=yes
speaker=off
encoding=jpg
notifications=no
system-tray=no
webcam=no
mousewheel=on
min-speed=99
min-quality=88
auto-refresh-delay=0
title="XXXXXXXXXXXX"
mdns=no
exit-with-children=yes
video-scaling=off
exec-wrapper=/opt/VirtualGL/bin/vglrun -d :5 --
env=XPRA_CLOSE_GTK_DISPLAY=0 XDG_RUNTIME_DIR=/tmp XPRA_MOUSE_DELAY=1 XPRA_XDG_EXPORT_ICONS=0 GDK_BACKEND=x11 NO_AT_BRIDGE=1 XPRA_XDG_LOAD_GLOB=0 XPRA_UINPUT=0 XPRA_MENU_ICONS=0 XPRA_ICON_OVERLAY=0 XPRA_EXPORT_ICON_DATA=0 XPRA_EXPORT_XDG_MENU_DATA=0
sharing=yes
no-printing
printing=no
server-idle-timeout=30
idle-timeout=10800
terminate-children=yes
file-size-limit=10000000
clipboard=default
@totaam
Copy link
Collaborator

totaam commented Oct 26, 2021

xpra version: xpra v4.0.5-r27999

This version is not supported. Try an up to date version.

You may be able to get more details by running the proxy with -d proxy.
The server should send a message to the proxy when it terminates, which should take care of exiting the proxy instance.


A lot of your settings are nonsensical: no-printing, printing=no
ie this has zero effect on the proxy: mousewheel=on
And this is the wrong spelling, whilst also being a bad idea: encoding=jpg
Does this even work? env=XPRA_CLOSE_GTK_DISPLAY=0 XDG_RUNTIME...
etc...

@totaam totaam added proxy question Further information is requested labels Oct 26, 2021
@Vssblt
Copy link
Author

Vssblt commented Oct 28, 2021

Thanks for the reply, I solve this issue using newer version xpra v4.2.2-r0.

@Vssblt Vssblt closed this as completed Oct 28, 2021
@totaam
Copy link
Collaborator

totaam commented Oct 28, 2021

This is a common issue with the Ubuntu packages:
https://github.com/Xpra-org/xpra/wiki/Distribution-Packages-Ubuntu

FYI: at time of writing, the current version for Ubuntu 20.04 is xpra 4.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proxy question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants