🚀 Clash Verge from 500MB to 200MB: Ubuntu VPN client lightweight optimization practice

Clash Verge 内存占用过高

作者:

Self-Hosted VPN

图15:电脑VPN连接成功截图

(1) From LetsVPN to self-built Wireguard VPN full process review (with pit guide)

手机端优化配置(表单字段编辑专用,仅改2个字段)如图1

(2) WireGuard VPN configuration optimization: domestic website direct connection, foreign traffic to go to VPN (actual measurement is effective)

ChatGPT(https://chatgpt.com/)、 YouTube(https://www.youtube.com/)、 V2EX(https://v2ex.com/) 始终打不开,提示无法访问。如图1

(3) Wireguard domestic direct connection + foreign tunnel configuration

客户端无「上次握手时间」,一直处于等待连接状态。客户端显示看似连接,但实际无握手、无流量转发,接收一直为 0。

(4) Self-built VPN series Part 4 Wireguard self-built VPN accidental unavailable full replay: from normal use → suddenly no handshake → port is blocked → port change + intelligent shunt complete solution process

Speedtest 出口带宽测速,打开:https://www.speedtest.net/ 。结果如图2

(5) After deactivating self-built WireGuard from LetsVPN: Chengdu Mobile Broadband + Vultr Singapore node The measured network speed is very slow to review + pit dry goods

2. VPS 通过 iptables 做端口段转发:20000~60000 全部UDP端口,统一转发到本机 51820; 3. Vultr 防火墙只需放行 20000~60000 端口段 ,不用逐个添加单端口规则;

(6) Self-built WireGuard solution port is frequently blocked, the ultimate minimalist solution (nanny class can be reproduced)

洛杉矶节点:Premium、Eyeball、Tier 1 三种网络类型下所有实例均处于缺货状态,包括我能勉强接受的 LAX.AN5.Pro.TINY(Premium 网络,12.98美元/月),该节点 AN5 系列已告罄(如图6);

(7) Wireguard handshake is normal but can’t open the network? Why do we have to CN2 GIA, with DMIT deployment & out of stock alternatives

需要确保首页 - 当前节点 - ZgoCloud-VPN 是 绿色状态(如图25)。

(8) ZgoCloud + Wstunnel + Wireguard speed up 4 times, Clash Verge Rev automatically splits and 443 port anti-sealing actual combat

不可访问:`www.google.com` 提示 `ERR_CONNECTION_CLOSED`;`chatgpt.com`、`v2ex.com` 提示 `ERR_CERT_COMMON_NAME_INVALID`(HSTS 导致的证书错误)

(9) Troubleshooting Transcript: Solve the DNS deadlock problem of “some websites cannot be accessed” under Clash Verge + Wstunnel + Wireguard

图12:开机后网站测试全部通过

(10) ZGoCloud + Wstunnel + Clash Verge Rev under Ubuntu 26.04

分析:第三次测试依然稳健,上传甚至回升到了 81 Mbps。这证明了 CN2 GIA + 9929 线路在下午时段(非深夜)的优异表现。 (图7:VPN 测速 #3 详细数据截图)

(11) Under Ubuntu 26.04 Self-built VPN speed test report: ZgoCloud + Wstunnel + Wireguard solution experience and comparison guide

【截图位置:图17 展示了启动后的仪表盘界面】

(12) zgocloud + wstunnel + flclash VPN configuration under android

📷(图1:Play 商店无法更新)

(13) Complete troubleshooting and schema optimization for Google Play update exceptions on Android

[截图 5:Clash 规则片段,突出显示新增的两行 DST-PORT 规则]

(14) Thunderbird can’t send Gmail mail after self-built VPN: Cause and Solution

[截图 2:Play 商店更新界面,显示两个应用正常下载]

(15) Can’t update the Play Store app after self-built VPN? Don’t toss wstunnel, the problem is in the Clash diversion rules

关键信息是 code=exited, status=203/EXEC。这个退出码意味着 systemd 无法执行指定的程序。

(16) systemd user service 203/exec error troubleshooting: wstunnel self-starting configuration record

Practical Guide to Stable Clash Verge Rev + WireGuard + Wstunnel Configuration (Part 1): Minimalist Principles and Initial Setup

(17) Practical Guide to Stable Clash Verge Rev + WireGuard + Wstunnel Configuration (Part 1): Minimalist Principles and Initial Setup

使用 Clash Verge Rev 内置的连接测试,对常用 13 个目标进行检测:

(18) Clash Verge Rev + Wireguard + WSTunnel Stable Configuration Practice (2): Minimum Correction of DNS Contaminated by Google

你好,我按照你博客文章按流程操作了一下服务器,服务器防火墙也开了,但是手机修改端口还是没有握手提示,也上不了网,这是哪里出问题了吗?

(19) Help customers to remotely troubleshoot vultr Wireguard without handshake and cannot access the Internet problem (full record)

Thunderbird 无法与 imap.gmail.com 连接,请稍后再试。如果问题依然存在,则可能是您超出了此服务器允许的最大连接数量。可在IMAP服务器设置中减少缓存的连接数量。

(20) Full check record from Thunderbird connection failure to switching to Gmail API client

查看服务器上的 client.conf(截图8)

(21) WSTUnnel + Ficlash Remote Troubleshooting full record under client android: from script creation to IP mismatch

在 FlClash 中查看实时请求日志,所有 Play 商店相关的请求全部走代理

(22) FLCLASH + WireGuard + WSTUnnel Stable Configuration Practice (3): Google Play download problem solving

🚀 Wireguard + Clash Verge Rev for domestic direct connection / foreign diversion (Vultr & ZgoCloud actual combat evolution version)

(23) 🚀 Wireguard + Clash Verge Rev for domestic direct connection / foreign diversion (Vultr & ZgoCloud actual combat evolution version)

Clash Verge 内存占用过高

(24) 🚀 Clash Verge from 500MB to 200MB: Ubuntu VPN client lightweight optimization practice

🧩 1. Problem background: Clash verge memory usage is too high

When using Clash Verge as a VPN proxy tool in the Ubuntu desktop environment, the following problems often occur:

  • Memory usage continues to grow (500MB+)
  • The system freezes after a long operation
  • Performance degradation when used with Firefox/Gnome
Clash Verge memory usage is too high

The essence is:

Electron architecture + real-time UI rendering + traffic statistics module


⚙️ 2. Optimization goals

This optimization goal:

  • Keep the VPN function running properly
  • Reduce the resident memory in the background
  • Reduce UI resource usage
  • Improve Ubuntu desktop stability

🛠️ 3. Optimization steps (core configuration stage)

1️⃣ Decrease the log level (important)

path:

Plaintext
设置 → Clash 设置 → 日志等级
Settings → Clash Settings → Log Levels

Recommended settings:

  • WARN (recommended)
  • error (lighter)

function:

  • Reduce log write
  • Reduce UI refresh rate

2️⃣ Turn off traffic statistics UI

path:

Plaintext
设置 → 界面设置
Close Traffic Statistics UI

Close:

  • flow chart display
  • Kernel occupancy display

function:

  • Reduce Electron UI rendering load

3️⃣ Turn off unnecessary network functions

Suggestion:

  • IPv6: close
  • DNS overwrite: close
  • LAN connection: closed (not required)

⚡ 4. Key steps: enable lightweight mode (last execution)

path:

Plaintext
Verge 高级设置 → 轻量模式设置 → 启用
Verge Advanced Settings → Lightweight Mode Settings → Enable

⚠️ Note:

  • UI disappears when enabled
  • Must be executed after all configurations are complete

📊 5. Optimization effect comparison

Statusmemory usage
default mode400MB – 600MB
after optimization150MB – 220MB

👉 Memory drop by about 60%


🧠 Six, core conclusions

The essence of the Clash Verge memory usage problem is:

UI rendering + real-time traffic statistics, not the VPN itself

Optimize the core idea:

  • Reduce UI
  • Reduce logs
  • Enable lightweight mode at last

🔍 7. Applicable scenarios

Applicable to:

  • Ubuntu 22.04 / 24.04 / 26.04
  • Gnome / Wayland desktop
  • Clash Verge long-term background running
  • run firefox/chrome/vscode at the same time
🚀 Wireguard + Clash Verge Rev for domestic direct connection / foreign diversion (Vultr & ZgoCloud actual combat evolution version)

🚀 Recommended VPS (WireGuard / Clash / Self-hosted VPN)

For this series, we recommend using Vultr VPS as the base infrastructure:

✔ Supports WireGuard / Clash / VPS deployment
✔ Multiple global data center locations
✔ Stable and suitable for long-term networking setups

👉 Visit Vultr (Recommended Sign-up Link)



💡 New User Promotion Info

Vultr may offer promotional credits for new users, such as:

– Up to $300 in trial credits
– For VPS deployment and testing purposes
– Availability depends on Vultr’s official campaign and account eligibility

⚠️ Offers may vary by region, time, or account type.


⚠️ Disclaimer

This page contains affiliate links to Vultr. We may earn a commission if you purchase through these links.

All promotions are provided and managed by Vultr. We do not guarantee that all users will receive the same promotional benefits.



Stop the Hassle | Dedicated WireGuard VPN Deployment Service

I continuously test and evaluate various network optimization solutions. My personal setup has been running stably for over a month with zero downtime. If you are tired of troubleshooting, experimenting with different protocols, or managing complex server configurations, feel free to contact me for a dedicated solution.

Ideal For:
✅ Users of AI tools such as ChatGPT, Claude, and Gemini
✅ Remote workers who rely on stable international connectivity
✅ Developers and technical learners who need access to global resources
✅ Users who do not want to spend time managing VPS and proxy configurations
✅ Anyone who prefers a private VPN server instead of shared public services

What I Offer:
Remote Deployment: Deploy a dedicated WireGuard VPN on your own server with full control over your data.
Free Trial: Apply for a one-month free trial of my self-hosted VPN node before making a decision.
Traffic Routing Optimization: Fine-tuned routing rules optimized for AI tools, development environments, and everyday browsing.
Post-Deployment Support: Assistance with setup, client configuration, and troubleshooting after deployment.

If you would like to learn more or apply for a free trial, please contact me directly and mention: VPN Consultation.

Contact Me:
Telegram: @shuijingwan
WeChat: 13980074657
Email: shuijingwanwq@gmail.com

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.