syuez

Results 10 comments of syuez

收藏了,感谢分享

可以试试 winsw 这个软件,将kcptun 变成一个服务运行 https://github.com/winsw/winsw

@xtaci 试了20200322的版本,服务端还是会出现CPU占用99.9的情况,只是比20200321版本运行的时间长了,从早上9到21点。

@xtaci CPU 100%的问题没有了,但是发现客户端内存好像有泄露问题 从昨天21点运行到早上8点,内存占用了80%左右 未 kill掉进程 前内存 ![未kill.png](https://i.loli.net/2020/03/25/4OMtVjkNus5x7F3.png) 运行时内存占用 ![空载.png](https://i.loli.net/2020/03/25/MQmv7qWrHEtZ4xo.png) kill 掉后内存 ![kill掉.png](https://i.loli.net/2020/03/25/Hf5Zgyr63lmYDKQ.png) 用的是TCP模式,同机子另外以UDP模式运行的客户端则没有这个问题

@xtaci GOGC 怎么跟 nohup 命令配合? `nohup GOGC=10 /root/client_linux_amd64 -c /root/config.json >/dev/null 2>&1 &` 我尝试这样的方式但是无法运行 用sh脚本套娃好了😂

> > @xtaci > > ~GOGC 怎么跟 nohup 命令配合? ~`nohup GOGC=10 /root/client_linux_amd64 -c /root/config.json >/dev/null 2>&1 &` ~我尝试这样的方式但是无法运行~~~ > > 用sh脚本套娃好了😂 > > nohup env GOGC=10 ... 感谢!

> > > @xtaci CPU 100%的问题没有了,但是发现客户端内存好像有泄露问题 > > > 从昨天21点运行到早上8点,内存占用了80%左右 > > > 未 kill掉进程 前内存 ![未kill.png](https://camo.githubusercontent.com/0a332dd7be844621defe67cf28f759214016c80a/68747470733a2f2f692e6c6f6c692e6e65742f323032302f30332f32352f344f4d74566a6b4e757335783746332e706e67) > > > 运行时内存占用 ![空载.png](https://camo.githubusercontent.com/de72ce28241c799264e564211a6fc399cb0339b8/68747470733a2f2f692e6c6f6c692e6e65742f323032302f30332f32352f4d516d76377157724845745a34786f2e706e67) > > > kill 掉后内存 ![kill掉.png](https://camo.githubusercontent.com/6d350c780b80e840b63c58f335b9ac127fef1b8e/68747470733a2f2f692e6c6f6c692e6e65742f323032302f30332f32352f4866355a67797236336c6d59444b512e706e67) > >...

> @tete1030 @syuez [#677](https://github.com/xtaci/kcptun/issues/677) > Is this related to the issue mentioned in 667 ? If use tcp mode it will cause problem,udp will not.

Thanks for help! When i execute `git apply niceclose.patch`,i got error: unrecognized input.