-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
liboverture.so memory leak #1639
Comments
I used the same configuration and performed 5000 DNS queries using CPU time on your side is suspicious as well. On my side there is only ~9s after 5k queries. |
My phone is running for serval days with shadowsocks running in background.
It's seems ok for now, I will keep tracking with this. |
liboverture.so is compiled by go1.9, you may want to upgrade to 1.10 |
Is there a known mem leak issue in go 1.9? If there is it should have been
fixed long before 1.10 methinks.
|
Despite the mem leak, you can always benefit from the new version. e.g. new instructions |
My phone has not root. So I cannot dump the process memory
|
It means there are a lot of queries waiting for responses. Could you make sure that shadowsocks works well on your device? |
Yes, I'm using this to playing game, chatting by telegram or twitter. All of them works fine. |
276 threads taking 1 giga still sounds crazy. If those threads are just listening for DNS responses, they shouldn't take a lot of memory unless go is terribly inefficient. |
It seems a memory leak in regexp of golang. According to the profiling result:
|
golang/go#19573 might be relevant but fix has already been merged into 1.9. |
It looks golang's regexp is not that memory efficient. |
Apparently it isn't. golang/go#11646 |
|
Wait. @madeye So if I get this right, the compiled regexp is preventing all matchers from being GC-ed? Should we report this to upstream? |
@Mygod Yes, I think so. But I don't know the root cause. |
@madeye Did you open an issue to upstream? |
@Mygod Nope. Actually, I plan to use pcre directly in golang. |
Environment
Configuration
Put an
x
inside the [ ] that applies.What did you do?
Nothing specially.Firstly I found my phone cannot hold application on background. Everytime I switch apps between weibo and wechat or qq, app will reinit from splash screen.
Then when I playing some game. The game screen always freeze.
So I use
adb shell top -s 10
to view the memory usage, and found that liboverture.so is using 800MB+ of RAM (There is 4GB of RAM in Xperia XZP).What did you expect to see?
Less memory usage
What did you see instead?
The text was updated successfully, but these errors were encountered: