Welcome! Log In Create A New Profile

Advanced

Re: Memory leaks when used as a shared library

August 04, 2015 07:50PM
Hi, Lord,
Thank you!

Lord Nynex Wrote:
-------------------------------------------------------
> Have you looked at https://github.com/openresty/no-pool-nginx ?
>

But the issue in my case is not related to nginx's pool mechanism.
It is caused by some build-in modules which won't release it allocated memory at all. e.g.
ngx_event_core_module.init_process does some allocating but there 's no ngx_event_core_module.exit_process at all, so the memory it allocated will only be released by operation system process manager only when the worker process exits. it is plain that this will be reported as memory leak by valgrind.

Just as Maxim said, I plan to write a new process_cycle for my shared library and record all unreleased memory and do release them at the end of process_cycle.


Regards.
Xfeep
Subject Author Posted

Memory leaks when used as a shared library

xfeep July 31, 2015 09:57PM

Re: Memory leaks when used as a shared library

xfeep July 31, 2015 10:32PM

Re: Memory leaks when used as a shared library

Maxim Dounin August 01, 2015 10:56PM

Re: Memory leaks when used as a shared library

xfeep August 02, 2015 10:31AM

Re: Memory leaks when used as a shared library

Lord Nynex August 04, 2015 03:36PM

Re: Memory leaks when used as a shared library

xfeep August 04, 2015 07:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready