Hello, I use Asterisk 1.0.2 on a RedHat Enterprise Server 3.0 (Kernel 2.4.21) and i experienced that the memory consumption of the asterisk-process started by the init.d-script raises continously. Now, after 3 hours of operation (on our testing-system we have 30 concurrent connections to another asterisk box using IAX2 and GSM codec) there is already 66MB allocated. I think this could be ok, but the memory consumption increases until all memory (including swap) is used, and then there is following entry in /var/log/asterisk/messages: Failed to fork(): Cannot allocate memory On our other Asterisk box (running Fedora Core 3 with Kernel 2.6.9) there is no problem like this, memory consumption is stable over days. Could there be an issue unsing a system with Kernel 2.4.21? I had a look at bugs.digium.com but didn't find any useful entries. I would be thankful if there are any ideas how i could fix this without changing the OS! I could use a newer Kernel but then it runs out of support at RedHat. Thank you in advance, Roland
Roland Zagler wrote:> Could there be an issue unsing a system with Kernel 2.4.21? I had a look > at bugs.digium.com but didn't find any useful entries.Sorry, can't reply to the rest of your mail, but I'm using 2.4.21 with FC1 here, no probs. -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
Roland Zagler wrote:> I use Asterisk 1.0.2 on a RedHat Enterprise Server 3.0 (Kernel 2.4.21) > and i experienced that the memory consumption of the asterisk-process > started by the init.d-script raises continously. Now, after 3 hours of > operation (on our testing-system we have 30 concurrent connections to > another asterisk box using IAX2 and GSM codec) there is already 66MB > allocated. I think this could be ok, but the memory consumption > increases until all memory (including swap) is used, and then there is > following entry in /var/log/asterisk/messages: > > Failed to fork(): Cannot allocate memoryThis is a just a guess, but an educated one - RHEL3 is using a RedHat back port of NPTL which is, how to say it... completly fscked up :-) If this is really the problem then all you have to do to resolve the issue is to add a line with: export LD_ASSUME_KERNEL=2.4.1 to the init script that runs Asterisk. For an explanation of what this does look here: http://people.redhat.com/drepper/assumekernel.html If this does work, you must do the following: 1. Tell me it worked, I'm a curious bastard :-) 2. Call up RedHat support and tell them to fix their broken "Enterprise" distro. Good luck, Gilad -- Gilad Ben-Yossef <gilad@codefidence.com> Codefidence. A name you can trust(tm) Web: http://codefidence.com | SIP: gilad@pbx.codefidence.com Tel: +972.9.8650475 ext. 201 | Fax: +972.9.8850643 "I am Jack's Overwritten Stack Pointer" -- Hackers Club, the movie
Hi I'm using Asterisk CVS-HEAD-03/09/05-18:25:28, Debian 3.0 rc3 and a Pentium IV 2.4 Ghz 512 Mb. When I boot my computer, top reads: Mem: 515824K total, 33852K used, 481972K free, 1292K buffers Swap: 979924K total, 0K used, 979924K free, 17052K cached after two days running I have only 9000K free (less than 9 Mb) physical memory available... the only way I have found to recover the lost memory is to reboot the computer... any help will be greatly appreciated. bye, Matias
Maybe Matching Threads
- How do I match a "D"? (Was: RE: In-band disc onn ect problem (legacy PBX) - asterisk doesn't hear the touchtone?)
- redhat9 100% CPU
- how to call s extension from SIP phone?
- How do I match a "D"? (Was: RE: In-band disconn ect problem (legacy PBX) - asterisk doesn't hear the touchtone?)
- BLOCKING incoming FAXES on voice line.