[Serusers] new_t: out of mem
Klaus Darilion
klaus.mailinglists at pernau.at
Wed Aug 19 09:16:52 CEST 2009
Fragmentation is a known problem of the memory manager.
Maybe you can find some hints here:
http://www.kamailio.org/dokuwiki/doku.php/troubleshooting:memory
Roger Tan schrieb:
> hi.
>
> I tested my ser server which version is 0.9.7+cvs20080424 used sipps
> sending 1000
> invite per sec. after about 10 sec, there was an out of mem error.
>
> Aug 18 09:40:12 ubuntu /sbin/ser[20805]: ERROR: new_t: out of mem:
> Aug 18 09:40:12 ubuntu /sbin/ser[20805]: ERROR: t_newtran: new_t failed
> Aug 18 09:40:12 ubuntu /sbin/ser[20805]: ERROR: sl_reply_error used: I'm
> terribly sorry,
> server error occurred (1/SL)
> Aug 18 09:40:12 ubuntu /sbin/ser[20805]: ERROR: sip_msg_cloner: cannot
> allocate memory
> and my memlog is:
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: -----------------------------
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: Memory status (shm):
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: qm_status (0xb5acf000):
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: heap size= 33554432
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: used= 1914592,
> used+overhead=2224736,
> free=31329696
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: max used (+overhead)= 33534720
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: dumping all alloc'ed. fragments:
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 0. N address=0xb5ad41a8
> frag=0xb5ad41a0
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 1. N address=0xb5ad41c8
> frag=0xb5ad41c0
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 2. N address=0xb5ad41e8
> frag=0xb5ad41e0
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 3. N address=0xb5ad4208
> frag=0xb5ad4200
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 4. N address=0xb5ad4228
> frag=0xb5ad4220
> size=4096 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 5. N address=0xb5ad5238
> frag=0xb5ad5230
> size=4096 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 6. N address=0xb5ad6248
> frag=0xb5ad6240
> size=2800 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 7. N address=0xb5ad6d48
> frag=0xb5ad6d40
> size=1680 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 8. N address=0xb5ad73e8
> frag=0xb5ad73e0
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 9. N address=0xb5ad7408
> frag=0xb5ad7400
> size=1572864 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 10. N address=0xb5c57418
> frag=0xb5c57410
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 11. N address=0xb5c57438
> frag=0xb5c57430
> size=320 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 12. N address=0xb5c57588
> frag=0xb5c57580
> size=48 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 13. N address=0xb5c575c8
> frag=0xb5c575c0
> size=80 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 14. N address=0xb5c57628
> frag=0xb5c57620
> size=80 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 15. N address=0xb5c57688
> frag=0xb5c57680
> size=80 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 16. N address=0xb5c576e8
> frag=0xb5c576e0
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 17. N address=0xb5c57708
> frag=0xb5c57700
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 18. N address=0xb5c57728
> frag=0xb5c57720
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 19. N address=0xb5c57748
> frag=0xb5c57740
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 20. N address=0xb5c57768
> frag=0xb5c57760
> size=32 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 21. N address=0xb5c57798
> frag=0xb5c57790
> size=131072 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 22. N address=0xb5c777a8
> frag=0xb5c777a0
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 23. N address=0xb5c777c8
> frag=0xb5c777c0
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 24. N address=0xb5c777e8
> frag=0xb5c777e0
> size=32 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 25. N address=0xb5c77818
> frag=0xb5c77810
> size=131072 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 60. N address=0xb5ca7948
> frag=0xb5ca7940
> size=48 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 61. N address=0xb5ca7988
> frag=0xb5ca7980
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 62. N address=0xb5ca79a8
> frag=0xb5ca79a0
> size=80 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 63. N address=0xb5ca7a08
> frag=0xb5ca7a00
> size=48 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 64. N address=0xb5ca7a48
> frag=0xb5ca7a40
> size=32 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 65. N address=0xb5ca7a78
> frag=0xb5ca7a70
> size=16 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: 66. N address=0xb5ca7a98
> frag=0xb5ca7a90
> size=65808 used=1
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: dumping free list stats :
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 1. fragments no.:
> 1232, unused: 0
> ^I^I bucket size: 16 - 16 (first 16)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 38. fragments no.:
> 54, unused: 0
> ^I^I bucket size: 608 - 608 (first 608)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 43. fragments no.:
> 54, unused: 0
> ^I^I bucket size: 688 - 688 (first 688)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 44. fragments no.:
> 3991, unused: 0
> ^I^I bucket size: 704 - 704 (first 704)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 57. fragments no.:
> 114, unused: 0
> ^I^I bucket size: 912 - 912 (first 912)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 58. fragments no.:
> 4004, unused: 0
> ^I^I bucket size: 928 - 928 (first 928)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 68. fragments no.:
> 46, unused: 0
> ^I^I bucket size: 1088 - 1088 (first 1088)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 82. fragments no.:
> 109, unused: 0
> ^I^I bucket size: 1312 - 1312 (first 1312)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 115. fragments no.:
> 34, unused: 0
> ^I^I bucket size: 1840 - 1840 (first 1840)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 174. fragments no.:
> 3795, unused: 0
> ^I^I bucket size: 2784 - 2784 (first 2784)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 186. fragments no.:
> 790, unused: 0
> ^I^I bucket size: 2976 - 2976 (first 2976)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 187. fragments no.:
> 3820, unused: 0
> ^I^I bucket size: 2992 - 2992 (first 2992)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 262. fragments no.:
> 1, unused: 0
> ^I^I bucket size: 4192 - 4192 (first 4192)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: hash= 318. fragments no.:
> 1, unused: 0
> ^I^I bucket size: 5088 - 5088 (first 5088)
> Aug 18 10:11:02 ubuntu /sbin/ser[20787]: -----------------------------
> I think it's not a memory leak but the so many small memory fragments,
> and those
> fragments were not combinated. How I solve this problem?
> Thanks.
>
>
> --
> MSN: miao__tan at hotmail.com <mailto:miao__tan at hotmail.com>
> Email: m.roger.t at gmail.com <mailto:m.roger.t at gmail.com>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list