Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: Does performing the curl_easy_init and curl_easy_cleanup thousands of times increases the memory footprint of the process when observed using top command in linux
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Sasmit Utkarsh via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 13 Mar 2026 18:50:51 +0530
Thank you all for your feedback and comments. I'll try to work on a
component test driver program and integrate the above code run with
valgrind/Asan capture the results and get back to you
Regards,
Sasmit Utkarsh
+91-7674022625
On Fri, Mar 13, 2026 at 6:06 AM Cristian Rodriguez <yo_at_cristianrodriguez.net>
wrote:
> On Thu, Mar 12, 2026 at 3:44 PM Sasmit Utkarsh via curl-library
> <curl-library_at_lists.haxx.se> wrote:
> >
> > Hi Team,
> >
> > I'm trying to write a program which uses which uses in libcurl handles
> in multithreaded manner. i.e transfer/make a http post request every 10
> secs using the libh2o event-loop powered by libuv worker threads. But what
> i see is when I clear the handle once done with the request. I see that
> memory footprint of the process increases in top. is there any better
> approach sharing the sample code for review
>
> Using top is meaningless in this context, what you care about is an
> always increasing PSS
> I'm not looking at your code, provide the simplest possible
> reproducer.or use asan to find memory leaks.
>
Date: Fri, 13 Mar 2026 18:50:51 +0530
Thank you all for your feedback and comments. I'll try to work on a
component test driver program and integrate the above code run with
valgrind/Asan capture the results and get back to you
Regards,
Sasmit Utkarsh
+91-7674022625
On Fri, Mar 13, 2026 at 6:06 AM Cristian Rodriguez <yo_at_cristianrodriguez.net>
wrote:
> On Thu, Mar 12, 2026 at 3:44 PM Sasmit Utkarsh via curl-library
> <curl-library_at_lists.haxx.se> wrote:
> >
> > Hi Team,
> >
> > I'm trying to write a program which uses which uses in libcurl handles
> in multithreaded manner. i.e transfer/make a http post request every 10
> secs using the libh2o event-loop powered by libuv worker threads. But what
> i see is when I clear the handle once done with the request. I see that
> memory footprint of the process increases in top. is there any better
> approach sharing the sample code for review
>
> Using top is meaningless in this context, what you care about is an
> always increasing PSS
> I'm not looking at your code, provide the simplest possible
> reproducer.or use asan to find memory leaks.
>
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2026-03-13