Resources.DocsTsMem HistoryShow minor edits - Show changes to markup April 24, 2013, at 07:33 PM
by
- Changed lines 1-57 from:
Resources -> Documentation -> Out Of MemoryWhat to do if "out of memory" or "no more memory" messages are generated by OpenSIPS? Potential causesThere are two cause that may lead to memory starvation: a) a small pool of memory - the configured memory is not enough and no more memory can be allocated. b) memory leak - some memory id not properly freed, making all the memory unavailable (not used, but still allocated) Determining the causeIf the memory starvation is because of a too small pool of memory, by stopping the traffic on the proxy (without stopping the proxy), the allocated memory will be freed in time (as transactions and location records are freed). TEST: wait ~ 20 minutes without any kind of load the proxy. Test the proxy by placing several calls; if the memory errors pop up again once the traffic is resumed, it means it's a memory leak somewhere; If not sure of the result, consider it's a memory leak. How to handle itIf the memory pool is too small, just go in config.h and increase the size of the memory pool - for SHM or PKG. If it is about a memory leak or a memory corruption issue, you need to compile the debug support into memory manager. To do so, follow the next steps: 1.
2. recompile everything 3. set memlog=1 in your configuration script (to get the memory messages) - it must be lower than debug. 4. restart your proxy Now, you may check the memory status in two situations: 1. **At shutdown** - just stop the proxy - the memory manager will dump the memory status. Normally most of the memory is cleaned during shutdown. If there is memory leak, it should be visible as not-freed memory. A memory status looks like: 0(17665) Memory status (shm): 0(17665) qm_status (0xb5a7e000): 0(17665) heap size= 33554432 0(17665) used= 1592952, used+overhead=1811564, free=31742868 0(17665) max used (+overhead)= 1811564 0(17665) dumping all alloc'ed. fragments: 0(17665) 0. N address=0xb5ab240c frag=0xb5ab23f4 size=4 used=1 0(17665) alloc'd from mem/shm_mem.c: shm_mem_init_mallocs(199) 0(17665) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed 0(17665) 1. N address=0xb5ab2440 frag=0xb5ab2428 size=4 used=1 0(17665) alloc'd from timer.c: init_timer(52) 0(17665) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed 2. **At run time** - you may check the memory status by sending SIGUSR1 signal to the process (do "kill -SIGUSR1 OPENSIPS_PID") - it will dump the SHM and PKG (only for that process) memory status. It is highly recommended to do this after waiting about 20 minutes to be sure that as much as possile memory is freed - all temporary memory used during processing is freed by lack of load on the proxy. Go through the log and see if there is something suspicious, like too much memory still allocated from same place, etc... If you have no clue how to interpret the logs for memory status, post it on a FTP or HTTP server and send the link on the devel@lists.opensips.org mailing list. to:
(:redirect Documentation.TroubleShooting-OutOfMem quiet=1 :) October 22, 2012, at 02:22 PM
by
- Changed lines 57-67 from:
If you have no clue how to interpret the logs for memory status, post it on a FTP or HTTP server and send the link on the devel@lists.opensips.org mailing list. Torbara? — 22 October 2012, 03:25(:commentboxchrono:) to:
If you have no clue how to interpret the logs for memory status, post it on a FTP or HTTP server and send the link on the devel@lists.opensips.org mailing list. October 22, 2012, at 02:18 PM
by
- Deleted lines 64-69:
October 22, 2012, at 01:29 PM
by
- Comment addedAdded lines 65-70:
October 22, 2012, at 04:25 AM
by
- Comment addedAdded lines 60-65:
July 26, 2012, at 12:53 PM
by
- Changed lines 27-29 from:
If it is about a memory leak, you need to compile the debug support into memory manager. To do so, follow the next steps: 1. edit Makefile.defs file and remove from the DEFS string the F_MALLOC define (delete "-DF_MALLOC" line) and add the DBG_QM_MALLOC define (insert a "-DDBG_QM_MALLOC" line). to:
If it is about a memory leak or a memory corruption issue, you need to compile the debug support into memory manager. To do so, follow the next steps: 1.
June 27, 2011, at 06:05 PM
by
- Deleted lines 57-62:
June 27, 2011, at 11:52 AM
by
- Comment addedAdded lines 58-63:
March 15, 2010, at 11:04 AM
by - March 15, 2010, at 11:04 AM
by
- Changed lines 1-59 from:
1MmIVr <a href="http://hetsodyxzopy.com/">hetsodyxzopy</a>, [url=http://kmpvmxuilrrf.com/]kmpvmxuilrrf[/url], [link=http://nfdcqtpzoddt.com/]nfdcqtpzoddt[/link], http://ebqfuylsimwk.com/ to:
Resources -> Documentation -> Out Of MemoryWhat to do if "out of memory" or "no more memory" messages are generated by OpenSIPS? Potential causesThere are two cause that may lead to memory starvation: a) a small pool of memory - the configured memory is not enough and no more memory can be allocated. b) memory leak - some memory id not properly freed, making all the memory unavailable (not used, but still allocated) Determining the causeIf the memory starvation is because of a too small pool of memory, by stopping the traffic on the proxy (without stopping the proxy), the allocated memory will be freed in time (as transactions and location records are freed). TEST: wait ~ 20 minutes without any kind of load the proxy. Test the proxy by placing several calls; if the memory errors pop up again once the traffic is resumed, it means it's a memory leak somewhere; If not sure of the result, consider it's a memory leak. How to handle itIf the memory pool is too small, just go in config.h and increase the size of the memory pool - for SHM or PKG. If it is about a memory leak, you need to compile the debug support into memory manager. To do so, follow the next steps: 1. edit Makefile.defs file and remove from the DEFS string the F_MALLOC define (delete "-DF_MALLOC" line) and add the DBG_QM_MALLOC define (insert a "-DDBG_QM_MALLOC" line). 2. recompile everything 3. set memlog=1 in your configuration script (to get the memory messages) - it must be lower than debug. 4. restart your proxy Now, you may check the memory status in two situations: 1. **At shutdown** - just stop the proxy - the memory manager will dump the memory status. Normally most of the memory is cleaned during shutdown. If there is memory leak, it should be visible as not-freed memory. A memory status looks like: 0(17665) Memory status (shm): 0(17665) qm_status (0xb5a7e000): 0(17665) heap size= 33554432 0(17665) used= 1592952, used+overhead=1811564, free=31742868 0(17665) max used (+overhead)= 1811564 0(17665) dumping all alloc'ed. fragments: 0(17665) 0. N address=0xb5ab240c frag=0xb5ab23f4 size=4 used=1 0(17665) alloc'd from mem/shm_mem.c: shm_mem_init_mallocs(199) 0(17665) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed 0(17665) 1. N address=0xb5ab2440 frag=0xb5ab2428 size=4 used=1 0(17665) alloc'd from timer.c: init_timer(52) 0(17665) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed 2. **At run time** - you may check the memory status by sending SIGUSR1 signal to the process (do "kill -SIGUSR1 OPENSIPS_PID") - it will dump the SHM and PKG (only for that process) memory status. It is highly recommended to do this after waiting about 20 minutes to be sure that as much as possile memory is freed - all temporary memory used during processing is freed by lack of load on the proxy. Go through the log and see if there is something suspicious, like too much memory still allocated from same place, etc... If you have no clue how to interpret the logs for memory status, post it on a FTP or HTTP server and send the link on the devel@lists.opensips.org mailing list. (:commentboxchrono:) March 15, 2010, at 02:26 AM
by
- vcTDtIfLKCNXcVChanged line 1 from:
6P0NCL <a href="http://gudwolyimzaw.com/">gudwolyimzaw</a>, [url=http://cpdapdhpyevv.com/]cpdapdhpyevv[/url], [link=http://bzcuftcvxbnb.com/]bzcuftcvxbnb[/link], http://mjecllmxgdpx.com/ to:
1MmIVr <a href="http://hetsodyxzopy.com/">hetsodyxzopy</a>, [url=http://kmpvmxuilrrf.com/]kmpvmxuilrrf[/url], [link=http://nfdcqtpzoddt.com/]nfdcqtpzoddt[/link], http://ebqfuylsimwk.com/ March 15, 2010, at 02:06 AM
by
- URIxKYaixKnMzVxcChanged lines 1-5 from:
<<<<<<< Vf1Mxt <a href="http://bjfooioedxzn.com/">bjfooioedxzn</a>, [url=http://blyoiidhnsqp.com/]blyoiidhnsqp[/url], [link=http://rwvtukymhywp.com/]rwvtukymhywp[/link], http://eizhbiuwwnqm.com/ ======= SBswXK <a href="http://kgpianvkjuoy.com/">kgpianvkjuoy</a>, [url=http://wzdfmmjpfqzt.com/]wzdfmmjpfqzt[/url], [link=http://ijyehiwauaay.com/]ijyehiwauaay[/link], http://phkidkrtojwm.com/ >>>>>>> to:
6P0NCL <a href="http://gudwolyimzaw.com/">gudwolyimzaw</a>, [url=http://cpdapdhpyevv.com/]cpdapdhpyevv[/url], [link=http://bzcuftcvxbnb.com/]bzcuftcvxbnb[/link], http://mjecllmxgdpx.com/ March 14, 2010, at 11:32 PM
by
- BZVgWrCXGCYDRHChanged lines 1-5 from:
SBswXK <a href="http://kgpianvkjuoy.com/">kgpianvkjuoy</a>, [url=http://wzdfmmjpfqzt.com/]wzdfmmjpfqzt[/url], [link=http://ijyehiwauaay.com/]ijyehiwauaay[/link], http://phkidkrtojwm.com/ to:
<<<<<<< Vf1Mxt <a href="http://bjfooioedxzn.com/">bjfooioedxzn</a>, [url=http://blyoiidhnsqp.com/]blyoiidhnsqp[/url], [link=http://rwvtukymhywp.com/]rwvtukymhywp[/link], http://eizhbiuwwnqm.com/ ======= SBswXK <a href="http://kgpianvkjuoy.com/">kgpianvkjuoy</a>, [url=http://wzdfmmjpfqzt.com/]wzdfmmjpfqzt[/url], [link=http://ijyehiwauaay.com/]ijyehiwauaay[/link], http://phkidkrtojwm.com/ >>>>>>> March 14, 2010, at 11:32 PM
by
- YHNyvKzHdJAsioTDlChanged line 1 from:
nCMJj4 <a href="http://vzpoxcmidirx.com/">vzpoxcmidirx</a>, [url=http://jqxzrzxluwvj.com/]jqxzrzxluwvj[/url], [link=http://zsaemjyjiyjy.com/]zsaemjyjiyjy[/link], http://vtjrqqnazyar.com/ to:
SBswXK <a href="http://kgpianvkjuoy.com/">kgpianvkjuoy</a>, [url=http://wzdfmmjpfqzt.com/]wzdfmmjpfqzt[/url], [link=http://ijyehiwauaay.com/]ijyehiwauaay[/link], http://phkidkrtojwm.com/ March 14, 2010, at 05:03 PM
by
- GkcYfxiaTBTATChanged line 1 from:
6D4y4J <a href="http://certxxwbtyvz.com/">certxxwbtyvz</a>, [url=http://jkxwbgyaqhma.com/]jkxwbgyaqhma[/url], [link=http://svhbxbvmslhk.com/]svhbxbvmslhk[/link], http://uyphttbhaext.com/ to:
nCMJj4 <a href="http://vzpoxcmidirx.com/">vzpoxcmidirx</a>, [url=http://jqxzrzxluwvj.com/]jqxzrzxluwvj[/url], [link=http://zsaemjyjiyjy.com/]zsaemjyjiyjy[/link], http://vtjrqqnazyar.com/ March 14, 2010, at 02:26 PM
by
- ZOgYirirxPaCHlgpArsChanged line 1 from:
BlC7wn <a href="http://jmnjjrnnhiek.com/">jmnjjrnnhiek</a>, [url=http://nokmsamtwawd.com/]nokmsamtwawd[/url], [link=http://sdupitromptm.com/]sdupitromptm[/link], http://xsfbfpsiaazn.com/ to:
6D4y4J <a href="http://certxxwbtyvz.com/">certxxwbtyvz</a>, [url=http://jkxwbgyaqhma.com/]jkxwbgyaqhma[/url], [link=http://svhbxbvmslhk.com/]svhbxbvmslhk[/link], http://uyphttbhaext.com/ March 14, 2010, at 01:51 PM
by
- EXyKDSskdFUxbChanged line 1 from:
HSRwf1 <a href="http://vuwiuestrizn.com/">vuwiuestrizn</a>, [url=http://chzbowrjalbo.com/]chzbowrjalbo[/url], [link=http://rkbejkbknchd.com/]rkbejkbknchd[/link], http://omcxvytoytlk.com/ to:
BlC7wn <a href="http://jmnjjrnnhiek.com/">jmnjjrnnhiek</a>, [url=http://nokmsamtwawd.com/]nokmsamtwawd[/url], [link=http://sdupitromptm.com/]sdupitromptm[/link], http://xsfbfpsiaazn.com/ March 14, 2010, at 11:01 AM
by
- gYJzWIsMChanged lines 1-59 from:
Resources -> Documentation -> Out Of MemoryWhat to do if "out of memory" or "no more memory" messages are generated by OpenSIPS? Potential causesThere are two cause that may lead to memory starvation: a) a small pool of memory - the configured memory is not enough and no more memory can be allocated. b) memory leak - some memory id not properly freed, making all the memory unavailable (not used, but still allocated) Determining the causeIf the memory starvation is because of a too small pool of memory, by stopping the traffic on the proxy (without stopping the proxy), the allocated memory will be freed in time (as transactions and location records are freed). TEST: wait ~ 20 minutes without any kind of load the proxy. Test the proxy by placing several calls; if the memory errors pop up again once the traffic is resumed, it means it's a memory leak somewhere; If not sure of the result, consider it's a memory leak. How to handle itIf the memory pool is too small, just go in config.h and increase the size of the memory pool - for SHM or PKG. If it is about a memory leak, you need to compile the debug support into memory manager. To do so, follow the next steps: 1. edit Makefile.defs file and remove from the DEFS string the F_MALLOC define (delete "-DF_MALLOC" line) and add the DBG_QM_MALLOC define (insert a "-DDBG_QM_MALLOC" line). 2. recompile everything 3. set memlog=1 in your configuration script (to get the memory messages) - it must be lower than debug. 4. restart your proxy Now, you may check the memory status in two situations: 1. **At shutdown** - just stop the proxy - the memory manager will dump the memory status. Normally most of the memory is cleaned during shutdown. If there is memory leak, it should be visible as not-freed memory. A memory status looks like: 0(17665) Memory status (shm): 0(17665) qm_status (0xb5a7e000): 0(17665) heap size= 33554432 0(17665) used= 1592952, used+overhead=1811564, free=31742868 0(17665) max used (+overhead)= 1811564 0(17665) dumping all alloc'ed. fragments: 0(17665) 0. N address=0xb5ab240c frag=0xb5ab23f4 size=4 used=1 0(17665) alloc'd from mem/shm_mem.c: shm_mem_init_mallocs(199) 0(17665) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed 0(17665) 1. N address=0xb5ab2440 frag=0xb5ab2428 size=4 used=1 0(17665) alloc'd from timer.c: init_timer(52) 0(17665) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed 2. **At run time** - you may check the memory status by sending SIGUSR1 signal to the process (do "kill -SIGUSR1 OPENSIPS_PID") - it will dump the SHM and PKG (only for that process) memory status. It is highly recommended to do this after waiting about 20 minutes to be sure that as much as possile memory is freed - all temporary memory used during processing is freed by lack of load on the proxy. Go through the log and see if there is something suspicious, like too much memory still allocated from same place, etc... If you have no clue how to interpret the logs for memory status, post it on a FTP or HTTP server and send the link on the devel@lists.opensips.org mailing list. (:commentboxchrono:) to:
HSRwf1 <a href="http://vuwiuestrizn.com/">vuwiuestrizn</a>, [url=http://chzbowrjalbo.com/]chzbowrjalbo[/url], [link=http://rkbejkbknchd.com/]rkbejkbknchd[/link], http://omcxvytoytlk.com/ March 03, 2009, at 11:46 AM
by
- Added lines 56-59:
(:commentboxchrono:) August 02, 2008, at 11:23 PM
by
- Deleted lines 2-3:
Troubleshooting "out of memory" or "no more memory" messagesJuly 19, 2008, at 08:13 PM
by
- Changed lines 53-54 from:
2. **At run time** - you may check the memory status by sending SIGUSR1 signal to the process (do "kill -SIGUSR1 OPENSER_PID") - it will dump the SHM and PKG (only for that process) memory status. It is highly recommended to do this after waiting about 20 minutes to be sure that as much as possile memory is freed - all temporary memory used during processing is freed by lack of load on the proxy. Go through the log and see if there is something suspicious, like too much memory still allocated from same place, etc... to:
2. **At run time** - you may check the memory status by sending SIGUSR1 signal to the process (do "kill -SIGUSR1 OPENSIPS_PID") - it will dump the SHM and PKG (only for that process) memory status. It is highly recommended to do this after waiting about 20 minutes to be sure that as much as possile memory is freed - all temporary memory used during processing is freed by lack of load on the proxy. Go through the log and see if there is something suspicious, like too much memory still allocated from same place, etc... July 19, 2008, at 08:12 PM
by
- Changed lines 3-5 from:
[color=red]What to do if "out of memory" or "no more memory" messages are generated by OpenSIPS?[/color] to:
What to do if "out of memory" or "no more memory" messages are generated by OpenSIPS? July 19, 2008, at 08:11 PM
by
- Changed lines 1-3 from:
====== Troubleshooting "out of memory" or "no more memory" messages ====== to:
Troubleshooting "out of memory" or "no more memory" messagesChanged lines 6-7 from:
===== Potential causes ===== to:
Potential causesChanged lines 14-15 from:
===== Determining the cause ===== to:
Determining the causeChanged lines 22-23 from:
===== How to handle it ===== to:
How to handle itJuly 19, 2008, at 08:08 PM
by
- Added lines 1-53:
====== Troubleshooting "out of memory" or "no more memory" messages ====== [color=red]What to do if "out of memory" or "no more memory" messages are generated by OpenSIPS?[/color] ===== Potential causes ===== There are two cause that may lead to memory starvation: a) a small pool of memory - the configured memory is not enough and no more memory can be allocated. b) memory leak - some memory id not properly freed, making all the memory unavailable (not used, but still allocated) ===== Determining the cause ===== If the memory starvation is because of a too small pool of memory, by stopping the traffic on the proxy (without stopping the proxy), the allocated memory will be freed in time (as transactions and location records are freed). TEST: wait ~ 20 minutes without any kind of load the proxy. Test the proxy by placing several calls; if the memory errors pop up again once the traffic is resumed, it means it's a memory leak somewhere; If not sure of the result, consider it's a memory leak. ===== How to handle it ===== If the memory pool is too small, just go in config.h and increase the size of the memory pool - for SHM or PKG. If it is about a memory leak, you need to compile the debug support into memory manager. To do so, follow the next steps: 1. edit Makefile.defs file and remove from the DEFS string the F_MALLOC define (delete "-DF_MALLOC" line) and add the DBG_QM_MALLOC define (insert a "-DDBG_QM_MALLOC" line). 2. recompile everything 3. set memlog=1 in your configuration script (to get the memory messages) - it must be lower than debug. 4. restart your proxy Now, you may check the memory status in two situations: 1. **At shutdown** - just stop the proxy - the memory manager will dump the memory status. Normally most of the memory is cleaned during shutdown. If there is memory leak, it should be visible as not-freed memory. A memory status looks like: 0(17665) Memory status (shm): 0(17665) qm_status (0xb5a7e000): 0(17665) heap size= 33554432 0(17665) used= 1592952, used+overhead=1811564, free=31742868 0(17665) max used (+overhead)= 1811564 0(17665) dumping all alloc'ed. fragments: 0(17665) 0. N address=0xb5ab240c frag=0xb5ab23f4 size=4 used=1 0(17665) alloc'd from mem/shm_mem.c: shm_mem_init_mallocs(199) 0(17665) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed 0(17665) 1. N address=0xb5ab2440 frag=0xb5ab2428 size=4 used=1 0(17665) alloc'd from timer.c: init_timer(52) 0(17665) start check=f0f0f0f0, end check= c0c0c0c0, abcdefed 2. **At run time** - you may check the memory status by sending SIGUSR1 signal to the process (do "kill -SIGUSR1 OPENSER_PID") - it will dump the SHM and PKG (only for that process) memory status. It is highly recommended to do this after waiting about 20 minutes to be sure that as much as possile memory is freed - all temporary memory used during processing is freed by lack of load on the proxy. Go through the log and see if there is something suspicious, like too much memory still allocated from same place, etc... If you have no clue how to interpret the logs for memory status, post it on a FTP or HTTP server and send the link on the devel@lists.opensips.org mailing list. |