Memory increase at reload

Aashish aashish.dattani at gmail.com
Thu Aug 21 18:20:37 UTC 2014


Hi,

I've written an nginx module that creates a few large data structures at
initialization time. These data structures are part of the location
configuration for that module.

Whenever I do a reload, these data structures are re-created, and the new
configuration points to the newly created ones. But the old data structures
are not freed up and still remain in the shared memory. This is leading to
a lot of memory usage over repeated reloads.

Is there anyway I can avoid this memory pile-up while still being able to
do multiple reloads?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140821/350b3934/attachment.html>


More information about the nginx mailing list