Skip to content

Commit 69abdd2

Browse files
committed
adding the warp-svc memory leak issue
1 parent e243635 commit 69abdd2

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

README.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# 科学上网
44

55
作者:左耳朵 [http://coolshell.cn](http://coolshell.cn)
6-
更新时间:2023-04-19
6+
更新时间:2023-04-28
77

88
这篇文章可以写的更好,欢迎到 [https://github.com/haoel/haoel.github.io](https://github.com/haoel/haoel.github.io) 更新
99

@@ -1162,32 +1162,38 @@ sudo docker run -d --name gost-warp \
11621162
>
11631163
> 2) 你也可以使用 V2Ray 的路由模式,参见 [V2Ray 的路由功能](https://www.v2ray.com/chapter_02/03_routing.html)。V2Ray的路由模式就比 gost 要强很多。你还可以通过使用预定义域名列表 `geolocation-cn` 把其的路由转发到 Cloudflare WARP 的 Socks5 代理上,以避免你的 VPS 的 IP 被暴露。
11641164
1165-
**其它事宜**
1165+
**6)其它事宜**
11661166

1167-
`warp-cli``warp-svc` 的客户端,真正的程序是 `warp-svc`,你可以使用如下命令来查看:
1167+
- **查看运行状态**`warp-cli``warp-svc` 的客户端,真正的程序是 `warp-svc`,你可以使用如下命令来查看:
11681168

1169-
```shell
1170-
systemctl status warp-svc
1171-
```
1169+
```shell
1170+
systemctl status warp-svc
1171+
```
11721172

1173-
另外,如果你的程序出现文件描述不足的情况
1173+
- **内存泄漏问题**。 目前,`warp-svc` 这个程序有内存泄漏的问题(参看 [#124](https://github.com/haoel/haoel.github.io/issues/124)),所以,你需要定期重启服务。你可以使用cronjob来重启服务。运行 `crontab -e`,然后添加如下内容
11741174

1175-
```shell
1176-
warp-cli connect
1177-
Status update: Unable to connect. Reason: Insufficient system resource: file descriptor
1178-
```
1179-
你需要修改文件描述符的限制,这类的文章比较多,你自行 Google,这里就不再赘述了。如果你想配置 Cloudflare WARP 文件描述符的限制,你可以编辑 `/lib/systemd/system/warp-svc.service`,在 `[Service]` 下面添加如下内容:
1175+
```cron
1176+
0 * * * * /bin/systemctl resetart warp-svc
1177+
```
11801178

1181-
```ini
1182-
LimitNOFILE=65535
1183-
LimitNOFILESoft=65535
1184-
```
1185-
然后,重启服务:
1179+
- **文件描述符不足**。另外,如果你的程序出现文件描述不足的情况:
11861180

1187-
```shell
1188-
sudo systemctl daemon-reload
1189-
sudo systemctl restart warp-svc.service
1190-
```
1181+
```shell
1182+
warp-cli connect
1183+
Status update: Unable to connect. Reason: Insufficient system resource: file descriptor
1184+
```
1185+
你需要修改文件描述符的限制,这类的文章比较多,你自行 Google,这里就不再赘述了。如果你想配置 Cloudflare WARP 文件描述符的限制,你可以编辑 `/lib/systemd/system/warp-svc.service`,在 `[Service]` 下面添加如下内容:
1186+
1187+
```ini
1188+
LimitNOFILE=65535
1189+
LimitNOFILESoft=65535
1190+
```
1191+
然后,重启服务:
1192+
1193+
```shell
1194+
sudo systemctl daemon-reload
1195+
sudo systemctl restart warp-svc.service
1196+
```
11911197

11921198
#### 9.4.3 Docker 代理
11931199

0 commit comments

Comments
 (0)