Closed Watercycle closed 1 month ago
We need specifics. How exactly do you use curl/libcurl? Protocols, versions, servers, patterns.
@Watercycle , there is #14898 where libcurl goes into a busy loop, occupying a cpu core without getting the up/downloads any further. The fix for that was merged via https://github.com/curl/curl/pull/14901.
If you can build a libcurl yourself and throw that into your app, that would be worth seeing. But given that you relay on a complete stack that might be tricky.
I wasn't able to (quickly) reproduce it locally. But, it seems very likely this was related to #14898, so closing this issue and will dig into this a little more if I see the same thing on 8.10.1
+.
Thank you for digging into this so quickly! And, apologies for not having a minimal-reproducible-example - posted an issue first since I figured it would be a few days before I could fully pin it down.
I did this
I recently updated curl+libcurl on my php 8.3 fpm alpine server image from
8.9.1
to8.10.0
(viaapk --update upgrade
) and observed a 2-3x bump in CPU utilization with however libcurl+PHP+Laravel+HTTPS and friends interact with with one another.screenshots
1. The solid line is "cpu usage" today after reverting. The dotted line is yesterday. Both days had similar usage patterns. ![image](https://github.com/user-attachments/assets/b01198d4-d38b-4c1d-ae8e-7fb7a91c07f5) 2. Upgrade command, which is how I quickly isolated it to be a curl problem (or some curl sub-feature) ![image](https://github.com/user-attachments/assets/f499ea07-66af-46e0-8337-9ba75ba6a4c7)Apologies, but I haven't had a chance to dig into the "why" further, yet since performance issues like this can be tedious to isolate. I figure this issue might just help others catch and/or remediate this surprise more quickly.
I expected the following
Similar performance characteristics to
8.9.1
.curl/libcurl version
operating system
(Alpine 3.20.3)