cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

Sse uses too much cpu

Open Barre opened this issue 1 year ago • 0 comments

When a user reaches a page on my website that uses sse, the CPU gets pinned to 100% usage and does not go down until the process is restarted.

Example endpoint: https://api.merklemap.com/live-domains

image

To Reproduce Steps to reproduce the behavior:

  1. Produce an endpoint that produce data over sse (or proxy to the api above).
  2. Observe the cpu usage

If it's an issue with Cloudflare Tunnel:

ID                                   NAME      CREATED              CONNECTIONS               
e87feb54-2f48-4377-a0fe-2a8e97272530 merklemap 2024-09-04T16:39:25Z 1xams08, 1xams15, 2xhel01 

With default settings.

Environment and versions

Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm
  • Architecture: AMD EPYC 9454P
  • cloudflared version 2024.8.3 (built 2024-08-22-1348 UTC)

Barre avatar Sep 05 '24 08:09 Barre