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

Sasmit Utkarsh via curl-library <[email protected]> Fri, 13 Mar 2026 18:50:51 +0530
Newsgroups gmane.comp.web.curl.library
Message-ID <CAM-5MT1GiQw2Wzc9YkJiaLLznF0EuVMyXaWEreedGTGcKuNH3Q@mail.gmail.com>
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 <[email protected]>
wrote:

> On Thu, Mar 12, 2026 at 3:44 PM Sasmit Utkarsh via curl-library
> <[email protected]> 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.html