Opened 12 years ago

Closed 12 years ago

#4338 closed Bugs (fixed)

Asio Http Server 3 example memory leak

Reported by: Dub Team <dubteam2000@…> Owned by: chris_kohlhoff
Milestone: Boost 1.43.0 Component: asio
Version: Boost 1.43.0 Severity: Optimization
Keywords: Cc:

Description

Hello, I've compiled asio HTTP Server 3 example as it is, using msvc 2008 and boost 1.43.0, and after running, if I keep reloading page from it, using a browser, it leaks memory, since the memory usage keeps increasing after every load.

Change History (2)

comment:1 by chris_kohlhoff, 12 years ago

I cannot reproduce any memory leak using MSVC 8.0 on Windows XP. I used perfmon to measure the process's Virtual Bytes and Pool Nonpaged Bytes. Although there is a small increase for the first few requests, it stabilises and does not change after that.

What makes you think it's leaking?

comment:2 by Dub Team <dubteam2000@…>, 12 years ago

Resolution: fixed
Status: newclosed

I might have done a mistake, and if I did, sorry for that. Here's my explanation of what happened actually:

I used the thread pool with 100 threads, and when every thread got activated it used some memory. That's why I saw the memory increase but the limit of 100 threads never got reached, because after that I wouldn't see an increase in memory.

So, sorry again for not testing too much maybe. And thanks all contributors for this great library.

Note: See TracTickets for help on using tickets.