Welcome! Log In Create A New Profile

Advanced

how to catch memory leak?

March 03, 2011 04:48PM
Is there any ways to catch memory leak in nginx? I run valgrind and it does not catch anything. I wrote module which sends sub-request to different location, reads response to variable. Then I check this variable in config file and do, or not do rewrite original url. At the run nginx eats about 150Mb but after day working on load it grows to 300Mb. I run valgrind on test machine but there were not any errors. Looks like everything in palloc pool, which is freed after kill. From code it is not obvious where the leak can take place. Compilation --debug shows that request memory pool freed after each request.

Which techniques do you use to catch memory leak issues?
Subject Author Posted

how to catch memory leak?

magz March 03, 2011 04:48PM

Re: how to catch memory leak?

Piotr Sikora March 04, 2011 05:34AM

Re: how to catch memory leak?

agentzh March 06, 2011 11:34PM

Re: how to catch memory leak?

magz March 08, 2011 03:29PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready