Posted: Fri May 15, 2009 1:13 pm Post subject: [asterisk-dev] Debugging memory use in Asterisk
Benny Amorsen wrote:
Quote:
I have an Asterisk which uses a lot of memory:
8161 asterisk 20 0 5170m 604m 1248 S 0.3 60.3 386:39.32 asterisk
I would like to see what Asterisk actually uses the memory for. Is there
a handy way to do that?
Asterisk version is 1.6.1.0.
/Benny
There is a menuselect option called MALLOC_DEBUG that you can enable in the
"Compiler Options" section. This will allow you to use two new CLI commands:
memory show summary, and memory show allocations. The first command will show
the allocations made by each file, and the second will show each individual
allocation that Asterisk has made. memory show summary is likely to be more helpful.
Mark Michelson
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri May 15, 2009 1:20 pm Post subject: [asterisk-dev] Debugging memory use in Asterisk
Benny Amorsen escribió:
Quote:
I have an Asterisk which uses a lot of memory:
8161 asterisk 20 0 5170m 604m 1248 S 0.3 60.3 386:39.32 asterisk
I would like to see what Asterisk actually uses the memory for. Is there
a handy way to do that?
Asterisk version is 1.6.1.0.
You can compile asterisk with the MALLOC_DEBUG flag (you can activate it
in the menuselect). This will enable the commands "memory show
allocations [file]" and "memory show summary" in the CLI, that will show
a detail of the memory usage.
Hope this helps.
Quote:
/Benny
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum