ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
https://ehang.io/nps/documents
GNU General Public License v3.0
29.79k stars 5.38k forks source link

0.24.0版在流媒体服务和连接数大量并发时假死的BUG #258

Closed skyfly2000 closed 4 years ago

skyfly2000 commented 4 years ago

运行环境 服务端:azure VPS centos7.6 客户端:群晖918+ 网络:中国移动 300M宽带 升级0.24.0版后,打开plex(多媒体服务,以流媒体视频服务为主)看在线视频和wordPress上传照片时服务端就会挂掉服务,需要start才能打开web面板。后卸载服务端和客户端在没运行的情况下升级0.24.0版,打开plex服务端假死,关闭在线视频后半分钟左右自动恢复正常。 没升级前服务端0.23.2”https://github.com/cnlh/nps/releases/download/v0.23.2/linux_amd64_server.tar.gz”,客户端“https://github.com/cnlh/nps/releases/download/v0.23.2/linux_amd64_client.tar.gz”或npc_x64-6.1_0.23.0-1.spk客户端一切正常。 特此报告,感谢作者所做的努力。

skyfly2000 commented 4 years ago

问题补充:VPS安装了BBR,原版和暴力魔改版都试过,结果一样。 能否考虑升级SPK客户端,谢

ffdfgdfg commented 4 years ago

你的意思是你在群晖上也升级了0.24.0,还是说服务端用的0.24.0客户端保持0.23.0直接连上服务端?

skyfly2000 commented 4 years ago

群晖也升级了0.24.0,保持0.23.0连接不上服务端的。

ffdfgdfg commented 4 years ago

对的,肯定连不上,能提供下服务端和客户端的日志吗

skyfly2000 commented 4 years ago

我已经降级了,日志为留存,晚上在升上去做个试验,把日志发上来

skyfly2000 commented 4 years ago

@ffdfgdfg 你好,如下是服务端日志,反复打开几次plex,出错的地方都是开始播放视频。997为客户端连接服务端的网桥端口;32400位plex流媒体视频端口。 [root@nps nps]# ./nps start 2019/11/15 20:31:53 start ok , pid: 7266 config path: /root/nps/nps [root@nps nps]# ./nps 2019/11/15 20:34:42.052 [I] [nps.go:64] the version of server is 0.24.0 ,allow client core version to be 0.24.0 2019/11/15 20:34:42.053 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 997 2019/11/15 20:34:42.054 [E] [bridge.go:77] listen tcp 0.0.0.0:997: bind: address already in use [root@nps nps]# ./nps 2019/11/15 20:36:48.642 [I] [nps.go:64] the version of server is 0.24.0 ,allow client core version to be 0.24.0 2019/11/15 20:36:48.642 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 997 2019/11/15 20:36:48.645 [E] [bridge.go:77] listen tcp 0.0.0.0:997: bind: address already in use [root@nps nps]# ./nps 2019/11/15 20:37:44.331 [I] [nps.go:64] the version of server is 0.24.0 ,allow client core version to be 0.24.0 2019/11/15 20:37:44.335 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 997 2019/11/15 20:37:44.336 [E] [bridge.go:77] listen tcp 0.0.0.0:997: bind: address already in use [root@nps nps]# ./nps 2019/11/15 20:37:58.431 [I] [nps.go:64] the version of server is 0.24.0 ,allow client core version to be 0.24.0 2019/11/15 20:37:58.433 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 997 2019/11/15 20:37:58.433 [E] [bridge.go:77] listen tcp 0.0.0.0:997: bind: address already in use [root@nps nps]# ./nps 2019/11/15 20:38:01.577 [I] [nps.go:64] the version of server is 0.24.0 ,allow client core version to be 0.24.0 2019/11/15 20:38:01.578 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 997 2019/11/15 20:38:01.579 [E] [bridge.go:77] listen tcp 0.0.0.0:997: bind: address already in use [root@nps nps]# ./nps 2019/11/15 20:38:04.413 [I] [nps.go:64] the version of server is 0.24.0 ,allow client core version to be 0.24.0 2019/11/15 20:38:04.418 [E] [server.go:184] taskId 1 start error port 8355 open failed 2019/11/15 20:38:04.418 [E] [server.go:184] taskId 4 start error port 8366 open failed 2019/11/15 20:38:04.418 [I] [server.go:191] tunnel task start mode:httpHostServer port 0 2019/11/15 20:38:04.418 [I] [connection.go:71] web management start, access port is 8082 2019/11/15 20:38:04.418 [E] [tcp.go:72] listen tcp 0.0.0.0:8082: bind: address already in use 2019/11/15 20:38:04.418 [E] [server.go:102] Web management startup failure [root@nps nps]# ./nps 2019/11/15 20:38:07.413 [I] [nps.go:64] the version of server is 0.24.0 ,allow client core version to be 0.24.0 2019/11/15 20:38:07.413 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 997 2019/11/15 20:38:07.416 [I] [server.go:191] tunnel task socks start mode:socks5 port 8355 2019/11/15 20:38:07.416 [I] [server.go:191] tunnel task app start mode:tcp port 8366 2019/11/15 20:38:07.417 [I] [server.go:191] tunnel task start mode:httpHostServer port 0 2019/11/15 20:38:07.417 [I] [connection.go:71] web management start, access port is 8082 2019/11/15 20:38:07.420 [I] [connection.go:62] start https listener, port is 443 2019/11/15 20:38:07.420 [I] [connection.go:53] start http listener, port is 80 2019/11/15 20:38:08.608 [N] [http.go:156] connect to target 172.20.2.99:32400 error the client 2 is not connect 2019/11/15 20:38:08.829 [N] [http.go:156] connect to target 172.20.2.99:32400 error the client 2 is not connect 2019/11/15 20:38:09.562 [N] [http.go:156] connect to target 172.20.2.99:32400 error the client 2 is not connect 2019/11/15 20:38:10.970 [I] [bridge.go:233] clientId 2 connection succeeded, address:183.209.128.117:11258 2019/11/15 20:38:10.974 [I] [bridge.go:233] clientId 2 connection succeeded, address:183.209.128.117:11900 2019/11/15 20:38:12.633 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:13.816 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25624, target 172.20.2.99:32400 2019/11/15 20:38:14.311 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/metadata/3037, remote address 223.104.4.70:25624, target 172.20.2.99:32400 2019/11/15 20:38:14.328 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/metadata/3502, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:14.503 [D] [http.go:218] http request, method GET, host px.oool.cc, url /hubs/metadata/3037/related, remote address 223.104.4.70:25626, target 172.20.2.99:32400 2019/11/15 20:38:14.533 [D] [http.go:218] http request, method GET, host px.oool.cc, url /status/sessions, remote address 223.104.4.70:25628, target 172.20.2.99:32400 2019/11/15 20:38:14.570 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:25629, target 172.20.2.99:32400 2019/11/15 20:38:14.582 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/metadata/3037/children, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:15.033 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:15.278 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25625, target 172.20.2.99:32400 2019/11/15 20:38:16.260 [D] [http.go:218] http request, method GET, host px.oool.cc, url /updater/status, remote address 223.104.4.70:25627, target 172.20.2.99:32400 2019/11/15 20:38:16.868 [D] [http.go:218] http request, method PUT, host px.oool.cc, url /updater/check, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:16.961 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25624, target 172.20.2.99:32400 2019/11/15 20:38:24.973 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:26.963 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:27.157 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:25630, target 172.20.2.99:32400 2019/11/15 20:38:27.473 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:37.263 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:37.583 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:38.435 [D] [router.go:925] | 223.104.4.70| 302 | 242.802µs| match| GET /client/list r:/client/list/ 2019/11/15 20:38:38.565 [D] [router.go:925] | 223.104.4.70| 200 | 861.509µs| match| GET /login/index r:/login/index/ 2019/11/15 20:38:39.689 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:25631, target 172.20.2.99:32400 2019/11/15 20:38:40.493 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:42.124 [D] [router.go:925] | 223.104.4.70| 200 | 19.6209ms| match| POST /login/verify r:/login/verify/ 2019/11/15 20:38:42.777 [D] [router.go:925] | 223.104.4.70| 200 | 512.863138ms| match| GET /index/index r:/index/index/ 2019/11/15 20:38:44.706 [D] [router.go:925] | 223.104.4.70| 200 | 1.586416ms| match| GET /index/hostlist r:/index/hostlist/ 2019/11/15 20:38:46.973 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:50.483 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:53.898 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:25632, target 172.20.2.99:32400 2019/11/15 20:38:54.513 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:38:55.299 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /, remote address 223.104.4.70:25633, target 172.20.2.99:3001 2019/11/15 20:38:55.701 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /static/js/main.d30188cd.js, remote address 223.104.4.70:25633, target 172.20.2.99:3001 2019/11/15 20:38:56.195 [E] [http.go:189] local error: tls: bad record MAC 2019/11/15 20:38:56.963 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:39:04.333 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:39:06.505 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:25634, target 172.20.2.99:32400 2019/11/15 20:39:06.923 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:39:07.126 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25635, target 172.20.2.99:32400 2019/11/15 20:39:09.627 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /apple-touch-icon-precomposed.png, remote address 223.104.4.70:25636, target 172.20.2.99:3001 2019/11/15 20:39:10.001 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /apple-touch-icon.png, remote address 223.104.4.70:25636, target 172.20.2.99:3001 2019/11/15 20:39:12.790 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:13.881 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /static/js/main.d30188cd.js, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:15.269 [D] [router.go:925] | 223.104.4.70| 200 | 4.281843ms| match| GET /index/tcp r:/index/tcp/ 2019/11/15 20:39:16.410 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:16.963 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25623, target 172.20.2.99:32400 2019/11/15 20:39:17.182 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:25635, target 172.20.2.99:32400 2019/11/15 20:39:17.361 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:17.423 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:25638, target 172.20.2.99:32400 2019/11/15 20:39:17.526 [D] [router.go:925] | 223.104.4.70| 200 | 1.601717ms| match| GET /client/list r:/client/list/* 2019/11/15 20:39:18.250 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26104, target 172.20.2.99:3001 2019/11/15 20:39:18.390 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:19.278 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26105, target 172.20.2.99:32400 2019/11/15 20:39:19.373 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26104, target 172.20.2.99:3001 2019/11/15 20:39:19.391 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:19.671 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:25635, target 172.20.2.99:32400 2019/11/15 20:39:20.393 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26104, target 172.20.2.99:3001 2019/11/15 20:39:20.400 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:21.393 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26104, target 172.20.2.99:3001 2019/11/15 20:39:21.400 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:29.180 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:29.182 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26104, target 172.20.2.99:3001 2019/11/15 20:39:29.697 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:25635, target 172.20.2.99:32400 2019/11/15 20:39:30.083 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:26106, target 172.20.2.99:32400 2019/11/15 20:39:31.845 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26107, target 172.20.2.99:32400 2019/11/15 20:39:33.342 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:26106, target 172.20.2.99:32400 2019/11/15 20:39:33.351 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:33.353 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26104, target 172.20.2.99:3001 2019/11/15 20:39:40.243 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26104, target 172.20.2.99:3001 2019/11/15 20:39:40.250 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:25637, target 172.20.2.99:3001 2019/11/15 20:39:42.272 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:26106, target 172.20.2.99:32400 2019/11/15 20:39:44.430 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26108, target 172.20.2.99:32400 2019/11/15 20:39:45.363 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:26106, target 172.20.2.99:32400 2019/11/15 20:39:46.444 [E] [mux.go:179] mux: ping time out 2019/11/15 20:39:46.444 [W] [mux.go:323] close mux 2019/11/15 20:39:46.444 [E] [mux.go:244] mux: read session unpack from connection err 2019/11/15 20:39:46.444 [W] [mux.go:323] close mux 2019/11/15 20:39:46.444 [W] [mux.go:323] close mux 2019/11/15 20:39:46.515 [E] [mux.go:244] mux: read session unpack from connection err 2019/11/15 20:39:46.515 [W] [mux.go:323] close mux 2019/11/15 20:39:46.515 [W] [mux.go:323] close mux 2019/11/15 20:39:46.665 [N] [http.go:156] connect to target 172.20.2.99:32400 error the client 2 is not connect 2019/11/15 20:39:47.312 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26106, target 172.20.2.99:32400 2019/11/15 20:39:47.312 [E] [http.go:222] the conn has closed 2019/11/15 20:39:51.679 [I] [bridge.go:233] clientId 2 connection succeeded, address:183.209.128.117:11230 2019/11/15 20:39:51.718 [I] [bridge.go:233] clientId 2 connection succeeded, address:183.209.128.117:11360 2019/11/15 20:39:53.128 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:39:53.214 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26112, target 172.20.2.99:3001 2019/11/15 20:39:56.138 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26113, target 172.20.2.99:32400 2019/11/15 20:39:56.981 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:26113, target 172.20.2.99:32400 2019/11/15 20:40:00.762 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:00.792 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26112, target 172.20.2.99:3001 2019/11/15 20:40:01.155 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26114, target 172.20.2.99:32400 2019/11/15 20:40:01.590 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:26113, target 172.20.2.99:32400 2019/11/15 20:40:01.762 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:01.773 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26112, target 172.20.2.99:3001 2019/11/15 20:40:02.762 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:02.797 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26112, target 172.20.2.99:3001 2019/11/15 20:40:03.752 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:03.772 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26112, target 172.20.2.99:3001 2019/11/15 20:40:04.782 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:04.792 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26112, target 172.20.2.99:3001 2019/11/15 20:40:05.881 [D] [http.go:218] http request, method GET, host px.oool.cc, url /web/common/img/backgrounds/noise.8b05ce45d0df59343e206bc9ae78d85d.png, remote address 223.104.4.70:26113, target 172.20.2.99:32400 2019/11/15 20:40:06.071 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:06.082 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26112, target 172.20.2.99:3001 2019/11/15 20:40:06.178 [E] [http.go:189] local error: tls: bad record MAC 2019/11/15 20:40:06.312 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:07.242 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:07.358 [D] [http.go:218] http request, method POST, host px.oool.cc, url /playQueues, remote address 223.104.4.70:26115, target 172.20.2.99:32400 2019/11/15 20:40:07.424 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26116, target 172.20.2.99:3001 2019/11/15 20:40:08.162 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/decision, remote address 223.104.4.70:26115, target 172.20.2.99:32400 2019/11/15 20:40:08.561 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26116, target 172.20.2.99:3001 2019/11/15 20:40:08.572 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:08.672 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/parts/3567/1572210940/file.mp4, remote address 223.104.4.70:26115, target 172.20.2.99:32400 2019/11/15 20:40:09.282 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/parts/3567/1572210940/file.mp4, remote address 223.104.4.70:26115, target 172.20.2.99:32400 2019/11/15 20:40:09.430 [E] [http.go:189] local error: tls: bad record MAC 2019/11/15 20:40:10.143 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/parts/3567/1572210940/file.mp4, remote address 223.104.4.70:26117, target 172.20.2.99:32400 2019/11/15 20:40:10.428 [E] [http.go:189] local error: tls: bad record MAC 2019/11/15 20:40:11.190 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/decision, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:11.721 [D] [http.go:218] http request, method GET, host px.oool.cc, url /web/js/chunk-8-f56d5f4b387f0986c81c-plex-4.8.4-d12b992.js, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:12.043 [D] [http.go:218] http request, method GET, host px.oool.cc, url /web/js/chunk-6-60826b166e6abb12e6e5-plex-4.8.4-d12b992.js, remote address 223.104.4.70:26119, target 172.20.2.99:32400 2019/11/15 20:40:12.384 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:26120, target 172.20.2.99:32400 2019/11/15 20:40:13.641 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26116, target 172.20.2.99:3001 2019/11/15 20:40:13.642 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:13.851 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/start.mpd, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:14.881 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/initial.mp4, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:14.900 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/initial.mp4, remote address 223.104.4.70:26120, target 172.20.2.99:32400 2019/11/15 20:40:14.901 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/513.m4s, remote address 223.104.4.70:26119, target 172.20.2.99:32400 2019/11/15 20:40:15.096 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/513.m4s, remote address 223.104.4.70:26121, target 172.20.2.99:32400 2019/11/15 20:40:15.291 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26116, target 172.20.2.99:3001 2019/11/15 20:40:15.302 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:15.501 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:15.781 [D] [http.go:218] http request, method GET, host px.oool.cc, url /playQueues/360, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:16.411 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/514.m4s, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:16.881 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/515.m4s, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:18.270 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26122, target 172.20.2.99:32400 2019/11/15 20:40:18.631 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26116, target 172.20.2.99:3001 2019/11/15 20:40:18.632 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:24.151 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/514.m4s, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:24.295 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26123, target 172.20.2.99:32400 2019/11/15 20:40:25.142 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:26119, target 172.20.2.99:32400 2019/11/15 20:40:25.602 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:26121, target 172.20.2.99:32400 2019/11/15 20:40:26.444 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:26124, target 172.20.2.99:32400 2019/11/15 20:40:27.401 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26116, target 172.20.2.99:3001 2019/11/15 20:40:27.401 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:27.937 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26125, target 172.20.2.99:32400 2019/11/15 20:40:29.454 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26126, target 172.20.2.99:32400 2019/11/15 20:40:32.161 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/515.m4s, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:32.726 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26116, target 172.20.2.99:3001 2019/11/15 20:40:32.727 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26111, target 172.20.2.99:3001 2019/11/15 20:40:33.381 [D] [http.go:218] http request, method GET, host www.oool.cc, url /, remote address 223.104.4.70:26127, target 172.20.2.99:80 2019/11/15 20:40:34.071 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/516.m4s, remote address 223.104.4.70:26124, target 172.20.2.99:32400 2019/11/15 20:40:34.095 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26129, target 172.20.2.99:3001 2019/11/15 20:40:34.095 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26128, target 172.20.2.99:3001 2019/11/15 20:40:37.551 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:26125, target 172.20.2.99:32400 2019/11/15 20:40:38.301 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/516.m4s, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:38.711 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/517.m4s, remote address 223.104.4.70:26124, target 172.20.2.99:32400 2019/11/15 20:40:39.909 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26130, target 172.20.2.99:32400 2019/11/15 20:40:40.061 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26129, target 172.20.2.99:3001 2019/11/15 20:40:40.061 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26128, target 172.20.2.99:3001 2019/11/15 20:40:42.061 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/stat, remote address 223.104.4.70:26129, target 172.20.2.99:3001 2019/11/15 20:40:42.061 [D] [http.go:218] http request, method GET, host rr.oool.cc, url /api/workingtask, remote address 223.104.4.70:26128, target 172.20.2.99:3001 2019/11/15 20:40:42.506 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26125, target 172.20.2.99:32400 2019/11/15 20:40:43.041 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/517.m4s, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:43.261 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:26125, target 172.20.2.99:32400 2019/11/15 20:40:43.591 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/518.m4s, remote address 223.104.4.70:26124, target 172.20.2.99:32400 2019/11/15 20:40:47.357 [D] [http.go:218] http request, method GET, host www.oool.cc, url /, remote address 223.104.4.70:26127, target 172.20.2.99:80 2019/11/15 20:40:49.841 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26124, target 172.20.2.99:32400 2019/11/15 20:40:49.961 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26125, target 172.20.2.99:32400 2019/11/15 20:40:51.749 [D] [http.go:218] http request, method GET, host www.oool.cc, url /, remote address 223.104.4.70:26131, target 172.20.2.99:80 2019/11/15 20:40:52.871 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/518.m4s, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:40:52.926 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26125, target 172.20.2.99:32400 2019/11/15 20:40:52.926 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/519.m4s, remote address 223.104.4.70:26124, target 172.20.2.99:32400 2019/11/15 20:40:53.572 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:26132, target 172.20.2.99:32400 2019/11/15 20:40:54.941 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26124, target 172.20.2.99:32400 2019/11/15 20:40:55.925 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/subtitles, remote address 223.104.4.70:26125, target 172.20.2.99:32400 2019/11/15 20:41:00.761 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/519.m4s, remote address 223.104.4.70:26118, target 172.20.2.99:32400 2019/11/15 20:41:01.161 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26124, target 172.20.2.99:32400 2019/11/15 20:41:01.181 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26132, target 172.20.2.99:32400 2019/11/15 20:41:01.552 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26133, target 172.20.2.99:32400 2019/11/15 20:41:01.912 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26600, target 172.20.2.99:32400 2019/11/15 20:41:01.981 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26601, target 172.20.2.99:32400 2019/11/15 20:41:01.981 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26602, target 172.20.2.99:32400 2019/11/15 20:41:02.257 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26603, target 172.20.2.99:32400 2019/11/15 20:41:03.183 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/520.m4s, remote address 223.104.4.70:26134, target 172.20.2.99:32400 2019/11/15 20:41:03.183 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26605, target 172.20.2.99:32400 2019/11/15 20:41:03.184 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26606, target 172.20.2.99:32400 2019/11/15 20:41:03.184 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26604, target 172.20.2.99:32400 2019/11/15 20:41:03.474 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26608, target 172.20.2.99:32400 2019/11/15 20:41:04.457 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26607, target 172.20.2.99:32400 2019/11/15 20:41:05.750 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26609, target 172.20.2.99:32400 2019/11/15 20:41:10.429 [E] [http.go:189] mux.queue: read time out 2019/11/15 20:41:10.755 [E] [http.go:189] write tcp 10.0.0.5:80->223.104.4.70:26132: write: broken pipe 2019/11/15 20:41:11.285 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 223.104.4.70:26610, target 172.20.2.99:32400 2019/11/15 20:41:11.294 [E] [http.go:189] write tcp 10.0.0.5:80->223.104.4.70:26602: write: broken pipe 2019/11/15 20:41:11.296 [E] [http.go:189] write tcp 10.0.0.5:80->223.104.4.70:26600: write: broken pipe 2019/11/15 20:41:11.385 [E] [http.go:189] write tcp 10.0.0.5:80->223.104.4.70:26601: write: broken pipe 2019/11/15 20:41:11.457 [E] [http.go:189] write tcp 10.0.0.5:80->223.104.4.70:26604: write: broken pipe 2019/11/15 20:41:11.681 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/521.m4s, remote address 223.104.4.70:26134, target 172.20.2.99:32400 2019/11/15 20:41:11.967 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/0/521.m4s, remote address 223.104.4.70:26606, target 172.20.2.99:32400 2019/11/15 20:41:12.186 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/522.m4s, remote address 223.104.4.70:26134, target 172.20.2.99:32400 2019/11/15 20:41:12.711 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/523.m4s, remote address 223.104.4.70:26134, target 172.20.2.99:32400 2019/11/15 20:41:14.886 [D] [http.go:218] http request, method GET, host px.oool.cc, url /video/:/transcode/universal/dash/tv214ptxb4gbb5jp4oisl2yr/1/524.m4s, remote address 223.104.4.70:26134, target 172.20.2.99:32400 2019/11/15 20:41:15.431 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26607, target 172.20.2.99:32400 2019/11/15 20:41:15.435 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26608, target 172.20.2.99:32400 2019/11/15 20:41:15.466 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 223.104.4.70:26610, target 172.20.2.99:32400 2019/11/15 20:41:15.742 [E] [http.go:189] write tcp 10.0.0.5:80->223.104.4.70:26608: write: broken pipe 2019/11/15 20:41:16.236 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 223.104.4.70:26134, target 172.20.2.99:32400 2019/11/15 20:41:21.446 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 223.104.4.70:26134, target 172.20.2.99:32400 2019/11/15 20:41:23.693 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 223.104.4.70:26611, target 172.20.2.99:32400 ^C [root@nps nps]#

skyfly2000 commented 4 years ago

