Re: common/sockets.cxx && not available - error 7/24: Cannot allocate memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dani,

did you make sure your OS can supply enough file descriptors ?
"ulimit -n 20480" on Linux.

Regards,
Jan


Dani Popa wrote:
>    Hi All,
>    I use gnugk with ActivateFailover=1 with full proxy mode (rtp proxy) and
> gentoo linux with fs.file-max=102024 . It crash if i have more then 130
> calls because of not enough fd The gnugk is compiled with large_fdset=20480
> With 90 calls i have :"lsof   | grep gnugk  | wc -l"  18494. As it describe
> in gnugk manual the large_fdset should be 10 (= 2 sockets for Q.931 + 2
> sockets for H.245 + 6 sockets for RTP and other stuff) for each call, so for
> 130 calls i need 130*10=1300( supposed i have activated failover with 3
> routes the fd should be at the most 1300*3-3900, but i have 20480 and at 90
> calls it use 18494 file ) .
> 
> When it crash i have the follow error in logs:
> 
> 2007/10/06 21:29:15.260 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405, Error=4
> 2007/10/06 21:29:15.260 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405, Error=4
> 2007/10/06 21:29:15.402 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405, Error=9
> 2007/10/06 21:29:15.402 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405, Error=4
> 2007/10/06 21:29:15.402 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405, Error=4
> 2007/10/06 21:29:15.402 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405, Error=4
> 2007/10/06 21:29:15.518 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405, Error=9
> 2007/10/07 19:01:41.101 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 19:01:41.117 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 19:01:41.140 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405, Error=24
> 2007/10/07 19:44:06.938 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 19:44:06.942 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405
> 2007/10/07 20:06:30.964 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 20:22:17.441 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 20:22:57.402 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 20:22:57.415 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 20:24:30.524 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 20:24:30.548 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 20:24:30.559 0             assert.cxx(108)   PWLib   Assertion
> fail: Invalid parameter, file ../common/sockets.cxx, line 1405
> 2007/10/07 20:53:39.825 0             assert.cxx(108)   PWLib   <91>
> 2007/10/07 20:53:39.827 0             assert.cxx(108)   PWLib   ^U
> 2007/10/07 20:53:39.892 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 2007/10/07 20:53:39.899 0             assert.cxx(108)   PWLib   Assertion
> fail: Operating System error, file tlibthrd.cxx, line 827, Error=2`
> 
> So i read the source of pwlib : ../common/sockets.cxx, line 1405 and it's
> about file descriptor.
> 
> So the next step was to increase the number of fd for gnugk, some like 40k
> and the result was: all calls were falling with disconnect cause 3,
> disconnected by gnugk, and in logs : not enough memory(i have 1G ram
> memory),
> 
> 2007/10/07 21:10:06.976 1       ProxyChannel.cxx(3771)  RTP     RTCP socket
> x.x.x.x:53547 not available - error 7/24: Cannot allocate memory
> 
> What can i do or where i'm wrong ?
> 
> 
> 
> 
> -- 
> Dani Popa


-- 
Jan Willamowius, jan@xxxxxxxxxxxxxx, http://www.gnugk.org/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux