Open zhouyang8304 opened 1 year ago
client or server ?
服务器端,占用太高了,
刚刚任务管理器忘记截图了,上一个nps截图中的cpu占用,基本上都是nps占用的。
nps服务重启后占用极低
压缩、加密、缓存,这些功能都关掉试试看
我从我重启到现在,占用很低
我先观察几天看,有消息了,我会在下面更贴
我这里还是很高
我今天看到了CPU占用超高,但是nps的负载其实很低很低
这个问题原版就有,不过是npc占用很高 而且有一定偶然性,目前没发现规律
换到这边之后,也出现过一次,每次都是重启就好了
too, 现在长期是这样的,不知道有没有老板可以帮忙解决一下
我目前比较明确就是这个nps 时不时CPU占用很高。
可能是某些代码有不容易被发现的无限循环bug,检查一下?
我目前比较明确就是这个nps 时不时CPU占用很高。
需要知道是什么场景导致的,使用了什么协议,tcp udp http 还是 https
我目前比较明确就是这个nps 时不时CPU占用很高。
需要知道是什么场景导致的,使用了什么协议,tcp udp http 还是 https
可以,我持续追踪下。目前加上了gops。我目前主要使用的socks5协议。
大概有几百个。在线的也比较多。
CPU占用 180%了
下面这个没看出来问题。
从上图分析,应该是有大量的锁竞争发生和定时器设计。
堆信息分析
貌似是
pprof.nps.samples.cpu.011.pb.gz
应该是有很强的锁竞争
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots or logs Add screenshots or logs to help explain your problem.
Server (please complete the following information):
Client (please complete the following information):
Additional context Add any other context about the problem here.