如下为对应时间的客户端日志 root@NAS-L:~/nps# ./npc 2019/11/15 20:37:14.609 [I] [npc.go:89] the version of client is 0.24.0, the core version of client is 0.24.0 2019/11/15 20:37:14.609 [E] [control.go:94] Config file npc.conf loading error open npc.conf: no such file or directory root@NAS-L:~/nps# cd nps -ash: cd: nps: No such file or directory root@NAS-L:~/nps# ./npc 2019/11/15 20:38:31.760 [I] [npc.go:89] the version of client is 0.24.0, the core version of client is 0.24.0 2019/11/15 20:38:31.760 [E] [control.go:94] Config file npc.conf loading error open npc.conf: no such file or directory root@NAS-L:~/nps# ./npc 2019/11/15 20:39:05.039 [I] [npc.go:89] the version of client is 0.24.0, the core version of client is 0.24.0 2019/11/15 20:39:05.039 [E] [control.go:94] Config file npc.conf loading error open npc.conf: no such file or directory root@NAS-L:~/nps# ./npc 2019/11/15 20:39:32.269 [I] [npc.go:89] the version of client is 0.24.0, the core version of client is 0.24.0 2019/11/15 20:39:32.270 [E] [control.go:94] Config file npc.conf loading error open npc.conf: no such file or directory root@NAS-L:~/nps#

skyfly2000 commented 4 years ago

最后服务端是挂掉的,死机了; 是否与启用压缩及加密有关系? 2019/11/15 20:39:46.444 [E] [mux.go:179] mux: ping time out 2019/11/15 20:39:46.444 [W] [mux.go:323] close mux 2019/11/15 20:39:46.444 [E] [mux.go:244] mux: read session unpack from connection err 2019/11/15 20:39:46.444 [W] [mux.go:323] close mux 2019/11/15 20:39:46.444 [W] [mux.go:323] close mux 2019/11/15 20:39:46.515 [E] [mux.go:244] mux: read session unpack from connection err 2019/11/15 20:39:46.515 [W] [mux.go:323] close mux 2019/11/15 20:39:46.515 [W] [mux.go:323] close mux 2019/11/15 20:39:46.665 [N] [http.go:156] connect to target 172.20.2.99:32400 error the client 2 is not connect

skyfly2000 commented 4 years ago

完蛋了,把IP地址及端口号全暴露了,回头得全部改一遍

ffdfgdfg commented 4 years ago

关闭压缩以及加密呢,我看日志报的是连接突然断开了

skyfly2000 commented 4 years ago

@ @ffdfgdfg 刚又测试了一下,关闭压缩和加密,基本能看720p电影,不会死机了,感觉网速一下慢好多~~看来和压缩或加密有关系。我等下打算还原成0.23.2的服务端,你看还有什么需要我来帮助测试

skyfly2000 commented 4 years ago

看日志客户端还是会频繁掉线

ffdfgdfg commented 4 years ago

掉线一次会抛掉当前所有连接,需要重新建立连接,就会断流一段时间,所以网速慢了。 不过似乎是主动断开的机制太严格了,完全不允许丢包

skyfly2000 commented 4 years ago

我感觉是某些机制限制了TCP的并发连接数或者是造成了数据循环,就像是tcp阻断一样,网络通道严重拥塞,测试期间我刷新过好几次WEB面板,TCP连接数一直都是5,不知是数据调用问题还是其他,记得0.23.2时,tcp连接一般都在五六十~~ 我是小白完全不懂,从零开始一个半月时间,学习linux的各种命令,压缩、解压、备份、权限等等,就为了安装nps😂,是觉得这个项目很好,我很支持,有什么需要的你尽管说……再次感谢

skyfly2000 commented 4 years ago

升级0.24完全是为了端口复用,比如我群晖有四个服务,都有对应的手机APP客户端,在局域网一个地址,4个app都可以连接,但nps得建4个tcp隧道,分别用4个端口号(地址后跟不同端口号),我自己用没问题,但家人特别是老人,就感觉特别不方便~~0.24更新后一直掉线死机,一直没来得及试验,不知有没有解决~感谢

lazy-luo commented 4 years ago

映射群晖端口有风险哦~

ffdfgdfg commented 4 years ago

0.23对连接的关闭处理是等待到超时才关闭,0.24是只要用户或者内网应用一方关闭连接,那么另一方就立即关闭,所以统计上是更为准确的 端口复用0.24没改过,使用参考readme

至于为什么网速变慢,可能还是在于连接关闭的条件比较严格,我们看了Linux的TCP重传机制,丢包重传的等待时间成倍增长,默认设置下可能到10分钟,很容易达到限制的5秒,所以主动断开次数确实是太多了。 因为这个重传机制,现在对流量动态控制的滑动窗口计算还有不完善的地方,可能由于重传造成的延迟导致窗口过大,我再改改

skyfly2000 commented 4 years ago

能找到原因就好,希望你们越来越好!感谢你们的付出!

ffdfgdfg commented 4 years ago

https://github.com/cnlh/nps/commit/aaf79b21f03f04309b1bc10580e4943f2b6b32a0 @skyfly2000 麻烦能帮忙测试一下吗 已经编译好文件上传了

skyfly2000 commented 4 years ago

@ffdfgdfg 上午有个签约活动,一直忙到现在,我现在动手测试

skyfly2000 commented 4 years ago

测试了两遍,第一遍是打开PLEX视频(4K)三分钟左右服务端挂掉,日志显示内存不足。第二遍打开plex视频,同时打开wordpress页面,挂掉。 [root@nps nps]# ./nps fatal error: runtime: out of memory

runtime stack: runtime.throw(0xa91643, 0x16) /usr/lib/golang/src/runtime/panic.go:774 +0x72 fp=0x7ffc80bdcce8 sp=0x7ffc80bdccb8 pc=0x430f22 runtime.sysMap(0xc000000000, 0x4000000, 0xf83918) /usr/lib/golang/src/runtime/mem_linux.go:169 +0xc5 fp=0x7ffc80bdcd28 sp=0x7ffc80bdcce8 pc=0x419dc5 runtime.(mheap).sysAlloc(0xf6b1c0, 0x2000, 0x0, 0x0) /usr/lib/golang/src/runtime/malloc.go:701 +0x1cd fp=0x7ffc80bdcdd0 sp=0x7ffc80bdcd28 pc=0x40d05d runtime.(mheap).grow(0xf6b1c0, 0x1, 0xffffffff) /usr/lib/golang/src/runtime/mheap.go:1255 +0xa3 fp=0x7ffc80bdce20 sp=0x7ffc80bdcdd0 pc=0x427e83 runtime.(mheap).allocSpanLocked(0xf6b1c0, 0x1, 0xf83928, 0x1) /usr/lib/golang/src/runtime/mheap.go:1170 +0x266 fp=0x7ffc80bdcea0 sp=0x7ffc80bdce20 pc=0x427d16 runtime.(mheap).alloc_m(0xf6b1c0, 0x1, 0x45002a, 0x0) /usr/lib/golang/src/runtime/mheap.go:1022 +0xc2 fp=0x7ffc80bdcef0 sp=0x7ffc80bdcea0 pc=0x4275b2 runtime.(mheap).alloc.func1() /usr/lib/golang/src/runtime/mheap.go:1093 +0x4c fp=0x7ffc80bdcf28 sp=0x7ffc80bdcef0 pc=0x45a75c runtime.(mheap).alloc(0xf6b1c0, 0x1, 0x1002a, 0x40000) /usr/lib/golang/src/runtime/mheap.go:1092 +0x8a fp=0x7ffc80bdcf78 sp=0x7ffc80bdcf28 pc=0x42789a runtime.(mcentral).grow(0xf6bff8, 0x0) /usr/lib/golang/src/runtime/mcentral.go:255 +0x7b fp=0x7ffc80bdcfb8 sp=0x7ffc80bdcf78 pc=0x4197eb runtime.(mcentral).cacheSpan(0xf6bff8, 0x7f8b96e91000) /usr/lib/golang/src/runtime/mcentral.go:106 +0x2fe fp=0x7ffc80bdd018 sp=0x7ffc80bdcfb8 pc=0x41930e runtime.(mcache).refill(0x7f8b96e91008, 0x2a) /usr/lib/golang/src/runtime/mcache.go:138 +0x85 fp=0x7ffc80bdd038 sp=0x7ffc80bdd018 pc=0x418db5 runtime.(mcache).nextFree(0x7f8b96e91008, 0xf8392a, 0x7f8b96e91008, 0x8, 0xfffffffffffffff8) /usr/lib/golang/src/runtime/malloc.go:854 +0x87 fp=0x7ffc80bdd070 sp=0x7ffc80bdd038 pc=0x40d887 runtime.mallocgc(0x180, 0xa7daa0, 0x1, 0xf83980) /usr/lib/golang/src/runtime/malloc.go:1022 +0x793 fp=0x7ffc80bdd110 sp=0x7ffc80bdd070 pc=0x40e1c3 runtime.newobject(0xa7daa0, 0x4000) /usr/lib/golang/src/runtime/malloc.go:1151 +0x38 fp=0x7ffc80bdd140 sp=0x7ffc80bdd110 pc=0x40e5b8 runtime.malg(0x85c00008000, 0xf6d868) /usr/lib/golang/src/runtime/proc.go:3232 +0x31 fp=0x7ffc80bdd180 sp=0x7ffc80bdd140 pc=0x43a2c1 runtime.mpreinit(...) /usr/lib/golang/src/runtime/os_linux.go:324 runtime.mcommoninit(0xf65c80) /usr/lib/golang/src/runtime/proc.go:626 +0xc2 fp=0x7ffc80bdd1b8 sp=0x7ffc80bdd180 pc=0x433ce2 runtime.schedinit() /usr/lib/golang/src/runtime/proc.go:543 +0x72 fp=0x7ffc80bdd210 sp=0x7ffc80bdd1b8 pc=0x433942 runtime.rt0_go(0x7ffc80bdd248, 0x1, 0x7ffc80bdd248, 0x0, 0x7f8b96cbc15a, 0x1, 0x7ffc80bdd720, 0x0, 0x7ffc80bdd726, 0x7ffc80bdd738, ...) /usr/lib/golang/src/runtime/asm_amd64.s:214 +0x125 fp=0x7ffc80bdd218 sp=0x7ffc80bdd210 pc=0x45cc15 [root@nps nps]# ./nps fatal error: runtime: out of memory

runtime stack: runtime.throw(0xa91643, 0x16) /usr/lib/golang/src/runtime/panic.go:774 +0x72 fp=0x7ffd520bfd58 sp=0x7ffd520bfd28 pc=0x430f22 runtime.sysMap(0xc000000000, 0x4000000, 0xf83918) /usr/lib/golang/src/runtime/mem_linux.go:169 +0xc5 fp=0x7ffd520bfd98 sp=0x7ffd520bfd58 pc=0x419dc5 runtime.(mheap).sysAlloc(0xf6b1c0, 0x2000, 0x0, 0x0) /usr/lib/golang/src/runtime/malloc.go:701 +0x1cd fp=0x7ffd520bfe40 sp=0x7ffd520bfd98 pc=0x40d05d runtime.(mheap).grow(0xf6b1c0, 0x1, 0xffffffff) /usr/lib/golang/src/runtime/mheap.go:1255 +0xa3 fp=0x7ffd520bfe90 sp=0x7ffd520bfe40 pc=0x427e83 runtime.(mheap).allocSpanLocked(0xf6b1c0, 0x1, 0xf83928, 0x1) /usr/lib/golang/src/runtime/mheap.go:1170 +0x266 fp=0x7ffd520bff10 sp=0x7ffd520bfe90 pc=0x427d16 runtime.(mheap).alloc_m(0xf6b1c0, 0x1, 0x45002a, 0x0) /usr/lib/golang/src/runtime/mheap.go:1022 +0xc2 fp=0x7ffd520bff60 sp=0x7ffd520bff10 pc=0x4275b2 runtime.(mheap).alloc.func1() /usr/lib/golang/src/runtime/mheap.go:1093 +0x4c fp=0x7ffd520bff98 sp=0x7ffd520bff60 pc=0x45a75c runtime.(mheap).alloc(0xf6b1c0, 0x1, 0x1002a, 0x40000) /usr/lib/golang/src/runtime/mheap.go:1092 +0x8a fp=0x7ffd520bffe8 sp=0x7ffd520bff98 pc=0x42789a runtime.(mcentral).grow(0xf6bff8, 0x0) /usr/lib/golang/src/runtime/mcentral.go:255 +0x7b fp=0x7ffd520c0028 sp=0x7ffd520bffe8 pc=0x4197eb runtime.(mcentral).cacheSpan(0xf6bff8, 0x7f92dc21d000) /usr/lib/golang/src/runtime/mcentral.go:106 +0x2fe fp=0x7ffd520c0088 sp=0x7ffd520c0028 pc=0x41930e runtime.(mcache).refill(0x7f92dc21d008, 0x2a) /usr/lib/golang/src/runtime/mcache.go:138 +0x85 fp=0x7ffd520c00a8 sp=0x7ffd520c0088 pc=0x418db5 runtime.(mcache).nextFree(0x7f92dc21d008, 0xf8392a, 0x7f92dc21d008, 0x8, 0xfffffffffffffff8) /usr/lib/golang/src/runtime/malloc.go:854 +0x87 fp=0x7ffd520c00e0 sp=0x7ffd520c00a8 pc=0x40d887 runtime.mallocgc(0x180, 0xa7daa0, 0x1, 0xf83980) /usr/lib/golang/src/runtime/malloc.go:1022 +0x793 fp=0x7ffd520c0180 sp=0x7ffd520c00e0 pc=0x40e1c3 runtime.newobject(0xa7daa0, 0x4000) /usr/lib/golang/src/runtime/malloc.go:1151 +0x38 fp=0x7ffd520c01b0 sp=0x7ffd520c0180 pc=0x40e5b8 runtime.malg(0x85e00008000, 0xf6d868) /usr/lib/golang/src/runtime/proc.go:3232 +0x31 fp=0x7ffd520c01f0 sp=0x7ffd520c01b0 pc=0x43a2c1 runtime.mpreinit(...) /usr/lib/golang/src/runtime/os_linux.go:324 runtime.mcommoninit(0xf65c80) /usr/lib/golang/src/runtime/proc.go:626 +0xc2 fp=0x7ffd520c0228 sp=0x7ffd520c01f0 pc=0x433ce2 runtime.schedinit() /usr/lib/golang/src/runtime/proc.go:543 +0x72 fp=0x7ffd520c0280 sp=0x7ffd520c0228 pc=0x433942 runtime.rt0_go(0x7ffd520c02b8, 0x1, 0x7ffd520c02b8, 0x0, 0x7f92dc04815a, 0x1, 0x7ffd520c1720, 0x0, 0x7ffd520c1726, 0x7ffd520c1738, ...) /usr/lib/golang/src/runtime/asm_amd64.s:214 +0x125 fp=0x7ffd520c0288 sp=0x7ffd520c0280 pc=0x45cc15

skyfly2000 commented 4 years ago

把服务器调整为1cpu 2G ram,看视频的时候,网页打不开,刷新网页视频卡顿。 2019/11/20 18:25:08.987 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:37153: write: broken pipe 2019/11/20 18:25:08.999 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:37154: write: broken pipe 2019/11/20 18:25:09.111 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37158, target 172.20.2.99:32400 2019/11/20 18:25:09.201 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37159, target 172.20.2.99:32400 2019/11/20 18:25:09.402 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37162, target 172.20.2.99:32400 2019/11/20 18:25:09.573 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37163, target 172.20.2.99:32400 2019/11/20 18:25:09.596 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:36003: write: connection reset by peer 2019/11/20 18:25:09.643 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/parts/3568/1572208453/file.mp4, remote address 112.3.245.232:37167, target 172.20.2.99:32400 2019/11/20 18:25:09.991 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/parts/3568/1572208453/file.mp4, remote address 112.3.245.232:37170, target 172.20.2.99:32400 2019/11/20 18:25:10.026 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37163, target 172.20.2.99:32400 2019/11/20 18:25:10.061 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:37167: write: broken pipe 2019/11/20 18:25:10.281 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37171, target 172.20.2.99:32400 2019/11/20 18:25:13.104 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:37020, target 172.20.2.99:80 2019/11/20 18:25:13.679 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37163, target 172.20.2.99:32400 2019/11/20 18:25:16.522 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37163, target 172.20.2.99:32400 2019/11/20 18:25:16.528 [D] [http.go:218] http request, method GET, host px.oool.cc, url /subtitles/:/transcode/universal/start, remote address 112.3.245.232:37171, target 172.20.2.99:32400 2019/11/20 18:25:23.670 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37163, target 172.20.2.99:32400 2019/11/20 18:25:31.711 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:37020, target 172.20.2.99:80 2019/11/20 18:25:33.187 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:37315, target 172.20.2.99:80 2019/11/20 18:25:34.014 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37325, target 172.20.2.99:32400 2019/11/20 18:25:34.419 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:37323, target 172.20.2.99:80 2019/11/20 18:25:35.393 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:37331, target 172.20.2.99:80 2019/11/20 18:25:36.094 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:37333, target 172.20.2.99:80 2019/11/20 18:25:43.670 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37163, target 172.20.2.99:32400 2019/11/20 18:25:50.782 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37581, target 172.20.2.99:32400 2019/11/20 18:25:50.782 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37580, target 172.20.2.99:32400 2019/11/20 18:25:50.840 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37582, target 172.20.2.99:32400 2019/11/20 18:25:51.082 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37583, target 172.20.2.99:32400 2019/11/20 18:25:51.318 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37584, target 172.20.2.99:32400 2019/11/20 18:25:51.318 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37591, target 172.20.2.99:32400 2019/11/20 18:25:51.372 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37592, target 172.20.2.99:32400 2019/11/20 18:25:51.372 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37587, target 172.20.2.99:32400 2019/11/20 18:25:51.372 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37586, target 172.20.2.99:32400 2019/11/20 18:25:51.373 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37588, target 172.20.2.99:32400 2019/11/20 18:25:51.528 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37597, target 172.20.2.99:32400 2019/11/20 18:25:51.528 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37598, target 172.20.2.99:32400 2019/11/20 18:25:51.658 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37600, target 172.20.2.99:32400 2019/11/20 18:25:51.659 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37601, target 172.20.2.99:32400 2019/11/20 18:25:51.660 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37596, target 172.20.2.99:32400 2019/11/20 18:25:51.759 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37613, target 172.20.2.99:32400 2019/11/20 18:25:51.760 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37604, target 172.20.2.99:32400 2019/11/20 18:25:51.760 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37606, target 172.20.2.99:32400 2019/11/20 18:25:51.858 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37616, target 172.20.2.99:32400 2019/11/20 18:25:51.859 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37615, target 172.20.2.99:32400 2019/11/20 18:25:51.945 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37610, target 172.20.2.99:32400 2019/11/20 18:25:51.945 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37618, target 172.20.2.99:32400 2019/11/20 18:25:51.984 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:37170: write: broken pipe 2019/11/20 18:25:52.029 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37630, target 172.20.2.99:32400 2019/11/20 18:25:52.240 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/parts/3568/1572208453/file.mp4, remote address 112.3.245.232:37634, target 172.20.2.99:32400 2019/11/20 18:25:52.789 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37651, target 172.20.2.99:32400 2019/11/20 18:25:53.935 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37664, target 172.20.2.99:32400 2019/11/20 18:26:10.867 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37778, target 172.20.2.99:32400 2019/11/20 18:26:10.867 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37779, target 172.20.2.99:32400 2019/11/20 18:26:10.922 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37782, target 172.20.2.99:32400 2019/11/20 18:26:12.307 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37799, target 172.20.2.99:32400 2019/11/20 18:26:12.307 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37800, target 172.20.2.99:32400 2019/11/20 18:26:12.307 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:37801, target 172.20.2.99:32400 2019/11/20 18:26:16.390 [D] [http.go:218] http request, method GET, host www.oool.cc, url /, remote address 112.3.245.232:37849, target 172.20.2.99:80 2019/11/20 18:26:35.109 [E] [http.go:222] EOF 2019/11/20 18:26:38.336 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37163, target 172.20.2.99:32400 2019/11/20 18:26:40.273 [E] [http.go:222] EOF 2019/11/20 18:26:43.946 [E] [http.go:222] EOF 2019/11/20 18:26:45.780 [E] [http.go:222] EOF 2019/11/20 18:27:00.890 [D] [http.go:218] http request, method GET, host www.oool.cc, url /, remote address 112.3.245.232:36268, target 172.20.2.99:80 2019/11/20 18:27:01.726 [E] [http.go:222] EOF 2019/11/20 18:27:01.741 [E] [http.go:222] EOF 2019/11/20 18:27:01.742 [E] [http.go:222] EOF 2019/11/20 18:27:01.742 [E] [http.go:222] EOF 2019/11/20 18:27:01.752 [E] [http.go:222] EOF 2019/11/20 18:27:01.755 [E] [http.go:222] EOF 2019/11/20 18:27:01.755 [E] [http.go:222] EOF 2019/11/20 18:27:01.755 [E] [http.go:222] EOF 2019/11/20 18:27:01.755 [E] [http.go:222] EOF 2019/11/20 18:27:01.755 [E] [http.go:222] EOF 2019/11/20 18:27:01.755 [E] [http.go:222] EOF 2019/11/20 18:27:01.755 [E] [http.go:222] EOF 2019/11/20 18:27:01.767 [E] [http.go:222] EOF 2019/11/20 18:27:01.767 [E] [http.go:222] EOF 2019/11/20 18:27:01.773 [E] [http.go:222] EOF 2019/11/20 18:27:01.773 [E] [http.go:222] EOF 2019/11/20 18:27:01.773 [E] [http.go:222] EOF 2019/11/20 18:27:01.778 [E] [http.go:222] EOF 2019/11/20 18:27:01.778 [E] [http.go:222] EOF 2019/11/20 18:27:01.778 [E] [http.go:222] EOF 2019/11/20 18:27:01.784 [E] [http.go:222] EOF 2019/11/20 18:27:01.784 [E] [http.go:222] EOF 2019/11/20 18:27:01.784 [E] [http.go:222] EOF 2019/11/20 18:27:01.784 [E] [http.go:222] EOF 2019/11/20 18:27:01.784 [E] [http.go:222] EOF 2019/11/20 18:27:01.790 [E] [http.go:222] io: write on closed conn 2019/11/20 18:27:01.792 [E] [http.go:222] io: write on closed conn 2019/11/20 18:27:01.795 [E] [http.go:222] io: write on closed conn 2019/11/20 18:27:01.795 [E] [http.go:222] EOF 2019/11/20 18:27:01.795 [E] [http.go:222] EOF 2019/11/20 18:27:01.797 [E] [http.go:222] io: write on closed conn 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.799 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.798 [E] [http.go:222] EOF 2019/11/20 18:27:01.799 [E] [http.go:222] EOF 2019/11/20 18:27:01.799 [E] [http.go:222] EOF 2019/11/20 18:27:01.953 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36296, target 172.20.2.99:32400 2019/11/20 18:27:01.954 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36295, target 172.20.2.99:32400 2019/11/20 18:27:01.958 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36293, target 172.20.2.99:32400 2019/11/20 18:27:01.995 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36294, target 172.20.2.99:32400 2019/11/20 18:27:02.083 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36299, target 172.20.2.99:32400 2019/11/20 18:27:02.224 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36295, target 172.20.2.99:32400 2019/11/20 18:27:02.272 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/parts/3568/1572208453/file.mp4, remote address 112.3.245.232:36311, target 172.20.2.99:32400 2019/11/20 18:27:02.597 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36299, target 172.20.2.99:32400 2019/11/20 18:27:02.622 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36295, target 172.20.2.99:32400 2019/11/20 18:27:02.675 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36294, target 172.20.2.99:32400 2019/11/20 18:27:02.833 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36293, target 172.20.2.99:32400 2019/11/20 18:27:02.858 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36296, target 172.20.2.99:32400 2019/11/20 18:27:02.892 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:36294: write: broken pipe 2019/11/20 18:27:03.053 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:36296: write: broken pipe 2019/11/20 18:27:03.083 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36325, target 172.20.2.99:32400 2019/11/20 18:27:03.240 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36326, target 172.20.2.99:32400 2019/11/20 18:27:03.627 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36328, target 172.20.2.99:32400 2019/11/20 18:27:03.962 [D] [http.go:218] http request, method GET, host px.oool.cc, url /subtitles/:/transcode/universal/start, remote address 112.3.245.232:36326, target 172.20.2.99:32400 2019/11/20 18:27:04.821 [D] [http.go:218] http request, method GET, host www.oool.cc, url /wp-content/uploads/2019/11/cropped-logo0-3-32x32.png, remote address 112.3.245.232:36268, target 172.20.2.99:80 2019/11/20 18:27:05.763 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36342, target 172.20.2.99:32400 2019/11/20 18:27:05.764 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36340, target 172.20.2.99:32400 2019/11/20 18:27:05.764 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36344, target 172.20.2.99:32400 2019/11/20 18:27:05.814 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:36311: write: broken pipe 2019/11/20 18:27:05.867 [D] [http.go:218] http request, method GET, host px.oool.cc, url /photo/:/transcode, remote address 112.3.245.232:36345, target 172.20.2.99:32400 2019/11/20 18:27:06.146 [D] [http.go:218] http request, method GET, host px.oool.cc, url /library/parts/3568/1572208453/file.mp4, remote address 112.3.245.232:36346, target 172.20.2.99:32400 2019/11/20 18:27:06.581 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36352, target 172.20.2.99:32400 2019/11/20 18:27:06.806 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36328, target 172.20.2.99:32400 2019/11/20 18:27:11.749 [E] [http.go:189] write tcp 10.0.0.5:80->112.3.245.232:36344: write: broken pipe 2019/11/20 18:27:13.011 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36345, target 172.20.2.99:32400 2019/11/20 18:27:13.036 [D] [http.go:218] http request, method GET, host px.oool.cc, url /subtitles/:/transcode/universal/start, remote address 112.3.245.232:36352, target 172.20.2.99:32400 2019/11/20 18:27:13.682 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36345, target 172.20.2.99:32400 2019/11/20 18:27:23.676 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36345, target 172.20.2.99:32400 2019/11/20 18:27:33.673 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36345, target 172.20.2.99:32400 2019/11/20 18:27:34.511 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:36268, target 172.20.2.99:80 2019/11/20 18:27:38.906 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:36535, target 172.20.2.99:80 2019/11/20 18:27:43.678 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:36345, target 172.20.2.99:32400

skyfly2000 commented 4 years ago

@ffdfgdfg 测试了三遍,第一遍打开plex视频(4k)三分钟服务端挂掉,VPS为1cpu 2GB RAM,日志报错内存不足。第二遍看打开plex视频(4k)打开wordpress(部署在群晖上)服务端挂掉。第三遍调整vps为1u2GB内存,打开plex视频(4k),其他网页打不开,不断刷新网页视频会卡顿,打开视频5分钟左右nps服务端挂掉,看日志看不懂为什么会挂掉,日志如下(前两次测试情况以上面日志): 2019/11/20 18:28:24.670 [D] [http.go:218] http request, method GET, host www.oool.cc, url /2019/11/13/深秋的明孝陵/, remote address 112.3.245.232:36535, target 172.20.2.99:80 2019/11/20 18:28:33.670 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:28:43.668 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:28:53.680 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:29:01.836 [D] [http.go:218] http request, method GET, host www.oool.cc, url /, remote address 112.3.245.232:37572, target 172.20.2.99:80 2019/11/20 18:29:03.666 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:29:13.742 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:29:17.775 [D] [http.go:218] http request, method GET, host www.oool.cc, url /, remote address 112.3.245.232:37572, target 172.20.2.99:80 2019/11/20 18:29:23.672 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:29:33.668 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:29:43.699 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:29:53.664 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:30:03.667 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:30:13.670 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:30:24.043 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:30:33.776 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:30:43.713 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:30:53.680 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:31:03.669 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:31:13.673 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:31:23.669 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:31:33.687 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:31:43.665 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:31:53.700 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:32:04.154 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:32:13.668 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37114, target 172.20.2.99:32400 2019/11/20 18:32:23.680 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:32:33.664 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:32:43.673 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:32:53.669 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:33:03.669 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:33:09.016 [D] [http.go:218] http request, method GET, host px.oool.cc, url /media/providers, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:33:11.019 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/websockets/notifications, remote address 112.3.245.232:35989, target 172.20.2.99:32400 2019/11/20 18:33:11.245 [D] [http.go:218] http request, method GET, host px.oool.cc, url /activities, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:33:13.715 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:33:24.115 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:33:33.669 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:33:43.666 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:33:53.669 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:34:03.669 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400 2019/11/20 18:34:13.675 [D] [http.go:218] http request, method GET, host px.oool.cc, url /:/timeline, remote address 112.3.245.232:37322, target 172.20.2.99:32400

skyfly2000 commented 4 years ago

是不是动态发包对内存要求比较高?如果对内存要求很高的话,这个项目就不好玩了,vps很贵的。 在群晖上,感觉还是0.23.2服务端搭配0.23.1spk客户端最稳定,一直没出过什么问题

ffdfgdfg commented 4 years ago

grep "Out of memory" /var/log/messages 看下是不是系统干掉nps了 之前引入了goroutine池,测试内存消耗还降低了的,怎么你这边吃这么多内存

skyfly2000 commented 4 years ago

@ffdfgdfg 服务器死机了,ssh都进不去,web管理页进去重启的。我现在出来了,晚上有应酬,如果没喝醉,晚点我再试试,grep "Out of memory" /var/log/messages这个不太明白,你说详细点

ffdfgdfg commented 4 years ago

有个oom killer当系统内存不足时会主动干掉当前占用最大的进程,你说服务端挂掉,如果进程退出而又没有报错,可能就是被系统干掉了,这句查一查系统的日志,看是不是被干掉了

skyfly2000 commented 4 years ago

@ffdfgdfg 没看到有被killer掉的进程,我把那个时间段的日志发出,你来看看 Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.370195 INFO ExtHandler Started tracking new cgroup: walinuxagent.service, path: /sys/fs/cgroup/memory/system.slice/waagent.service Nov 20 18:21:15 nps systemd: Reloading. Nov 20 18:21:15 nps systemd: Created slice Slice for walinuxagent extensions. Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.558273 INFO ExtHandler Route table: [{"Iface": "eth0", "Destination": "0.0.0.0", "Gateway": "10.0.0.1", "Mask": "0.0.0.0", "Flags": "0x0003", "Metric": "100"},{"Iface": "eth0", "Destination": "10.0.0.0", "Gateway": "0.0.0.0", "Mask": "255.255.255.0", "Flags": "0x0001", "Metric": "100"},{"Iface": "eth0", "Destination": "168.63.129.16", "Gateway": "10.0.0.1", "Mask": "255.255.255.255", "Flags": "0x0007", "Metric": "100"},{"Iface": "eth0", "Destination": "169.254.169.254", "Gateway": "10.0.0.1", "Mask": "255.255.255.255", "Flags": "0x0007", "Metric": "100"}] Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.587572 INFO ExtHandler Created slice for walinuxagent extensions system-walinuxagent.extensions.slice Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.598730 INFO ExtHandler Wire server endpoint:168.63.129.16 Nov 20 18:21:15 nps kernel: nf_conntrack version 0.5.0 (16384 buckets, 65536 max) Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.641591 INFO ExtHandler Initial NIC state: [{ "name": "lo", "link": "<LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00" }, { "name": "eth0", "link": "<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\ link/ether 00:0d:3a:80:ad:16 brd ff:ff:ff:ff:ff:ff" }] Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.692192 INFO ExtHandler Wire server endpoint:168.63.129.16 Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.774232 INFO ExtHandler Successfully added Azure fabric firewall rules Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.786005 INFO ExtHandler Firewall rules: Nov 20 18:21:15 nps python: Chain INPUT (policy ACCEPT 7 packets, 6082 bytes) Nov 20 18:21:15 nps python: pkts bytes target prot opt in out source destination Nov 20 18:21:15 nps python: Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) Nov 20 18:21:15 nps python: pkts bytes target prot opt in out source destination Nov 20 18:21:15 nps python: Chain OUTPUT (policy ACCEPT 9 packets, 1119 bytes) Nov 20 18:21:15 nps python: pkts bytes target prot opt in out source destination Nov 20 18:21:15 nps python: 0 0 ACCEPT tcp -- 0.0.0.0/0 168.63.129.16 owner UID match 0 Nov 20 18:21:15 nps python: 0 0 DROP tcp -- 0.0.0.0/0 168.63.129.16 ctstate INVALID,NEW Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.848013 INFO ExtHandler Set block dev timeout: sdb with timeout: 300 Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.852493 INFO ExtHandler Set block dev timeout: sda with timeout: 300 Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.861443 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15] Target handler state: enabled Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.869592 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15] [Enable] current handler state is: enabled Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.876044 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15] Update settings file: 0.settings Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.885255 INFO [Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15] Enable extension [omsagent.py -enable] Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.901365 INFO ExtHandler Started extension using scope 'Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux_1.12.15_ec3e3443-2966-4968-b9d5-d92654114c8f' Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.915105 INFO ExtHandler Started tracking new cgroup: Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15, path: /sys/fs/cgroup/cpu/system.slice/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux_1.12.15_ec3e3443-2966-4968-b9d5-d92654114c8f.scope Nov 20 18:21:15 nps systemd: Started /var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15/omsagent.py -enable. Nov 20 18:21:15 nps python: 2019/11/20 18:21:15.938314 INFO ExtHandler Started tracking new cgroup: Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15, path: /sys/fs/cgroup/memory/system.slice/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux_1.12.15_ec3e3443-2966-4968-b9d5-d92654114c8f.scope Nov 20 18:21:16 nps omsagent[1341]: Reusing previous agent GUID 6b7153ab-2f72-4e25-b4eb-3a688c031cd4 Nov 20 18:21:16 nps omsagent[1342]: Agent GUID is 6b7153ab-2f72-4e25-b4eb-3a688c031cd4 Nov 20 18:21:17 nps omsagent[1444]: Onboarding success Nov 20 18:21:17 nps systemd: Stopping System Logging Service... Nov 20 18:21:17 nps rsyslogd: [origin software="rsyslogd" swVersion="8.24.0-41.el7_7" x-pid="1068" x-info="http://www.rsyslog.com"] exiting on signal 15. Nov 20 18:21:17 nps systemd: Stopped System Logging Service. Nov 20 18:21:17 nps systemd: Starting System Logging Service... Nov 20 18:21:17 nps rsyslogd: [origin software="rsyslogd" swVersion="8.24.0-41.el7_7" x-pid="1547" x-info="http://www.rsyslog.com"] start Nov 20 18:21:17 nps systemd: Started System Logging Service. Nov 20 18:21:18 nps su: (to omsagent) root on none Nov 20 18:21:18 nps systemd: Created slice User Slice of omsagent. Nov 20 18:21:18 nps systemd: Started Session c1 of user omsagent. Nov 20 18:21:20 nps systemd: Created slice User Slice of root. Nov 20 18:21:20 nps systemd: Started Session c2 of user root. Nov 20 18:21:22 nps auoms: Output(683fbc2d-a23c-4173-9def-491ba3679c77): Connecting to /var/opt/microsoft/omsagent/683fbc2d-a23c-4173-9def-491ba3679c77/run/auoms.socket Nov 20 18:21:22 nps auoms: Output(683fbc2d-a23c-4173-9def-491ba3679c77): Connected Nov 20 18:21:25 nps systemd: Removed slice User Slice of root. Nov 20 18:21:25 nps systemd: Created slice User Slice of root. Nov 20 18:21:25 nps systemd: Started Session c3 of user root. Nov 20 18:21:26 nps systemd: Removed slice User Slice of root. Nov 20 18:21:48 nps kernel: hv_balloon: INFO_TYPE_MAX_PAGE_CNT = 524288 Nov 20 18:22:01 nps systemd: Created slice User Slice of root. Nov 20 18:22:01 nps systemd: Started Session 1 of user root. Nov 20 18:22:01 nps systemd: Removed slice User Slice of root. Nov 20 18:22:06 nps systemd: Created slice User Slice of root. Nov 20 18:22:06 nps systemd: Started Session 2 of user root. Nov 20 18:22:06 nps systemd-logind: New session 2 of user root. Nov 20 18:22:06 nps systemd-logind: New session 2 of user root. Nov 20 18:22:07 nps dbus[746]: [system] Activating service name='org.freedesktop.problems' (using servicehelper) Nov 20 18:22:07 nps dbus[746]: [system] Successfully activated service 'org.freedesktop.problems' Nov 20 18:22:17 nps systemd: Started Session c4 of user root. Nov 20 18:22:17 nps systemd: Started Session c5 of user root. Nov 20 18:22:17 nps systemd: Started Session c6 of user root. Nov 20 18:22:21 nps omsagent[1879]: Configured omsconfig Nov 20 18:22:21 nps systemd: Removed slice User Slice of omsagent. Nov 20 18:22:26 nps systemd: Stopping Operations Management Suite agent... Nov 20 18:22:27 nps systemd: Stopped Operations Management Suite agent. Nov 20 18:22:27 nps systemd: Started Operations Management Suite agent. Nov 20 18:22:27 nps auoms: Output(683fbc2d-a23c-4173-9def-491ba3679c77): Connection lost Nov 20 18:22:27 nps auoms: Output(683fbc2d-a23c-4173-9def-491ba3679c77): Connecting to /var/opt/microsoft/omsagent/683fbc2d-a23c-4173-9def-491ba3679c77/run/auoms.socket Nov 20 18:22:27 nps auoms: Output(683fbc2d-a23c-4173-9def-491ba3679c77): Failed to connect to '/var/opt/microsoft/omsagent/683fbc2d-a23c-4173-9def-491ba3679c77/run/auoms.socket': Connection refused Nov 20 18:22:27 nps auoms: Output(683fbc2d-a23c-4173-9def-491ba3679c77): Sleeping 1 seconds before re-trying connection Nov 20 18:22:28 nps auoms: Output(683fbc2d-a23c-4173-9def-491ba3679c77): Connecting to /var/opt/microsoft/omsagent/683fbc2d-a23c-4173-9def-491ba3679c77/run/auoms.socket Nov 20 18:22:28 nps auoms: Output(683fbc2d-a23c-4173-9def-491ba3679c77): Connected Nov 20 18:22:29 nps systemd: Started Session c7 of user root. Nov 20 18:22:29 nps systemd: Started Session c8 of user root. Nov 20 18:22:30 nps python: 2019/11/20 18:22:30.224677 INFO ExtHandler Wire server endpoint:168.63.129.16 Nov 20 18:22:30 nps python: 2019/11/20 18:22:30.229959 INFO ExtHandler ProcessGoalState completed [incarnation 1; 74537 ms] Nov 20 18:23:01 nps systemd: Started Session 3 of user root. Nov 20 18:23:28 nps systemd: Started Session c9 of user root. Nov 20 18:23:28 nps systemd: Started Session c10 of user root. Nov 20 18:23:28 nps systemd: Started Session c11 of user root. Nov 20 18:24:01 nps systemd: Started Session 4 of user root. Nov 20 18:25:01 nps systemd: Started Session 5 of user root. Nov 20 18:25:01 nps systemd: Started Session 6 of user root. Nov 20 18:26:01 nps systemd: Started Session 7 of user root. Nov 20 18:26:15 nps python: 2019/11/20 18:26:15.941118 INFO ExtHandler Stopped tracking cgroup: walinuxagent.service, path: /sys/fs/cgroup/cpu/system.slice/waagent.service Nov 20 18:26:15 nps python: 2019/11/20 18:26:15.959717 INFO ExtHandler Stopped tracking cgroup: walinuxagent.service, path: /sys/fs/cgroup/memory/system.slice/waagent.service Nov 20 18:26:15 nps python: 2019/11/20 18:26:15.967012 INFO ExtHandler Stopped tracking cgroup: Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15, path: /sys/fs/cgroup/cpu/system.slice/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux_1.12.15_ec3e3443-2966-4968-b9d5-d92654114c8f.scope Nov 20 18:26:15 nps python: 2019/11/20 18:26:15.984744 INFO ExtHandler Stopped tracking cgroup: Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.12.15, path: /sys/fs/cgroup/memory/system.slice/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux_1.12.15_ec3e3443-2966-4968-b9d5-d92654114c8f.scope Nov 20 18:27:01 nps systemd: Started Session 8 of user root. Nov 20 18:28:01 nps systemd: Started Session 9 of user root. Nov 20 18:28:47 nps chronyd[794]: Selected source 37.218.240.198 Nov 20 18:29:01 nps systemd: Started Session 10 of user root. Nov 20 18:30:01 nps systemd: Started Session 11 of user root. Nov 20 18:30:01 nps systemd: Created slice User Slice of omsagent. Nov 20 18:30:01 nps systemd: Started Session 12 of user omsagent. Nov 20 18:30:01 nps systemd: Started Session 13 of user root. Nov 20 18:30:01 nps systemd: Started Session 14 of user root. Nov 20 18:30:01 nps systemd: Started Session 15 of user root. Nov 20 18:30:21 nps auditd[712]: Audit daemon rotating log files Nov 20 18:30:30 nps systemd: Removed slice User Slice of omsagent. Nov 20 18:31:01 nps systemd: Started Session 16 of user root. Nov 20 18:32:01 nps systemd: Started Session 17 of user root. Nov 20 18:33:01 nps systemd: Started Session 18 of user root. Nov 20 18:34:01 nps systemd: Started Session 19 of user root. Nov 20 18:35:01 nps systemd: Started Session 20 of user root. Nov 20 18:35:01 nps systemd: Started Session 21 of user root.

skyfly2000 commented 4 years ago

这应该是另一个测试的时间段 Nov 20 18:14:48 nps auoms: Received unexpected NETLINK packet (Type: 1000, Flags: 0x0, Seq: 671, Size: 40 Nov 20 18:20:11 nps kernel: hv_utils: Shutdown request received - graceful shutdown initiated Nov 20 18:20:11 nps kernel: gmain invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 20 18:20:11 nps kernel: gmain cpuset=/ mems_allowed=0 Nov 20 18:20:11 nps kernel: CPU: 0 PID: 774 Comm: gmain Tainted: G O 4.11.8-1.el7.elrepo.x86_64 #1 Nov 20 18:20:11 nps kernel: Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090007 06/02/2017 Nov 20 18:20:11 nps kernel: Call Trace: Nov 20 18:20:11 nps kernel: dump_stack+0x63/0x87 Nov 20 18:20:11 nps kernel: dump_header+0x9f/0x233 Nov 20 18:20:11 nps kernel: ? selinux_capable+0x20/0x30 Nov 20 18:20:11 nps kernel: ? security_capable_noaudit+0x45/0x60 Nov 20 18:20:11 nps kernel: oom_kill_process+0x21c/0x3f0 Nov 20 18:20:11 nps kernel: out_of_memory+0x114/0x4a0 Nov 20 18:20:11 nps kernel: alloc_pages_slowpath+0x814/0xbd7 Nov 20 18:20:11 nps kernel: alloc_pages_nodemask+0x216/0x230 Nov 20 18:20:11 nps kernel: alloc_pages_current+0x88/0x120 Nov 20 18:20:11 nps kernel: page_cache_alloc+0xb4/0xc0 Nov 20 18:20:11 nps kernel: filemap_fault+0x56e/0x6c0 Nov 20 18:20:11 nps kernel: ? page_add_file_rmap+0x103/0x150 Nov 20 18:20:11 nps kernel: ? down_read+0x12/0x40 Nov 20 18:20:11 nps kernel: xfs_filemap_fault+0x44/0xa0 [xfs] Nov 20 18:20:11 nps kernel: do_fault+0x1e/0x70 Nov 20 18:20:11 nps kernel: handle_mm_fault+0xac0/0x1170 Nov 20 18:20:11 nps kernel: ? slab_free+0x9b/0x2c0 Nov 20 18:20:11 nps kernel: handle_mm_fault+0xd1/0x250 Nov 20 18:20:11 nps kernel: do_page_fault+0x22a/0x4a0 Nov 20 18:20:11 nps kernel: do_page_fault+0x30/0x80 Nov 20 18:20:11 nps kernel: ? do_syscall_64+0x175/0x180 Nov 20 18:20:11 nps kernel: page_fault+0x28/0x30 Nov 20 18:20:11 nps kernel: RIP: 0033:0x7fa361b45242 Nov 20 18:20:11 nps kernel: RSP: 002b:00007fa354dc8b90 EFLAGS: 00010202 Nov 20 18:20:11 nps kernel: RAX: 0000000000000002 RBX: 0000000000000000 RCX: 0000000000000001 Nov 20 18:20:11 nps kernel: RDX: 00007fa354dc9a10 RSI: 0000000000000001 RDI: 0000000000000000 Nov 20 18:20:11 nps kernel: RBP: 000055ac8f527b00 R08: 0000000000000000 R09: 0000000000000000 Nov 20 18:20:11 nps kernel: R10: 000055ac8f4ecf30 R11: 0000000000000202 R12: 0000000000000000 Nov 20 18:20:11 nps kernel: R13: 00007fa361dcd0e0 R14: 000055ac8f52f3d0 R15: 00007fa3615d8940 Nov 20 18:20:11 nps kernel: Mem-Info: Nov 20 18:20:11 nps kernel: active_anon:150983 inactive_anon:1550 isolated_anon:0#012 active_file:604 inactive_file:5730 isolated_file:0#012 unevictable:0 dirty:1 writeback:0 unstable:0#012 slab_reclaimable:5252 slab_unreclaimable:9970#012 mapped:1008 shmem:1717 pagetables:2677 bounce:0#012 free:12114 free_pcp:182 free_cma:0 Nov 20 18:20:11 nps kernel: Node 0 active_anon:603932kB inactive_anon:6200kB active_file:2416kB inactive_file:22920kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:4032kB dirty:4kB writeback:0kB shmem:6868kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 92160kB writeback_tmp:0kB unstable:0kB pages_scanned:43353 all_unreclaimable? yes Nov 20 18:20:11 nps kernel: Node 0 DMA free:4272kB min:788kB low:984kB high:1180kB active_anon:10240kB inactive_anon:0kB active_file:0kB inactive_file:172kB unevictable:0kB writepending:0kB present:15992kB managed:15908kB mlocked:0kB slab_reclaimable:24kB slab_unreclaimable:56kB kernel_stack:0kB pagetables:56kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Nov 20 18:20:11 nps kernel: lowmem_reserve[]: 0 871 871 871 Nov 20 18:20:11 nps kernel: Node 0 DMA32 free:44184kB min:44264kB low:55328kB high:66392kB active_anon:593692kB inactive_anon:6200kB active_file:2416kB inactive_file:22744kB unevictable:0kB writepending:4kB present:1032128kB managed:913900kB mlocked:0kB slab_reclaimable:20984kB slab_unreclaimable:39824kB kernel_stack:6144kB pagetables:10652kB bounce:0kB free_pcp:728kB local_pcp:728kB free_cma:0kB Nov 20 18:20:11 nps kernel: lowmem_reserve[]: 0 0 0 0 Nov 20 18:20:11 nps kernel: Node 0 DMA: 04kB 148kB (UM) 1416kB (UME) 732kB (UME) 664kB (ME) 2128kB (M) 4256kB (UME) 2512kB (UM) 11024kB (E) 02048kB 04096kB = 4272kB Nov 20 18:20:11 nps kernel: Node 0 DMA32: 204kB (UE) 6878kB (UME) 34516kB (UE) 10832kB (UME) 5364kB (UMEH) 29128kB (ME) 22256kB (MEH) 11512kB (UMEH) 111024kB (MEH) 02048kB 04096kB = 44184kB Nov 20 18:20:11 nps kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Nov 20 18:20:11 nps kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB Nov 20 18:20:11 nps kernel: 8065 total pagecache pages Nov 20 18:20:11 nps kernel: 0 pages in swap cache Nov 20 18:20:11 nps kernel: Swap cache stats: add 0, delete 0, find 0/0 Nov 20 18:20:11 nps kernel: Free swap = 0kB Nov 20 18:20:11 nps kernel: Total swap = 0kB Nov 20 18:20:11 nps kernel: 262030 pages RAM Nov 20 18:20:11 nps kernel: 0 pages HighMem/MovableOnly Nov 20 18:20:11 nps kernel: 29578 pages reserved Nov 20 18:20:11 nps kernel: 0 pages hwpoisoned

skyfly2000 commented 4 years ago

Nov 20 18:20:11 nps kernel: gmain invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null), order=0, oom_score_adj=0

skyfly2000 commented 4 years ago

这一段时间的,但今天最后一次服务器死掉没有killer记录。期间有几次测试,但具体时间记不得了。Nov 18 08:32:10 nps kernel: omsagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:32:26 nps kernel: sh invoked oom-killer: gfp_mask=0x17080c0(GFP_KERNEL_ACCOUNT|GFP_ZERO|GFP_NOTRACK), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:32:48 nps kernel: omsagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:33:17 nps kernel: pgrep invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:33:34 nps kernel: sshd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:33:42 nps kernel: sshd invoked oom-killer: gfp_mask=0x14200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:33:48 nps kernel: sh invoked oom-killer: gfp_mask=0x17080c0(GFP_KERNEL_ACCOUNT|GFP_ZERO|GFP_NOTRACK), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:33:58 nps kernel: sshd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:34:02 nps kernel: sh invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:34:02 nps kernel: omsbaseline invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:34:40 nps kernel: omiengine invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:35:00 nps kernel: semodule invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:35:21 nps kernel: auomscollect invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:35:41 nps kernel: in:imjournal invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:36:20 nps kernel: semodule invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:36:36 nps kernel: semodule invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:37:11 nps kernel: semodule invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:37:24 nps kernel: semodule invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:39:04 nps kernel: gmain invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:39:25 nps kernel: sh invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:39:25 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:39:25 nps kernel: sudo invoked oom-killer: gfp_mask=0x17080c0(GFP_KERNEL_ACCOUNT|GFP_ZERO|GFP_NOTRACK), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:39:26 nps kernel: timeout.rb:83 invoked oom-killer: gfp_mask=0x14280ca(GFP_HIGHUSER_MOVABLE|GFP_ZERO), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:39:32 nps kernel: omiserver invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:39:32 nps kernel: omiserver invoked oom-killer: gfp_mask=0x16040c0(GFP_KERNEL|GFP_COMP|GFP_NOTRACK), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:40:08 nps kernel: yum invoked oom-killer: gfp_mask=0x14280ca(GFP_HIGHUSER_MOVABLE|GFP_ZERO), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:46:07 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:46:07 nps kernel: omsagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:46:19 nps kernel: sleep invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:46:49 nps kernel: sh invoked oom-killer: gfp_mask=0x14200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:47:09 nps kernel: tuned invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:48:32 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:49:05 nps kernel: tuned invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:49:25 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:49:25 nps kernel: omiengine invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:49:25 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:49:25 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 08:49:38 nps kernel: yum invoked oom-killer: gfp_mask=0x14280ca(GFP_HIGHUSER_MOVABLE|GFP_ZERO), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:00:40 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:00:40 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:02:20 nps kernel: pgrep invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:02:20 nps kernel: auomscollect invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:02:31 nps kernel: in_monitor_age* invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:02:53 nps kernel: sh invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:02:54 nps kernel: output.rb:140 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:02:54 nps kernel: auoms invoked oom-killer: gfp_mask=0x16040c0(GFP_KERNEL|GFP_COMP|GFP_NOTRACK), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:03:02 nps kernel: auomscollect invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:03:31 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:04:43 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:04:55 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:05:01 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:05:35 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:07:07 nps kernel: auomscollect invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:07:17 nps kernel: systemd-logind invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:07:17 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:07:17 nps kernel: systemd-journal invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:15:44 nps kernel: rpm invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:15:44 nps kernel: rpm invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:16:32 nps kernel: rpm invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:16:40 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:16:41 nps kernel: omsagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:16:41 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:16:41 nps kernel: PerformInventor invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:16:41 nps kernel: rpm invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:16:48 nps kernel: output.rb:140 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:17:34 nps kernel: pickup invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:17:44 nps kernel: output.rb:140 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:17:58 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:18:11 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:18:20 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:18:47 nps kernel: output.rb:140 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:18:59 nps kernel: v2ray invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:18:59 nps kernel: omiserver invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:30:50 nps kernel: rpm invoked oom-killer: gfp_mask=0x14280ca(GFP_HIGHUSER_MOVABLE|GFP_ZERO), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:31:32 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:31:44 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:32:21 nps kernel: kthreadd invoked oom-killer: gfp_mask=0x17002c2(GFP_KERNEL_ACCOUNT|GFP_HIGHMEM|GFP_NOWARN|GFP_NOTRACK), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:32:21 nps kernel: omiengine invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:32:56 nps kernel: in_auoms.rb:64 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:32:56 nps kernel: omiserver invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:32:56 nps kernel: omiserver invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:32:56 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:33:34 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:43:10 nps kernel: auomscollect invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:43:35 nps kernel: gmain invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:43:36 nps kernel: sshd invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:44:05 nps kernel: omsagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:44:17 nps kernel: in_tail.rb:294 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:44:34 nps kernel: rpm invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:45:01 nps kernel: in:imjournal invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:45:01 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:45:01 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:46:00 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:46:20 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:46:52 nps kernel: rpm invoked oom-killer: gfp_mask=0x14280ca(GFP_HIGHUSER_MOVABLE|GFP_ZERO), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:46:53 nps kernel: rpm invoked oom-killer: gfp_mask=0x14280ca(GFP_HIGHUSER_MOVABLE|GFP_ZERO), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:47:37 nps kernel: gmain invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:47:41 nps kernel: in_tail.rb:294 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:47:49 nps kernel: in_tail.rb:294 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:47:50 nps kernel: in_auoms.rb:64 invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:48:01 nps kernel: tuned invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:48:01 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:48:01 nps kernel: rpcbind invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 09:48:22 nps kernel: sh invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:00:44 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:01:14 nps kernel: systemd-journal invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:01:22 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:01:57 nps kernel: gmain invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:09:11 nps kernel: python invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:16:05 nps kernel: omiengine invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:16:12 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:16:41 nps kernel: omiengine invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:16:41 nps kernel: cat invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:17:22 nps kernel: sh invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:17:22 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:30:49 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:31:43 nps kernel: in:imjournal invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:31:43 nps kernel: gmain invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:32:35 nps kernel: omiagent invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:46:20 nps kernel: auomscollect invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:46:23 nps kernel: auomscollect invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:46:33 nps kernel: systemd-journal invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:46:33 nps kernel: crond invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:48:39 nps kernel: auoms invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 18 10:49:14 nps kernel: crond invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|GFP_COLD), nodemask=(null), order=0, oom_score_adj=0 Nov 20 18:20:11 nps kernel: gmain invoked oom-killer: gfp_mask=0x14201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=(null), order=0, oom_score_adj=0

ffdfgdfg commented 4 years ago

有内存泄漏的问题,我挂了一个多小时下载发现内存明显涨了,哈哈哈,小水管还不好找这个问题,你的大水管几分钟就跑满了,感谢反馈,应该是我有资源没有释放,我再理一理有哪些

skyfly2000 commented 4 years ago

@ffdfgdfg 加油!

skyfly2000 commented 4 years ago

从零开始的小白好累呀,一个grep命令研究了半天,惭愧😅😂

ffdfgdfg commented 4 years ago

@skyfly2000 麻烦再试试呢,查了一圈没有泄露,确实是运行的时候申请了很多内存,我调整了下动态发包计算方法

skyfly2000 commented 4 years ago

@ffdfgdfg 晚饭后

skyfly2000 commented 4 years ago

@ffdfgdfg 今天测试了一次,plex视频打不开(无法播放),其他服务网页代开很慢。换了三个网络环境,视频没法播放。不排除晚间国际出口干扰太大,国际网络不稳定,但使用0.23.2的服务端和0.23.1的群晖skp客户端,虽然网页也很慢但视频播放正常,nps.log日志看无错误,抱歉,被回滚版本时不小心覆盖掉了没有复制出来,系统日志如下: 白天国际网络环境会好很多,明天我有空我再测试 Nov 23 22:36:01 nps systemd: Started Session 6592 of user root. Nov 23 22:37:01 nps systemd: Started Session 6593 of user root. Nov 23 22:37:31 nps systemd: Started Session 6594 of user root. Nov 23 22:37:31 nps systemd-logind: New session 6594 of user root. Nov 23 22:37:33 nps dbus[709]: [system] Activating service name='org.freedesktop.problems' (using servicehelper) Nov 23 22:37:33 nps dbus[709]: [system] Successfully activated service 'org.freedesktop.problems' Nov 23 22:38:01 nps systemd: Started Session 6595 of user root. Nov 23 22:39:01 nps systemd: Started Session 6596 of user root. Nov 23 22:40:01 nps systemd: Started Session 6597 of user root. Nov 23 22:40:01 nps systemd: Started Session 6598 of user root. Nov 23 22:40:01 nps systemd: Started Session 6599 of user root. Nov 23 22:41:01 nps systemd: Started Session 6600 of user root. Nov 23 22:41:02 nps auditd[681]: Audit daemon rotating log files Nov 23 22:41:15 nps rsyslogd: imjournal: journal reloaded... [v8.24.0-41.el7_7 try http://www.rsyslog.com/e/0 ] Nov 23 22:42:01 nps systemd: Started Session 6601 of user root. Nov 23 22:43:01 nps systemd: Started Session 6602 of user root. Nov 23 22:44:01 nps systemd: Started Session 6603 of user root. Nov 23 22:45:01 nps systemd: Created slice User Slice of omsagent. Nov 23 22:45:01 nps systemd: Started Session 6604 of user omsagent. Nov 23 22:45:01 nps systemd: Started Session 6605 of user root. Nov 23 22:45:01 nps systemd: Started Session 6606 of user root. Nov 23 22:45:01 nps systemd: Started Session 6607 of user root. Nov 23 22:45:27 nps systemd: Removed slice User Slice of omsagent. Nov 23 22:46:01 nps systemd: Started Session 6608 of user root. Nov 23 22:47:01 nps systemd: Started Session 6609 of user root. Nov 23 22:48:01 nps systemd: Started Session 6610 of user root. Nov 23 22:49:01 nps systemd: Started Session 6611 of user root. Nov 23 22:50:01 nps systemd: Started Session 6612 of user root. Nov 23 22:50:01 nps systemd: Started Session 6613 of user root. Nov 23 22:50:01 nps systemd: Started Session 6614 of user root. Nov 23 22:51:01 nps systemd: Started Session 6615 of user root. Nov 23 22:51:53 nps systemd: Started Session c394 of user root. Nov 23 22:52:01 nps systemd: Started Session 6616 of user root. Nov 23 22:53:01 nps systemd: Started Session 6617 of user root. Nov 23 22:54:01 nps systemd: Started Session 6618 of user root. Nov 23 22:55:01 nps systemd: Started Session 6619 of user root. Nov 23 22:55:01 nps systemd: Started Session 6620 of user root. Nov 23 22:55:50 nps systemd-logind: Removed session 6594. Nov 23 22:56:01 nps systemd: Started Session 6621 of user root. Nov 23 22:57:01 nps systemd: Started Session 6622 of user root. Nov 23 22:58:01 nps systemd: Started Session 6623 of user root. Nov 23 22:59:01 nps systemd: Started Session 6624 of user root. Nov 23 23:00:01 nps systemd: Started Session 6625 of user root. Nov 23 23:00:01 nps systemd: Started Session 6626 of user root. Nov 23 23:00:01 nps systemd: Created slice User Slice of omsagent. Nov 23 23:00:01 nps systemd: Started Session 6627 of user omsagent. Nov 23 23:00:01 nps systemd: Started Session 6626 of user root. Nov 23 23:00:01 nps systemd: Created slice User Slice of omsagent. Nov 23 23:00:01 nps systemd: Started Session 6627 of user omsagent. Nov 23 23:00:01 nps systemd: Started Session 6628 of user root. Nov 23 23:00:01 nps systemd: Started Session 6629 of user root. Nov 23 23:00:26 nps systemd: Removed slice User Slice of omsagent. Nov 23 23:01:01 nps systemd: Started Session 6630 of user root. Nov 23 23:01:01 nps systemd: Started Session 6631 of user root. Nov 23 23:02:01 nps systemd: Started Session 6632 of user root. Nov 23 23:03:01 nps systemd: Started Session 6633 of user root. Nov 23 23:04:01 nps systemd: Started Session 6634 of user root. Nov 23 23:05:01 nps systemd: Started Session 6635 of user root. Nov 23 23:05:01 nps systemd: Started Session 6636 of user root. Nov 23 23:06:01 nps systemd: Started Session 6637 of user root. Nov 23 23:07:01 nps systemd: Started Session 6638 of user root. Nov 23 23:08:01 nps systemd: Started Session 6639 of user root. Nov 23 23:09:01 nps systemd: Started Session 6640 of user root. Nov 23 23:10:01 nps systemd: Started Session 6641 of user root. Nov 23 23:10:01 nps systemd: Started Session 6642 of user root. Nov 23 23:10:01 nps systemd: Started Session 6643 of user root. Nov 23 23:11:01 nps systemd: Started Session 6644 of user root. Nov 23 23:12:01 nps systemd: Started Session 6645 of user root. Nov 23 23:13:01 nps systemd: Started Session 6646 of user root. Nov 23 23:14:01 nps systemd: Started Session 6647 of user root. Nov 23 23:14:36 nps auditd[681]: Audit daemon rotating log files Nov 23 23:15:01 nps systemd: Started Session 6649 of user root. Nov 23 23:15:01 nps systemd: Created slice User Slice of omsagent. Nov 23 23:15:01 nps systemd: Started Session 6648 of user omsagent. Nov 23 23:15:01 nps systemd: Started Session 6650 of user root. Nov 23 23:15:01 nps systemd: Started Session 6651 of user root. Nov 23 23:15:28 nps systemd: Removed slice User Slice of omsagent. Nov 23 23:15:55 nps systemd: Started Session 6652 of user root. Nov 23 23:15:55 nps systemd-logind: New session 6652 of user root. Nov 23 23:15:56 nps dbus[709]: [system] Activating service name='org.freedesktop.problems' (using servicehelper) Nov 23 23:15:56 nps dbus[709]: [system] Successfully activated service 'org.freedesktop.problems' Nov 23 23:16:01 nps systemd: Started Session 6653 of user root. Nov 23 23:17:01 nps systemd: Started Session 6654 of user root. Nov 23 23:18:01 nps systemd: Started Session 6655 of user root. Nov 23 23:19:01 nps systemd: Started Session 6656 of user root. Nov 23 23:19:02 nps systemd: Started Session c395 of user root. Nov 23 23:19:04 nps systemd: Started Session c396 of user root. Nov 23 23:20:01 nps systemd: Started Session 6657 of user root. Nov 23 23:20:01 nps systemd: Started Session 6658 of user root. Nov 23 23:20:01 nps systemd: Started Session 6659 of user root. Nov 23 23:21:01 nps systemd: Started Session 6660 of user root. Nov 23 23:21:57 nps systemd: Started Session c397 of user root. Nov 23 23:22:01 nps systemd: Started Session 6661 of user root. Nov 23 23:23:01 nps systemd: Started Session 6662 of user root. Nov 23 23:24:02 nps systemd: Started Session 6663 of user root. Nov 23 23:25:01 nps systemd: Started Session 6664 of user root. Nov 23 23:25:01 nps systemd: Started Session 6665 of user root. Nov 23 23:26:01 nps systemd: Started Session 6666 of user root. Nov 23 23:27:01 nps systemd: Started Session 6667 of user root. Nov 23 23:28:01 nps systemd: Started Session 6668 of user root. Nov 23 23:29:01 nps systemd: Started Session 6669 of user root. Nov 23 23:30:01 nps systemd: Started Session 6670 of user root. Nov 23 23:30:01 nps systemd: Created slice User Slice of omsagent. Nov 23 23:30:01 nps systemd: Started Session 6671 of user omsagent. Nov 23 23:30:01 nps systemd: Started Session 6672 of user root. Nov 23 23:30:01 nps systemd: Started Session 6673 of user root. Nov 23 23:30:01 nps systemd: Started Session 6674 of user root. Nov 23 23:30:28 nps systemd: Removed slice User Slice of omsagent. Nov 23 23:31:01 nps systemd: Started Session 6675 of user root. Nov 23 23:31:32 nps systemd-logind: Removed session 6534. Nov 23 23:32:01 nps systemd: Started Session 6676 of user root. Nov 23 23:33:01 nps systemd: Started Session 6677 of user root. Nov 23 23:34:01 nps systemd: Started Session 6678 of user root. Nov 23 23:34:10 nps systemd: Started Session c398 of user root. Nov 23 23:35:01 nps systemd: Started Session 6679 of user root. Nov 23 23:35:01 nps systemd: Started Session 6680 of user root. Nov 23 23:36:01 nps systemd: Started Session 6681 of user root. Nov 23 23:37:02 nps systemd: Started Session 6682 of user root. Nov 23 23:38:01 nps systemd: Started Session 6683 of user root. Nov 23 23:39:01 nps systemd: Started Session 6684 of user root. Nov 23 23:40:01 nps systemd: Started Session 6685 of user root. Nov 23 23:40:01 nps systemd: Started Session 6686 of user root. Nov 23 23:40:01 nps systemd: Started Session 6687 of user root. Nov 23 23:41:01 nps systemd: Started Session 6688 of user root. Nov 23 23:42:01 nps systemd: Started Session 6689 of user root. Nov 23 23:43:01 nps systemd: Started Session 6690 of user root. Nov 23 23:44:01 nps systemd: Started Session 6691 of user root. Nov 23 23:45:01 nps systemd: Started Session 6693 of user root. Nov 23 23:45:01 nps systemd: Created slice User Slice of omsagent. Nov 23 23:45:01 nps systemd: Started Session 6692 of user omsagent. Nov 23 23:45:01 nps systemd: Started Session 6694 of user root. Nov 23 23:45:01 nps systemd: Started Session 6695 of user root. Nov 23 23:45:27 nps systemd: Removed slice User Slice of omsagent. Nov 23 23:45:54 nps systemd-logind: New session 6696 of user root. Nov 23 23:45:54 nps systemd: Started Session 6696 of user root. Nov 23 23:46:00 nps dbus[709]: [system] Activating service name='org.freedesktop.problems' (using servicehelper) Nov 23 23:46:00 nps dbus[709]: [system] Successfully activated service 'org.freedesktop.problems'

ffdfgdfg commented 4 years ago

@skyfly2000 明天再说吧,可能还因为初始值设小了,本地测因为延迟低很快就扩张窗口了,网不好的时候就很慢才扩张,我调整下试试

ffdfgdfg commented 4 years ago

@skyfly2000 你好,麻烦再测测呢,我查了资料后调了初始值,现在能很快达到计算的阈值,同时我挂机测下载也没发现有内存涨的问题,不过我这边只有两百多k的下载速度,可能不明显。

skyfly2000 commented 4 years ago

@ffdfgdfg 这个版本是正常的。 运行环境:群晖移动300兆带宽;客户端linux_arm_client.tar.gz_0.24.0,部署在华硕RT-ac88u路由器上(#变化1,原部署在群晖);服务端linux_amd64_server.tar.gz _0.24.0,部署在谷歌云HK VPS上,ping值平均在80ms左右(#变化2,原部署在Azure HK,各种毛病,虽然ping值很低平均在60ms,但VPS性能不行,带宽利用效率很差,所以下决心迁移在谷歌云),VPS安装了锐速BBR(#变化3,原服务器安装的是暴力魔改BBR)。 测试环境:移动200M带宽,与局域网做了隔离。 测试结果:用plex播放1080P视频的同时,下载群晖服务器的电影速率最高值为3.7M/s,平均下载速率1.9M/s,下载时视频略微卡顿,但不影响观看,总体持续约15分钟。检查服务端和客户端日志,未发现异常,一直都是【i】和【d】。 结论:总体很优秀,已具备成熟版本特征。 另外,请注意三个变化。我在思考,原测试是否有VPS性能差的因素,以及是暴力魔改BBR的TCP双倍发包算法太过暴力造成TCP拥塞的因素,进而导致服务崩溃。 还有一个问题和三个建议,1、问题:路由器内存只有512,一直满负荷运行,内存占用率95%,客户端需要多大内存?目前的512内存是否会成为NPS的性能瓶颈,有无优化方法?请敬指教。2、建议:一是,升级版本时,能否编个UPdate的一键脚本,这次升级对我这个小白级别的新手是个很大考验,为了不覆盖conf文件夹,各种google和baidu,折腾了一个多小时;二是,能否编个开机自启动的脚本,路由器难免会经常重启,我现在对开机启动的shell脚本一脸抓瞎,目前还不知如何下手,路由器和大多数的Linux的环境都不一样,需要足够的知识储备才能玩得转;三是,能否在server端的web面板加入域名解析的导入导出功能,这样也不用天天惦记着备份撒的了。咱们做项目是为了给大部分普通人用的,高难度动作会让小白很受伤。 感谢!祝贺新版本成功!

skyfly2000 commented 4 years ago

我打算回头空闲时写个小白级的傻瓜教程,算是回报你们对项目的努力付出,我来添砖加瓦,让项目发展的更好。

skyfly2000 commented 4 years ago

为毛部署在群晖上感觉没有部署在路由器上速度快(流畅度)呀,很疑惑~~~

ffdfgdfg commented 4 years ago

锐速的话也是多倍发包吧,多倍发包应该可以降低由于超时重传引起的延迟,另外由于原来拥堵控制算法认为丢包即阻塞,就会限制发包速率。 Google的TCP BBR,认为丢包是正常的,探测带宽来控制发包速率,丢包重传就行。对于延迟不敏感,可以只用原版BBR。 而不管是多倍发包也好,bbr也好,在TCP协议层是由系统完成的,至少目前没有直接操作socket,nps要么拿到完整的数据,要么拿到报错。 多倍发包确实可能会加剧网络拥堵的情况,当重传次数达到设定值时,隧道连接被关闭,nps拿到报错就会打印close mux这类的信息,此时会抛弃建立的所有连接。反复的新建连接,自然会导致速度严重降低。 客户端与服务端占用的内存与连接数量基本成正比,此外并没有根据剩余内存限制速度的逻辑,被关闭可能就是之前遇到的oom,如果说能够在跑满带宽情况下稳定运行的话,我觉得没有什么问题,还是不限制连接数量方便,保险起见可以加swap nps所有的数据记录都在conf文件夹里,导出功能一般都用于采用数据库的时候提供,升级将二进制文件替换就行了,保险起见才先备份conf文件夹,也就是复制一下。因为各个安装的路径不一样,一键升级可能会导致各种问题,所以只有当时安装的时候才知道放在哪里了。 开机启动最简单的还是扔init.d,bash文件和输入命令回车一个道理,不过群里面有做插件的,插件可能更方便些。 速度问题,还是的看群晖在串流的时候的资源占用吧,如果要进行转码的话,消耗可不低。路由器如果没跑很多程序,还是比较闲的