Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

客户端偶尔会CPU占用率持续居高不下 #42

Closed
shenlijun opened this issue Dec 6, 2020 · 8 comments
Closed

客户端偶尔会CPU占用率持续居高不下 #42

shenlijun opened this issue Dec 6, 2020 · 8 comments
Labels
documentation Improvements or additions to documentation

Comments

@shenlijun
Copy link

具体什么原因还没有跟进,也许大家都可以关注下看看是不是特例

在一台CPU是i5-9400T的PVE上面做得网关透明代理,debian10

偶尔用HTOP查看xray进程的cpu占用达到200-300%,而且会长时间持续,直到重启服务
遇到过2次

另外一台CPU是E3-1265L的PVE暂时还没发现这个现象

@shenlijun
Copy link
Author

网关不是在虚拟机里
是直接在底层的debian上

@RPRX
Copy link
Member

RPRX commented Dec 6, 2020

等待更多报告

@badO1a5A90
Copy link
Member

透明代理运行一段时候CPU一直满负荷的.大多数原因是iptable没写好,导致某些情况下出现回环了.

@shenlijun
Copy link
Author

透明代理运行一段时候CPU一直满负荷的.大多数原因是iptable没写好,导致某些情况下出现回环了.

确实iptable有个地方没写好,关于53端口的
说来也奇怪,两台PVE都有这个问题,但是都可以正常透明代理,而且其中一台从来没出现过占用高的问题

改了iptable再观察一段时间看看

@badO1a5A90
Copy link
Member

可能没有问题的那一台,不会有别处发来的53端口流量吧。

@shenlijun
Copy link
Author

可能没有问题的那一台,不会有别处发来的53端口流量吧。

家里和单位的拓扑确实有些差异,因为之前没有配置log,所以不知道具体是什么原因。最近两天又没有高占用,等待中......
有可能改了iptables之后就真的没有问题了

@badO1a5A90
Copy link
Member

是否已经解决?

@shenlijun
Copy link
Author

shenlijun commented Dec 26, 2020

是否已经解决?

最近没有出现了,应该就是iptable的问题,万分感谢

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants