[sr-dev] [kamailio] jsonrpc-c notification does not free shm memory (#296)

zxcpoiu notifications at github.com
Fri Aug 28 15:27:38 CEST 2015



#### This is initial state kamailio just restart

```
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 531530384
	used: 5295024
	real_used: 5340528
	max_used: 5340528
	fragments: 2
}
```


#### begin test:

issue command `kamcmd.shmmem` within every 0.5 secs

p.s. during the test, fragments sometimes up to 4~5000, but reduced quickly.


```
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 2352
	used: 534157344
	real_used: 536868560
	max_used: 536870912
	fragments: 26
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 1936
	used: 534157760
	real_used: 536868976
	max_used: 536870912
	fragments: 31
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 1648
	used: 534158216
	real_used: 536869264
	max_used: 536870912
	fragments: 18
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 696
	used: 534159224
	real_used: 536870216
	max_used: 536870912
	fragments: 13
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 336
	used: 534159584
	real_used: 536870576
	max_used: 536870912
	fragments: 6
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 424
	used: 534159440
	real_used: 536870488
	max_used: 536870912
	fragments: 11
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 1456
	used: 534158464
	real_used: 536869456
	max_used: 536870912
	fragments: 22
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 280
	used: 534159640
	real_used: 536870632
	max_used: 536870912
	fragments: 8
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 720
	used: 534159200
	real_used: 536870192
	max_used: 536870912
	fragments: 11
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 472
	used: 534159560
	real_used: 536870440
	max_used: 536870912
	fragments: 6
}


======APPROXIMATELY BREAK HERE======

root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 1714168
	used: 532426880
	real_used: 535156744
	max_used: 536870912
	fragments: 111
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 3521856
	used: 530602896
	real_used: 533349056
	max_used: 536870912
	fragments: 213
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 5294736
	used: 528814000
	real_used: 531576176
	max_used: 536870912
	fragments: 320
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 7121304
	used: 526971528
	real_used: 529749608
	max_used: 536870912
	fragments: 436
}
root at SIP-B03:~# kamcmd core.shmmem
{
	total: 536870912
	free: 8955368
	used: 525124920
	real_used: 527915544
	max_used: 536870912
	fragments: 545
}


```





---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/296#issuecomment-135775378
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150828/6be34b2b/attachment-0001.html>


More information about the sr-dev mailing list