-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Goroutine leak #4773
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
Labels
not following template
Will be closed in one day
Comments
This comment has been minimized.
This comment has been minimized.
log level should be in debug |
而且也需要在最新版本尝试(release里的reality还存在性能问题 应该使用CI中的版本) 丢失可重现case是什么理由 |
There are two images, i decided to make two snapshots at the same time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Integrity requirements
Description
I have a few xray servers running with a similar load, release 25.3.6 (though it is not latest release)
Healthy server:
broken server (two snapshots with an hour-break):
This number of goroutines leads to RAM growth, and eventually to OOM. What are possible reasons for it?
dynamics of RAM:

This happens a lot on this host, it is reproducable I would say. I would be happy to cooperate to debug this issue.
Currently I don't want to upgrade version of xray to a new one, as I think i will lose reproducable case.
Reproduction Method
Run xray server: /usr/local/bin/xray run -config /usr/local/etc/xray/config.json
Wait some time
Have goroutines snap: curl -o goroutine.out http://127.0.0.1:11111/debug/pprof/goroutine
Run view server, inspect: go tool pprof -http=0.0.0.0:6061 goroutine.out
Client config
Server config
Client log
Not related to the task
Server log
Access / error: more or less same on both servers.
error log on the broken server (before OOM on the screen). The reason there are errors - i suppose because I use adblock dns (I am investigating it rn).
OOM:
May 30 17:08:07 ${HOST} kernel: Out of memory: Killed process 1196643 (xray) total-vm:2085504kB, anon-rss:870432kB, file-rss:0kB, shmem-rss:0kB, UID:65534 pgtables:1840kB oom_score_adj:
The text was updated successfully, but these errors were encountered: