kasmtech / KasmVNC

Modern VNC Server and client, web based and secure
GNU General Public License v2.0
3.5k stars 311 forks source link

Memory leak in kasmxproxy. #257

Closed tan9710630 closed 1 month ago

tan9710630 commented 4 months ago

Describe the bug Memory leak in kasmxproxy. image

System Description

PRETTY_NAME="Deepin 23"
NAME="Deepin"
VERSION_ID="23"
VERSION="23"
ID=Deepin
HOME_URL="https://www.deepin.org/"
BUG_REPORT_URL="https://bbs.deepin.org"
VERSION_CODENAME=beige

Linux deepin 6.6.25-amd64-desktop-hwe #23.01.00.25 SMP PREEMPT_DYNAMIC Wed Apr 10 21:20:25 CST 2024 x86_64 GNU/Linux

KasmVNC Details No special packages were installed.

Xvnc KasmVNC 1.3.1.230e50f7b89663316c70de7b0e3db6f6b9340489 - built Mar 15 2024 09:26:11
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12010000, The X.Org Foundation

To Reproduce

  1. run shell vncserver :1 && kasmxproxy -v:1
  2. The memory usage of kasmxproxy has started to continuously rise. Memory usage increases by about 1GB per hour.

Expected behavior The memory usage remains at a stable level.

HybridAir commented 3 months ago

I'm experiencing the same issue as of today. I'm running KasmVNC as part of a https://github.com/selkies-project/docker-nvidia-glx-desktop docker container.

PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
Linux lychee 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Xvnc KasmVNC 1.3.1.230e50f7b89663316c70de7b0e3db6f6b9340489 - built Mar 15 2024 09:25:50
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12008000, The X.Org Foundation
clbr commented 3 months ago

Confirmed, fix pending.

mmcclaskey commented 3 months ago

@HybridAir Here is a build fixed build for Ubuntu 24.04 x86, if you want to give it a try.

https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/cc1bb0c79f10a88e28a25a9c58a60fb0a356c39e/kasmvncserver_noble_1.3.2_bugfix_xproxy-memleak_cc1bb0_amd64.deb

HybridAir commented 3 months ago

@mmcclaskey thank you! I've got it installed and running now, I'll let you know if the issue returns.

ehfd commented 3 months ago

@mmcclaskey I'm sorry, but as a downstream container maintainer, when will the new release be out? It's three and a half months after Ubuntu 24.04 came out and at least KasmVNC can use a release.

mmcclaskey commented 3 months ago

A new release will be out in the approximately 1 to 3 weeks.

ehfd commented 3 months ago

Thank you. @mmcclaskey

mmcclaskey commented 1 month ago

https://github.com/kasmtech/KasmVNC/releases/tag/v1.3.2