|
Boost Users : |
Subject: Re: [Boost-users] asio HTTP Server 3 example memory leak
From: Scapal (pascal.fautre_at_[hidden])
Date: 2012-08-25 15:58:43
I have the same problem, this being the only remaining leak in my
application.
If I add a printout of the shared_ptr counter, I get weird results:
Output:
Since I have millions of requests on this http interface, this bug eat up
gigabytes at the end of the week.
Bryce Lelbach (wash) wrote
>
> xyz xyz < dubteam2000@ > wrote: > Hello, > I've compiled
> (using MSVC 2008) the HTTP Server 3 example from asio library, and I
> noticed > that if I enter the address in a browser and then repeatedly
> press F5, the memory usage for > the server process keep increasing.
> Anyone know why this memory leak, or what is happening? > Thanks. xyz
> and I chatted on IRC - I compiled and ran the same version of HTTP Server
> 3 on Linux (G++ 4.1), profiling it's execution with valgrind. During
> runtime, the memory allocated for each new connection does appear to be
> leaking. However, valgrind reported that by the time the test server had
> exited, all memory allocated had been freed (0 bytes lost). So, at least
> on GCC, this isn't an actual memory leak, because the program
> doesn't exit with memory unfreed.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_.boost
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-- View this message in context: http://boost.2283326.n4.nabble.com/Re-asio-HTTP-Server-3-example-memory-leak-tp2599716p4634746.html Sent from the Boost - Users mailing list archive at Nabble.com.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net