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

wv2ray.exe cpu内存占用过高导致运行异常网络不可用 #558

Closed
1265578519 opened this issue Feb 21, 2020 · 12 comments
Closed

wv2ray.exe cpu内存占用过高导致运行异常网络不可用 #558

1265578519 opened this issue Feb 21, 2020 · 12 comments
Labels

Comments

@1265578519
Copy link

用作玩游戏的话wv2ray.exe有时候经常会突然占满一个CPU核心导致999延迟卡飞天,看日志没什么毛病
3
2
1
QQ图片20200222035939

CPU占用的同时,内存也会越拉越高,达到七八百MB
初步判断是内存泄漏导致的一个CPU异常,这是vmmap快照
444
快照下载
wv2ray.zip
Windows10微软官方指定的内存调试:https://docs.microsoft.com/zh-cn/sysinternals/downloads/vmmap

@1265578519 1265578519 changed the title wv2ray.exe cpu内存占用过高 wv2ray.exe cpu内存占用过高导致运行异常网络不可用 Feb 21, 2020
@kslr kslr transferred this issue from v2ray/v2ray-core Feb 21, 2020
@whatsappfree
Copy link

wv2ray.exe有病毒的怀疑

@yunfengwangluo
Copy link

我这里也遇到相同的问题 用于 pubg 游戏 连接 5分钟左右 cpu 占用14% 内存占用50MB 游戏延迟达到 2000+ms。 即使是局域网 server <--> client 延迟也会增加 150+ms

@1265578519
Copy link
Author

@yunfengwangluo 其实这个问题早两年前我提过一次,,到现在至今未解决

@1265578519
Copy link
Author

1265578519 commented Jun 1, 2020

1
这个问题没人关注的吗?ping tcpping都正常,其他人连接也正常,就是客户端毛病

@1265578519
Copy link
Author

额,,,困扰我多年的问题解决了
如果要打游戏的话,那得设置ss的话,前几年我反映过NNNN次,v2ray客户端天天炸,999+延迟,cpu吃满单个核心,然后卡死在那但是就是不掉线那种,服务器和其他电脑使用不会有问题,很明显是客户端内存泄漏
设置方法很简单,可以同时支持,替换//include_ss
, { "protocol": "shadowsocks", "port": 65535, "settings": { "method": "aes-128-gcm", "password": "www.itzmx.com", "network": "tcp,udp", "level": 1, "ota": false } }
推荐使用aes-128-gcm,打游戏最快最稳的AEAD加密方式,包括google默认就是这个,256可以实现更高的加密复杂度。
chacha20-ietf-poly1305是google公司推出的AEAD加密方式,加密轻便更省电, 适合移动设备使用,电脑不推荐用这个。
三种AEAD加密方式
aes-128-gcm
aes-256-gcm
chacha20-ietf-poly1305
效果图!完美,没想到v2ray原生就支持ss,,,改个配置文件就能用了!
image

@1265578519
Copy link
Author

本想着,,,能解决,客户端是没毛病了,但是,,服务端,我去,炸了!
99%占用,然后延迟依旧999,,,看来得用第三方ss脚本才行。。。
1

@kslr
Copy link
Contributor

kslr commented Jun 1, 2020

试试netch 我平时用来打游戏

@1265578519
Copy link
Author

1265578519 commented Jun 1, 2020

@kslr 用的就是netch
image
进游戏后服务端占用20%
image
然后越来越高40%,,一路涨到99%就卡死了
image

感觉服务端可能是和客户端是同一个毛病引起的,你可以试试cod16这种fps游戏,100%很容易复现

@1265578519
Copy link
Author

1265578519 commented Jun 1, 2020

83448465-96270780-a484-11ea-886c-0d26c3ffa148
找了半天,,,终于找到个能用的ss,是libev版本的,玩了20分钟,CPU占用没有超过1.5%过,很稳。
等大佬们修复v2这毛病啦

@nicholascw
Copy link

有没有整个wireshark抓个自己的包什么的看看有没有在打环呢

@1265578519
Copy link
Author

服务端线程分析
1
2
3
4
5
cpu达到99%的时候抓的core文件
1
服务端版本号对应为4.23.1 /usr/bin/v2ray/v2ray
core.z01.去掉后缀.zip
core.zip

客户端99% dmp也可以分析看看,应该是同一个问题。
v2ray.z01.去掉后缀.zip
v2ray.z02.去掉后缀.zip
v2ray.zip

@github-actions
Copy link

github-actions bot commented Sep 2, 2020

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Sep 2, 2020
@github-actions github-actions bot closed this as completed Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants