Curl extreme memory usage?

zmippie

Verified User
Joined
Apr 19, 2015
Messages
159
Having upgraded to curl 7.57.0, I now get notifications from CSF/LFD about excessive resource usage:

Code:
Resource:     Virtual Memory Size
Exceeded:     211 > 200 (MB)
Executable:   /usr/local/bin/curl

211 MB? That is excessive. Can anyone shed some light on what might cause this? Curl is calling a PHP script through a cronjob. The output from the script is minimal, so that can't be it. I'm reading about people on the curl boards talking about running curl in 3 MB, which they already consider too much.

Here are the full build specs, as (I assume) by default in CB2:

Code:
curl 7.57.0 (x86_64-pc-linux-gnu) libcurl/7.57.0 OpenSSL/1.0.1e zlib/1.2.3
Release-Date: 2017-11-29
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets HTTPS-proxy
 
Simply add it into an ignore list:

Okay, did as you suggested. I read the posts on StackOverflow, and I have to say it's not very transparent concept. I'm still wondering why this happens after updating curl.

Thanks again!
 
You're welcome, another post on the thread contains details from man pages:

Virtual Image (kb) - The total amount of virtual memory used by the task. It includes all code, data and shared libraries plus pages that have been swapped out.

Thus if you previously updated related libraries and/or openssl it might be the reason.
 
Thus if you previously updated related libraries and/or openssl it might be the reason.

Yes, I updated a lot of packages through CB. As we all know, software memory footprints don't generally get lower as newer versions come out...
 
Back
Top