Giter Club home page Giter Club logo

Comments (6)

Place1 avatar Place1 commented on August 29, 2024

Interesting. How many devices were connected at the time of the crash (best guess will do).

from wg-access-server.

infused-kim avatar infused-kim commented on August 29, 2024

It would be 2 or 3 at most. Most likely 1 or 2.

from wg-access-server.

Place1 avatar Place1 commented on August 29, 2024

I haven't been able to reproduce this one. I've been running wg-access-server for months now without a crash.

From the trace it looks like a leak in wireguard-go but i'm not sure tbh.

from wg-access-server.

Place1 avatar Place1 commented on August 29, 2024

I'm going to close this because i can't really action anything until it's reproducible. :(

from wg-access-server.

analogue avatar analogue commented on August 29, 2024

Having the same issue:

 63266 time="2020-07-30T09:41:36-05:00" level=info msg="starting wireguard server on 0.0.0.0:REDACTED" file="main.go:50"
 63267 time="2020-07-30T09:41:36-05:00" level=info msg="wireguard VPN network is REDACTED/24" file="main.go:60"
 63268 time="2020-07-30T09:41:36-05:00" level=info msg="starting dns server on 0.0.0.0:53 with upstreams: REDACTED" file="serv
 63269 time="2020-07-30T09:41:36-05:00" level=info msg="storing data in /data" file="contracts.go:55"
 63270 time="2020-07-30T09:41:36-05:00" level=info msg="web ui listening on 0.0.0.0:REDACTED" file="main.go:171"
 63271 runtime: program exceeds 10000-thread limit
 63272 fatal error: thread exhaustion
 63273 
 63274 runtime stack:
 63275 runtime.throw(0xda9c41, 0x11)
 63276         /usr/local/go/src/runtime/panic.go:774 +0x72
 63277 runtime.checkmcount()
 63278         /usr/local/go/src/runtime/proc.go:600 +0xac
 63279 runtime.mcommoninit(0xc01c01ee00)
 63280         /usr/local/go/src/runtime/proc.go:618 +0x73
 63281 runtime.allocm(0xc000040a00, 0xddd630, 0x0)
 63282         /usr/local/go/src/runtime/proc.go:1489 +0x150
 63283 runtime.newm(0xddd630, 0xc000040a00)
 63284         /usr/local/go/src/runtime/proc.go:1804 +0x39
 63285 runtime.startm(0x0, 0xc000047901)
 63286         /usr/local/go/src/runtime/proc.go:1969 +0x12a
 63287 runtime.wakep(...)
 63288         /usr/local/go/src/runtime/proc.go:2050
 63289 runtime.resetspinning()
 63290         /usr/local/go/src/runtime/proc.go:2430 +0x93
 63291 runtime.schedule()
 63292         /usr/local/go/src/runtime/proc.go:2531 +0x2a0
 63293 runtime.park_m(0xc0004e5080)
 63294         /usr/local/go/src/runtime/proc.go:2610 +0x9d
 63295 runtime.mcall(0x0)
 63296         /usr/local/go/src/runtime/asm_amd64.s:318 +0x5b

FWIW, sawtooth like memory comsumption over time:
image

Self-built docker image from latest commit.

Docker run cmd:

        @docker run \
          --restart unless-stopped \
          --detach \
          --name $(CONTAINER) \
          --volume /etc/localtime:/etc/localtime:ro \
          --volume REDACTED:/data \
          --log-driver json-file \
          --log-opt max-size=10m \
          --log-opt max-file=2 \
          --cap-add NET_ADMIN \
          --device /dev/net/tun:/dev/net/tun \
          --publish REDACTED:REDACTED/tcp \
          --publish REDACTED:REDACTED/udp \
          -e WIREGUARD_PRIVATE_KEY="REDACTED" \
          $(REPO)/$(IMAGE):$(TAG)

Can provide more details if needed.

from wg-access-server.

Place1 avatar Place1 commented on August 29, 2024

update for anyone watching this issue; there actually was a leak in wg-access-server that I fixed during during a big refactor in late 2020.

if you're running the latest version this issue should hopefully be resolved.

please open a new issue if you're seeing thread exhaustion or jigsaw memory usage again.

from wg-access-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.