tinyfecVPN icon indicating copy to clipboard operation
tinyfecVPN copied to clipboard

今天碰到一个情况是cpu直接占满了一个核心但是其实没什么流量。

Open crazykylin opened this issue 4 years ago • 2 comments

今天碰到一个情况是cpu直接占满了一个核心但是其实没什么流量,openwrt上面使用的。

crazykylin avatar Apr 09 '21 00:04 crazykylin

麻烦提供复现问题的方法

wangyu- avatar Apr 09 '21 20:04 wangyu-

我也遇到了同样的问题,原因是因为在/etc/init.d/中启动客户端的时候使用了

tinyvpn -c -r 192.168.111.1:7891 &

在init.d中用&来detach process会造成这个问题,改成了nohup 就好了 E.g. /etc/init.d/tinyvpn

#!/bin/sh /etc/rc.common

START=99

start() {        
    nohup /usr/bin/tinyvpn -c -r xxx.xxx.xxx.xxx:xxxx
}
 
stop() {          
    pkill tinyvpn
}

charlescao460 avatar Mar 27 '22 13:03 charlescao460