-
-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak on demo asio_httpd #8
Comments
Running this command the program starts with 20MB and when served 5,000,000 requests it's using around 180MB and continue growing but I stopped the program.
Cheers ! |
Also trying requesting a non existing file is faster to see the memory growing:
|
I also tried with other parameters at demo.c: But the same memory consumption pattern happen. Cheers ! |
can you be more specific on the memory usage? Was it virtual space or RSS? |
Hello ! Cheers ! |
I will try to fix this problem. Thanks! |
Not at all ! |
Hello !
I just cloned tbox and build it, then when testing ./demo asio_httpd with httpress/ab and watching a task manager I can see how memory consumption only grows, keep running the command bellow and watch process memory usage:
I tested with valgrind and it reports no memory leaks (same number of allocations/deallocations) when terminating the program normally (key press), so I think it's memory fragmentation or any pool attached to a connection that is not been released (but because maybe they are attached to a hierarchy of pools that are released at the end valgrind can not find anything).
The system where it's running is a ubuntu 14.04 64bits.
Cheers !
The text was updated successfully, but these errors were encountered: