没有不值得去解决的问题,也没有不值得去学习的技术!

Troubleshooting a Slow ChatGPT Page Load: From Browser and Clash Verge to VPS

[Figure 1: Browser network panel, showing server response of 1.99 seconds]

作者:

在

1. Background and Problem Symptoms

Since yesterday, I noticed that the ChatGPT web interface suddenly became abnormally slow to load. Page content often took dozens of seconds to fully render, accompanied by “server responding slowly” timeout warnings. Faced with this sudden slowdown, I initially suspected three possibilities:

  1. An issue on ChatGPT’s server side itself.
  2. My self-hosted network node (US ZgoCloud) had slowed down.
  3. An issue with my home China Mobile broadband.

To pinpoint the exact root cause, I performed a full-link troubleshooting process.

2. Step 1: Browser and Local Proxy Troubleshooting

I opened the Firefox Developer Tools (F12) and switched to the Network panel. After refreshing the page, I found that the response times for many JS and CSS files were extremely long (e.g., 1.99 seconds), and there was even a severe timeout warning stating “server responding slowly (30.18 seconds)”.

[Figure 1: Browser network panel, showing server response of 1.99 seconds]
[Figure 1: Browser network panel, showing server response of 1.99 seconds]
[Figure 2: Browser network panel, showing server response of 30.18 seconds]
[Figure 2: Browser network panel, showing server response of 30.18 seconds]

From the panel data, the status codes were all 200, indicating successful requests, but the data transfer after the Time to First Byte (TTFB) was extremely slow.
Considering this was a proxy environment, I checked Clash Verge first. I was running an older version, so I took the opportunity to upgrade it to v2.5.8 and updated the GeoData.

[Figure 3: Clash Verge upgrade prompt]
[Figure 3: Clash Verge upgrade prompt]
[Figure 4: Clash Verge upgrade successful]
[Figure 4: Clash Verge upgrade successful]

After the upgrade, I searched for chatgpt.com in the Clash Verge “Connections” panel to confirm that the traffic was indeed routing through my self-hosted ZgoCloud-WG node. My architecture uses “ZgoCloud + Wstunnel + WireGuard speed boost” with an HTTPS masquerading protocol, which does not involve bare UDP connections that are easily throttled by broadband providers.

[Figure 5: Clash Verge connections panel, confirming traffic goes through proxy]
[Figure 5: Clash Verge connections panel, confirming traffic goes through proxy]

To verify the link from my local machine to the server, I ran tests in my local Ubuntu terminal:

  • Local download speed via proxy: 3129172 bytes/s (approx. 3.1 MB/s).
  • Local ping to server: 平均 188ms,0% 丢包.
  • Direct access to YouTube: Very fast, opening instantly.

This data showed that my local broadband was normal, the link from my local machine to the VPN was healthy, and there were no obvious issues with the Clash Verge configuration. The troubleshooting focus then shifted to the VPS server side.

3. Step 2: VPS Server-Side Troubleshooting

I logged into the ZgoCloud console and checked the network panel. I confirmed the port bandwidth was 200 Mbps (approx. 25 MB/s), and the traffic for this month and last month had not exceeded the limit.

[Figure 6: Clash Verge settings interface]
[Figure 6: Clash Verge settings interface]
[Figure 7: ZgoCloud console, showing 200 Mbps bandwidth and normal traffic usage]
[Figure 7: ZgoCloud console, showing 200 Mbps bandwidth and normal traffic usage]

I logged into the server via SSH and performed a basic system load check:

Bash
uptime
# 输出 load average: 0.00, 0.00, 0.00
free -h
# 内存充足,可用 2.3 GiB
df -h
# 磁盘空间充足,使用 32%

I also checked the WireGuard status; wg show showed normal handshakes and extremely low latency.

To verify the connectivity from the server to ChatGPT, I executed a command to request a specific JS file:

Bash
curl -o /dev/null -s --max-time 10 -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:157.0) Gecko/20100101 Firefox/157.0" -H "Referer: https://chatgpt.com/" -w "DNS解析: %{time_namelookup}s\nTCP连接: %{time_connect}s\nTLS握手: %{time_appconnect}s\nTTFB: %{time_starttransfer}s\n总耗时: %{time_total}s\n下载速度: %{speed_download} bytes/s\nHTTP状态码: %{http_code}\n" https://chatgpt.com/cdn/assets/956483.0014637ab5.js

The results were very strange:

  • TTFB: 0.061863s (extremely fast, indicating that the latency from the server to ChatGPT was very low and the request was responded to quickly)
  • 总耗时: 3.729256s
  • 下载速度: 543277 bytes/s (approx. 543 KB/s)

Why was the latency so low, but the download speed stuck at 543 KB/s? It seemed as if the transport pipeline had suddenly narrowed.

To verify the server’s own bandwidth, I tested the Cloudflare speed test node:

Bash
curl -o /dev/null -s -w "当前 IP 下载速度: %{speed_download} bytes/s\n" https://speed.cloudflare.com/__down?bytes=10000000
# 输出:18463231 bytes/s(18 MB/s)

The server speed test reached up to 18 MB/s, proving that ZgoCloud’s outbound bandwidth was completely fine.

4. Step 3: Comparative Analysis and Deep Thinking

Combining the above data, I made the following logical deductions:

  • Server direct connection to ChatGPT: TTFB extremely fast (0.06s), but download speed limited to 543 KB/s.
  • Server speed test to Cloudflare: 18 MB/s.
  • Local speed test via proxy: 3.1 MB/s.
  • Local ping to server: 188ms, 0% packet loss.
  • YouTube and other daily services completely normal locally.

Since it was “normal a few days ago, and suddenly slow yesterday and today”, this ruled out long-standing VPS hardware configuration limitations (such as BBR not being enabled, or MTU black holes). If it were a configuration issue, it would have been slow for the previous months.

I briefly suspected that the IP was flagged by Cloudflare risk control, or that China Mobile broadband was applying QoS throttling to Wstunnel’s HTTPS traffic. However, the local speed test via proxy reached 3.1MB/s, indicating that the HTTPS return path from the local machine to the server was not being severely throttled by China Mobile broadband.

Thus, the only anomaly was focused on the transport path from the server to specific Cloudflare resources (chatgpt.com/cdn/assets/).

5. Final Conclusion and Reflection

At this point in the troubleshooting, the only reasonable explanation pointed to the ChatGPT server side (or its Cloudflare CDN edge nodes).
That day, OpenAI was indeed investigating a widespread service degradation (recorded on the Status page). This degradation would cause Cloudflare to implement extremely conservative anti-abuse rate limiting on chatgpt.com‘s frontend static resources (like JS files), or cause edge node overload, resulting in the server-side download speed for a single file plummeting to 543 KB/s.

Reflections and recommendations:

  1. Troubleshooting order: When encountering similar issues in the future, first compare the speeds of “server direct connection” and “local via proxy” to quickly determine whether it’s a link issue or a server-side issue. Cross-validation using curl -w and speedtest is recommended.
  2. Do not over-configure: During troubleshooting, I almost modified the BBR congestion control algorithm, adjusted the MTU, and reinstalled WARP. Facts proved that for a node that has been running stably for months and suddenly slows down, the vast majority of cases are not configuration issues, but sudden changes in the external environment (provider throttling, ISP QoS, target website service degradation).
  3. Use the process of elimination: If daily services like YouTube are normal, and only ChatGPT is slow, it is highly likely caused by OpenAI itself or its risk control strategy for specific resource paths. When encountering such situations, first visit OpenAI Status to confirm the official status, avoiding a lot of pointless “over-optimization” locally.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系