cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to reduce libcurl memory usage

From: Zhao, Fei <Fei.Zhao_at_echostar.com>
Date: Mon, 27 Jan 2014 02:28:47 +0000

This is Fei from EchoStar. We are tring to use libcurl in our low-end setbox which has memory limitation.

It seems curl_easy_init() will allocate a lot of memory and the memmory can't be released after curl_easy_cleanup().

If I call curl_easy_init() to initialize curl handles in 5 threads, the memory usage by curl will be 3 MB which is too much for the low-end setbox.

What I need from curl is just the HTTP protocol.
Is there any way or any configuration which I can use to reduce the memory usage by curl?

I tried to disable SSL. It seems don't work.

Thanks,
Fei

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-27