Forum: NGINX Memory increase at reload

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5e62849e56149ff6b441cdec7dab0c4a?d=identicon&s=25 Aashish (Guest)
on 2014-08-21 20:21
(Received via mailing list)
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.
This topic is locked and can not be replied to.